@charset "UTF-8";
:root {
  --header-height: 48px;
  --error-color: #d32f2f;
  --table-th-bgcolor: #deebf8;
  --side-menu-selected-color: #cfcfcf;
  --saturday-color: #3d7cce;
  --sunday-color: #d9333f;
  --today-color: #ffe6cc;
  --primary-blue: #1976d2;
  --primary-hover-blue: #1565c0;
  --disabled-background-color: #dfdfdf;
  --header-background-color: #9b9b9b;
  --table-tr-background-color: #f9f9f9;
  --table-border-style: 1px solid rgb(224 224 224);
  --search-pagination-height: 38px;
  --fab-button-size: 50px;
  --night-background: #00f;
  --holiday-work-background: #f88379;
  --table-text-color: rgb(0 0 0 / 87%);
  --dialog-title-left-border: 6px solid #1fb971;
  --info-table-th-background: #ffb1c1;
  --leaflet-tooltip-border: #6f757c;
  --leaflet-tooltip-background: #ebf3fa;
  --wx-background: #fff;
  --wx-border-radius: 3px;
  --wx-shadow-light: 0 3px 10px 0 #2c2f3c1f, 0 1px 2px 0 #2c2f3c0f;
  --wx-color-font: #2c2f3c;
}

body {
  margin: 0;
  overflow: hidden;
}

/** コンポーネントの CSS */
.wx-gantt .wx-table-wrapper.wx-wrapper-scroll {
  overflow-x: hidden;
}

.wx-table .wx-icon.wxi-empty {
  width: 0;
}
.wx-table .wx-sort {
  cursor: pointer;
}
.wx-table .wx-header .wx-cell.wx-text-right,
.wx-table .wx-body .wx-cell.wx-text-right {
  padding-right: 23px !important;
}
.wx-table .wx-header .wx-cell.wx-text-right .wx-sort,
.wx-table .wx-body .wx-cell.wx-text-right .wx-sort {
  right: 5px !important;
}
.wx-table .wx-body .wx-data .wx-row {
  cursor: default;
}
.wx-table .wx-body .wx-content .wx-text {
  white-space: pre;
}
.wx-table .wx-header .wx-cell:last-child .wx-sort {
  right: 16px;
}

.wx-today {
  background-color: var(--fc-today-bg-color);
  position: relative;
  height: 100%;
}

.wx-cell.wx-sat {
  color: var(--saturday-color);
}

.wx-cell.wx-sun {
  color: var(--sunday-color);
}

.wx-cell.wx-today,
.wx-gantt-holidays .wx-today {
  background-color: var(--today-color) !important;
  border: 2px solid #f00;
  border-bottom: none;
}

.wx-scale .wx-row:not(:first-child) .wx-cell.wx-today {
  border-right: 2px solid #f00 !important;
}

.wx-gantt-holidays .wx-today {
  border: none;
}

.wx-bars {
  position: relative;
}

.wx-scale .wx-row:first-child .wx-today {
  background-color: unset !important;
  border: none;
}

.MuiMultiSectionDigitalClockSection-root::after {
  display: none !important;
}

.holiday-border-right,
.holiday-border-left {
  position: absolute;
  width: 2px;
  background-color: #f00;
  height: 100%;
  z-index: 10;
}

#container {
  height: 100vh;
  width: 100%;
  position: relative;
}
#container #main {
  height: calc(100vh - var(--header-height));
  display: grid;
}
#container #main.fullScreen {
  height: 100vh;
}
#container #main.mobile {
  height: calc(100svh - var(--header-height));
  overflow-y: scroll;
}
#container #zoom-fab {
  position: absolute;
  bottom: 1em;
  left: 1em;
  background-color: #fff;
}

#container.mobile {
  height: 100svh;
}

#map-container {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #eee;
}

.leaflet-container {
  height: 100%;
  width: 100%;
}

.leaflet-tooltip {
  border-color: var(--leaflet-tooltip-border);
  background-color: var(--leaflet-tooltip-background);
}

.leaflet-tooltip-top::before {
  border-top-color: var(--leaflet-tooltip-background);
}

.leaflet-control .leaflet-current-location {
  font-size: 14px;
  cursor: pointer;
}

#mobile-drawer-menu .side-menu,
#main .side-menu {
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
  height: calc(100% - 16px);
  overflow-y: auto;
}
#mobile-drawer-menu .side-menu img.menu-logo,
#main .side-menu img.menu-logo {
  width: 80%;
  margin: 0 10%;
}
#mobile-drawer-menu .side-menu .Mui-selected,
#main .side-menu .Mui-selected {
  background-color: var(--side-menu-selected-color);
}
#mobile-drawer-menu .side-menu .MuiListItemIcon-root,
#main .side-menu .MuiListItemIcon-root {
  min-width: 40px;
}

#mobile-drawer-menu {
  padding-top: var(--header-height);
}
#mobile-drawer-menu .side-menu {
  box-shadow: none;
}

.master-menu .Mui-selected {
  background-color: var(--side-menu-selected-color) !important;
}

#app-bar {
  z-index: 1250;
  position: relative;
  background-color: var(--header-background-color);
}
#app-bar #menu-button {
  margin-right: 16px;
}
#app-bar #title {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#app-bar #title p {
  margin-right: 1em;
  display: flex;
  align-items: center;
}

.select {
  background-color: #fff;
  border-radius: 5px;
}

.date-range-picker .picker-content,
.time-range-picker .picker-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5em;
  align-items: flex-start;
}
.date-range-picker .picker-content .datepicker,
.time-range-picker .picker-content .datepicker {
  width: 100%;
}
.date-range-picker .error,
.time-range-picker .error {
  color: var(--error-color);
  font-size: 0.75rem;
  display: block;
  margin: 0 1em;
}

.map-error {
  color: var(--error-color);
  font-size: 0.9rem;
  margin: 0.5em 1em 0;
}

.footer-buttons {
  display: flex;
  flex-direction: row;
  gap: 1em;
  justify-content: center;
  margin-top: 1em;
  position: relative;
}

.footer-buttons-left {
  display: flex;
  flex-direction: row;
  gap: 1em;
  margin: 1em 1.5em 0;
  position: relative;
}

.schedule-chart {
  padding-bottom: 40px;
}
.schedule-chart .wx-bar.wx-task,
.schedule-chart .wx-bar.wx-summary {
  background-color: unset !important;
  cursor: default;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar,
.schedule-chart .wx-bar.wx-summary .custom-task-bar {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-user-select: none;
          user-select: none;
  position: relative;
  pointer-events: none;
  text-align: left;
  height: 100%;
  width: 100%;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .task-bar-content,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .task-bar-content {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  z-index: 10;
  position: relative;
  padding-left: 10px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .task-bar-content .task-bar-text,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .task-bar-content .task-bar-text {
  display: inline-block;
  max-width: calc(100% - 60px);
  text-overflow: ellipsis;
  overflow: hidden;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar button,
.schedule-chart .wx-bar.wx-summary .custom-task-bar button {
  border: none;
  padding: 3px 0;
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .child-task-bar-content,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .child-task-bar-content {
  z-index: 10;
  position: relative;
  height: 31px;
  line-height: normal;
  padding-top: 5px;
  padding-left: 10px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .member-count,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .member-count {
  font-weight: bold;
  border-radius: 4px;
  background-color: #fff;
  padding: 3px 6px;
  margin: 0 5px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .cancel-days,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .cancel-days {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: var(--error-color);
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .cancel-days .fa-xmark,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .cancel-days .fa-xmark {
  position: absolute;
  top: 3px;
  left: 3px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .nights-days,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .nights-days {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: var(--night-background);
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .nights-days .fa-moon,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .nights-days .fa-moon {
  position: absolute;
  top: 3px;
  left: 3px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .holiday-works-days,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .holiday-works-days {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: var(--holiday-work-background);
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .holiday-works-days .fa-flag,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .holiday-works-days .fa-flag {
  position: absolute;
  top: 3px;
  left: 3px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .member-count-area,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .member-count-area {
  height: 100%;
  position: relative;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .member-count-area .count,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .member-count-area .count {
  padding-top: 1px;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  text-align: center;
  line-height: normal;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar .member-count-area .count span,
.schedule-chart .wx-bar.wx-summary .custom-task-bar .member-count-area .count span {
  font-weight: bold;
  border-radius: 4px;
  color: #fff;
  padding: 2px 6px;
}
.schedule-chart .wx-bar.wx-task .custom-task-bar:hover,
.schedule-chart .wx-bar.wx-summary .custom-task-bar:hover {
  box-shadow: 0 1px 2px rgba(44, 47, 60, 0.06), 0 3px 10px rgba(44, 47, 60, 0.12);
}
.schedule-chart .wx-bar.wx-task .custom-task-bar.error,
.schedule-chart .wx-bar.wx-summary .custom-task-bar.error {
  border: 3px solid var(--error-color);
}
.schedule-chart .wx-bar.wx-task:hover {
  box-shadow: none !important;
}

.member-count-par-days-form {
  width: 100%;
}
.member-count-par-days-form .member-count-par-days {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 3px;
}
.member-count-par-days-form .member-count-par-days .textfield {
  width: 80px !important;
  min-width: unset !important;
  display: block;
}
.member-count-par-days-form .member-count-par-days .textfield .Mui-disabled {
  background-color: #ddd;
  border-radius: 4px;
}
.member-count-par-days-form .member-count-par-days .red-button {
  margin-top: 0.5em;
  width: 100%;
}

#construction-schedule-form-field,
#partner-company-schedule-form-field,
#construction-master-form-field,
#employee-master-form-field,
#info-manage-form-field,
.safety-time-master-form-field {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}
#construction-schedule-form-field .textfield,
#construction-schedule-form-field .autocomplete,
#partner-company-schedule-form-field .textfield,
#partner-company-schedule-form-field .autocomplete,
#construction-master-form-field .textfield,
#construction-master-form-field .autocomplete,
#employee-master-form-field .textfield,
#employee-master-form-field .autocomplete,
#info-manage-form-field .textfield,
#info-manage-form-field .autocomplete,
.safety-time-master-form-field .textfield,
.safety-time-master-form-field .autocomplete {
  min-width: 400px;
}
#construction-schedule-form-field .textfield .MuiInputBase-root.Mui-disabled,
#construction-schedule-form-field .autocomplete .MuiInputBase-root.Mui-disabled,
#partner-company-schedule-form-field .textfield .MuiInputBase-root.Mui-disabled,
#partner-company-schedule-form-field .autocomplete .MuiInputBase-root.Mui-disabled,
#construction-master-form-field .textfield .MuiInputBase-root.Mui-disabled,
#construction-master-form-field .autocomplete .MuiInputBase-root.Mui-disabled,
#employee-master-form-field .textfield .MuiInputBase-root.Mui-disabled,
#employee-master-form-field .autocomplete .MuiInputBase-root.Mui-disabled,
#info-manage-form-field .textfield .MuiInputBase-root.Mui-disabled,
#info-manage-form-field .autocomplete .MuiInputBase-root.Mui-disabled,
.safety-time-master-form-field .textfield .MuiInputBase-root.Mui-disabled,
.safety-time-master-form-field .autocomplete .MuiInputBase-root.Mui-disabled {
  background-color: var(--disabled-background-color);
}
#construction-schedule-form-field .textfield.multiline,
#partner-company-schedule-form-field .textfield.multiline,
#construction-master-form-field .textfield.multiline,
#employee-master-form-field .textfield.multiline,
#info-manage-form-field .textfield.multiline,
.safety-time-master-form-field .textfield.multiline {
  min-width: 500px;
}
#construction-schedule-form-field .select,
#partner-company-schedule-form-field .select,
#construction-master-form-field .select,
#employee-master-form-field .select,
#info-manage-form-field .select,
.safety-time-master-form-field .select {
  min-width: 180px;
}
#construction-schedule-form-field .partner-companies-row,
#partner-company-schedule-form-field .partner-companies-row,
#construction-master-form-field .partner-companies-row,
#employee-master-form-field .partner-companies-row,
#info-manage-form-field .partner-companies-row,
.safety-time-master-form-field .partner-companies-row {
  display: flex;
  flex-direction: column;
  gap: 1em;
  flex-wrap: wrap;
  border: 1px solid #2ca9e1;
  padding: 1em;
  border-radius: 5px;
  position: relative;
  min-width: calc(660px + 2em);
}
#construction-schedule-form-field .partner-companies-row .input-area,
#partner-company-schedule-form-field .partner-companies-row .input-area,
#construction-master-form-field .partner-companies-row .input-area,
#employee-master-form-field .partner-companies-row .input-area,
#info-manage-form-field .partner-companies-row .input-area,
.safety-time-master-form-field .partner-companies-row .input-area {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 1em;
}
#construction-schedule-form-field .partner-companies-row .input-area .autocomplete,
#partner-company-schedule-form-field .partner-companies-row .input-area .autocomplete,
#construction-master-form-field .partner-companies-row .input-area .autocomplete,
#employee-master-form-field .partner-companies-row .input-area .autocomplete,
#info-manage-form-field .partner-companies-row .input-area .autocomplete,
.safety-time-master-form-field .partner-companies-row .input-area .autocomplete {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 1;
}
#construction-schedule-form-field .partner-companies-row .input-area .textfield,
#construction-schedule-form-field .partner-companies-row .input-area .datepicker,
#partner-company-schedule-form-field .partner-companies-row .input-area .textfield,
#partner-company-schedule-form-field .partner-companies-row .input-area .datepicker,
#construction-master-form-field .partner-companies-row .input-area .textfield,
#construction-master-form-field .partner-companies-row .input-area .datepicker,
#employee-master-form-field .partner-companies-row .input-area .textfield,
#employee-master-form-field .partner-companies-row .input-area .datepicker,
#info-manage-form-field .partner-companies-row .input-area .textfield,
#info-manage-form-field .partner-companies-row .input-area .datepicker,
.safety-time-master-form-field .partner-companies-row .input-area .textfield,
.safety-time-master-form-field .partner-companies-row .input-area .datepicker {
  width: 100%;
  min-width: unset;
}
#construction-schedule-form-field .partner-companies-row .input-area .date-range-picker,
#partner-company-schedule-form-field .partner-companies-row .input-area .date-range-picker,
#construction-master-form-field .partner-companies-row .input-area .date-range-picker,
#employee-master-form-field .partner-companies-row .input-area .date-range-picker,
#info-manage-form-field .partner-companies-row .input-area .date-range-picker,
.safety-time-master-form-field .partner-companies-row .input-area .date-range-picker {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 3;
}
#construction-schedule-form-field .partner-companies-row .input-area .member-count-par-days-form,
#partner-company-schedule-form-field .partner-companies-row .input-area .member-count-par-days-form,
#construction-master-form-field .partner-companies-row .input-area .member-count-par-days-form,
#employee-master-form-field .partner-companies-row .input-area .member-count-par-days-form,
#info-manage-form-field .partner-companies-row .input-area .member-count-par-days-form,
.safety-time-master-form-field .partner-companies-row .input-area .member-count-par-days-form {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 4;
  grid-row-end: 4;
}
#construction-schedule-form-field .partner-companies-row button.MuiFab-root,
#partner-company-schedule-form-field .partner-companies-row button.MuiFab-root,
#construction-master-form-field .partner-companies-row button.MuiFab-root,
#employee-master-form-field .partner-companies-row button.MuiFab-root,
#info-manage-form-field .partner-companies-row button.MuiFab-root,
.safety-time-master-form-field .partner-companies-row button.MuiFab-root {
  position: absolute;
  top: 1em;
  right: 1em;
}
#construction-schedule-form-field ol,
#partner-company-schedule-form-field ol,
#construction-master-form-field ol,
#employee-master-form-field ol,
#info-manage-form-field ol,
.safety-time-master-form-field ol {
  margin: 0;
  padding-left: 1.5em;
  max-width: calc(100% - 1.5em);
}
#construction-schedule-form-field ol li:not(:last-child),
#partner-company-schedule-form-field ol li:not(:last-child),
#construction-master-form-field ol li:not(:last-child),
#employee-master-form-field ol li:not(:last-child),
#info-manage-form-field ol li:not(:last-child),
.safety-time-master-form-field ol li:not(:last-child) {
  margin-bottom: 1em;
}
#construction-schedule-form-field .checkbox-group,
#partner-company-schedule-form-field .checkbox-group,
#construction-master-form-field .checkbox-group,
#employee-master-form-field .checkbox-group,
#info-manage-form-field .checkbox-group,
.safety-time-master-form-field .checkbox-group {
  margin-left: 12px;
}

.rows {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.columns {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.safety-time-master-form-field {
  margin-top: 0.5em;
}

.safety-time-master-form-field.mobile {
  margin: 1.5em 1em 1em;
}
.safety-time-master-form-field.mobile .textfield.multiline {
  min-width: unset;
  width: 100%;
}

#employee-master-form-field,
#employee-master-table {
  width: 500px;
}

#construction-schedule-form-field.mobile,
#partner-company-schedule-form-field.mobile,
#construction-master-form-field.mobile,
#employee-master-form-field.mobile {
  width: 100%;
}
#construction-schedule-form-field.mobile .textfield,
#construction-schedule-form-field.mobile .autocomplete,
#partner-company-schedule-form-field.mobile .textfield,
#partner-company-schedule-form-field.mobile .autocomplete,
#construction-master-form-field.mobile .textfield,
#construction-master-form-field.mobile .autocomplete,
#employee-master-form-field.mobile .textfield,
#employee-master-form-field.mobile .autocomplete {
  min-width: unset;
  width: 100%;
}
#construction-schedule-form-field.mobile .partner-companies-row,
#partner-company-schedule-form-field.mobile .partner-companies-row,
#construction-master-form-field.mobile .partner-companies-row,
#employee-master-form-field.mobile .partner-companies-row {
  min-width: unset;
  width: calc(100% - 2em - 2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
}
#construction-schedule-form-field.mobile .partner-companies-row span.name,
#partner-company-schedule-form-field.mobile .partner-companies-row span.name,
#construction-master-form-field.mobile .partner-companies-row span.name,
#employee-master-form-field.mobile .partner-companies-row span.name {
  white-space: nowrap;
}
#construction-schedule-form-field.mobile .partner-companies-row .input-area,
#partner-company-schedule-form-field.mobile .partner-companies-row .input-area,
#construction-master-form-field.mobile .partner-companies-row .input-area,
#employee-master-form-field.mobile .partner-companies-row .input-area {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  width: 100%;
  align-items: flex-start;
}
#construction-schedule-form-field.mobile .partner-companies-row .input-area .autocomplete,
#construction-schedule-form-field.mobile .partner-companies-row .input-area .textfield,
#partner-company-schedule-form-field.mobile .partner-companies-row .input-area .autocomplete,
#partner-company-schedule-form-field.mobile .partner-companies-row .input-area .textfield,
#construction-master-form-field.mobile .partner-companies-row .input-area .autocomplete,
#construction-master-form-field.mobile .partner-companies-row .input-area .textfield,
#employee-master-form-field.mobile .partner-companies-row .input-area .autocomplete,
#employee-master-form-field.mobile .partner-companies-row .input-area .textfield {
  width: calc(100% - 50px);
}
#construction-schedule-form-field.mobile .partner-companies-row .input-area .date-range-picker,
#partner-company-schedule-form-field.mobile .partner-companies-row .input-area .date-range-picker,
#construction-master-form-field.mobile .partner-companies-row .input-area .date-range-picker,
#employee-master-form-field.mobile .partner-companies-row .input-area .date-range-picker {
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
}
#construction-schedule-form-field.mobile .partner-companies-row .input-area .date-range-picker .datepicker,
#partner-company-schedule-form-field.mobile .partner-companies-row .input-area .date-range-picker .datepicker,
#construction-master-form-field.mobile .partner-companies-row .input-area .date-range-picker .datepicker,
#employee-master-form-field.mobile .partner-companies-row .input-area .date-range-picker .datepicker {
  width: 100%;
}
#construction-schedule-form-field.mobile .textfield.multiline,
#partner-company-schedule-form-field.mobile .textfield.multiline,
#construction-master-form-field.mobile .textfield.multiline,
#employee-master-form-field.mobile .textfield.multiline {
  width: 100%;
  min-width: unset;
}
#construction-schedule-form-field.mobile .columns,
#partner-company-schedule-form-field.mobile .columns,
#construction-master-form-field.mobile .columns,
#employee-master-form-field.mobile .columns {
  gap: 0.5em;
}

#construction-schedule-table,
#partner-company-schedule-table,
#partner-company-master-table,
#construction-master-table,
#employee-master-table,
#employee-master-form-field,
#info-manage-table,
#change-history-table,
#day-schedule-dialog-table,
#total-no-accident-day-count,
#safety-time-summary-table,
#safety-point-table,
#notifications-table,
#main-contents #right-contents,
#main-contents #left-contents,
#construction-vendor-schedule-table,
#construction-schedule-update-table,
#calendor-construction-plan-table,
.construction-team-list,
#safety-time-master-table,
#safety-time-target-table {
  overflow-x: auto;
}
#construction-schedule-table table,
#partner-company-schedule-table table,
#partner-company-master-table table,
#construction-master-table table,
#employee-master-table table,
#employee-master-form-field table,
#info-manage-table table,
#change-history-table table,
#day-schedule-dialog-table table,
#total-no-accident-day-count table,
#safety-time-summary-table table,
#safety-point-table table,
#notifications-table table,
#main-contents #right-contents table,
#main-contents #left-contents table,
#construction-vendor-schedule-table table,
#construction-schedule-update-table table,
#calendor-construction-plan-table table,
.construction-team-list table,
#safety-time-master-table table,
#safety-time-target-table table {
  border-top: var(--table-border-style);
  border-right: var(--table-border-style);
  width: -webkit-fit-content;
  width: fit-content;
}
#construction-schedule-table table tr th,
#partner-company-schedule-table table tr th,
#partner-company-master-table table tr th,
#construction-master-table table tr th,
#employee-master-table table tr th,
#employee-master-form-field table tr th,
#info-manage-table table tr th,
#change-history-table table tr th,
#day-schedule-dialog-table table tr th,
#total-no-accident-day-count table tr th,
#safety-time-summary-table table tr th,
#safety-point-table table tr th,
#notifications-table table tr th,
#main-contents #right-contents table tr th,
#main-contents #left-contents table tr th,
#construction-vendor-schedule-table table tr th,
#construction-schedule-update-table table tr th,
#calendor-construction-plan-table table tr th,
.construction-team-list table tr th,
#safety-time-master-table table tr th,
#safety-time-target-table table tr th {
  background-color: var(--table-th-bgcolor);
  width: 10%;
  min-width: 70px;
}
#construction-schedule-table table tr th,
#construction-schedule-table table tr td,
#partner-company-schedule-table table tr th,
#partner-company-schedule-table table tr td,
#partner-company-master-table table tr th,
#partner-company-master-table table tr td,
#construction-master-table table tr th,
#construction-master-table table tr td,
#employee-master-table table tr th,
#employee-master-table table tr td,
#employee-master-form-field table tr th,
#employee-master-form-field table tr td,
#info-manage-table table tr th,
#info-manage-table table tr td,
#change-history-table table tr th,
#change-history-table table tr td,
#day-schedule-dialog-table table tr th,
#day-schedule-dialog-table table tr td,
#total-no-accident-day-count table tr th,
#total-no-accident-day-count table tr td,
#safety-time-summary-table table tr th,
#safety-time-summary-table table tr td,
#safety-point-table table tr th,
#safety-point-table table tr td,
#notifications-table table tr th,
#notifications-table table tr td,
#main-contents #right-contents table tr th,
#main-contents #right-contents table tr td,
#main-contents #left-contents table tr th,
#main-contents #left-contents table tr td,
#construction-vendor-schedule-table table tr th,
#construction-vendor-schedule-table table tr td,
#construction-schedule-update-table table tr th,
#construction-schedule-update-table table tr td,
#calendor-construction-plan-table table tr th,
#calendor-construction-plan-table table tr td,
.construction-team-list table tr th,
.construction-team-list table tr td,
#safety-time-master-table table tr th,
#safety-time-master-table table tr td,
#safety-time-target-table table tr th,
#safety-time-target-table table tr td {
  white-space: nowrap;
}
#construction-schedule-table table tr th.title,
#partner-company-schedule-table table tr th.title,
#partner-company-master-table table tr th.title,
#construction-master-table table tr th.title,
#employee-master-table table tr th.title,
#employee-master-form-field table tr th.title,
#info-manage-table table tr th.title,
#change-history-table table tr th.title,
#day-schedule-dialog-table table tr th.title,
#total-no-accident-day-count table tr th.title,
#safety-time-summary-table table tr th.title,
#safety-point-table table tr th.title,
#notifications-table table tr th.title,
#main-contents #right-contents table tr th.title,
#main-contents #left-contents table tr th.title,
#construction-vendor-schedule-table table tr th.title,
#construction-schedule-update-table table tr th.title,
#calendor-construction-plan-table table tr th.title,
.construction-team-list table tr th.title,
#safety-time-master-table table tr th.title,
#safety-time-target-table table tr th.title {
  font-size: 120%;
  font-weight: bold;
  padding: 8px 12px;
}
#construction-schedule-table table tr td,
#partner-company-schedule-table table tr td,
#partner-company-master-table table tr td,
#construction-master-table table tr td,
#employee-master-table table tr td,
#employee-master-form-field table tr td,
#info-manage-table table tr td,
#change-history-table table tr td,
#day-schedule-dialog-table table tr td,
#total-no-accident-day-count table tr td,
#safety-time-summary-table table tr td,
#safety-point-table table tr td,
#notifications-table table tr td,
#main-contents #right-contents table tr td,
#main-contents #left-contents table tr td,
#construction-vendor-schedule-table table tr td,
#construction-schedule-update-table table tr td,
#calendor-construction-plan-table table tr td,
.construction-team-list table tr td,
#safety-time-master-table table tr td,
#safety-time-target-table table tr td {
  border-right: var(--table-border-style);
}
#construction-schedule-table table tr td:last-child,
#partner-company-schedule-table table tr td:last-child,
#partner-company-master-table table tr td:last-child,
#construction-master-table table tr td:last-child,
#employee-master-table table tr td:last-child,
#employee-master-form-field table tr td:last-child,
#info-manage-table table tr td:last-child,
#change-history-table table tr td:last-child,
#day-schedule-dialog-table table tr td:last-child,
#total-no-accident-day-count table tr td:last-child,
#safety-time-summary-table table tr td:last-child,
#safety-point-table table tr td:last-child,
#notifications-table table tr td:last-child,
#main-contents #right-contents table tr td:last-child,
#main-contents #left-contents table tr td:last-child,
#construction-vendor-schedule-table table tr td:last-child,
#construction-schedule-update-table table tr td:last-child,
#calendor-construction-plan-table table tr td:last-child,
.construction-team-list table tr td:last-child,
#safety-time-master-table table tr td:last-child,
#safety-time-target-table table tr td:last-child {
  border-right: none;
}

#construction-schedule-table table .title div {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

#safety-point-table table tbody td,
#notifications-table table tbody td {
  white-space: pre-wrap;
  padding: 0;
}
#safety-point-table table tbody td span,
#notifications-table table tbody td span {
  padding: 8px 16px;
  display: block;
  max-height: 100px;
  overflow-y: auto;
}

#info-manage-table table {
  width: 50%;
}

#info-manage-table.mobile table,
#employee-master-table.mobile {
  width: 100%;
}

#construction-vendor-schedule-table table,
#calendor-construction-plan-table table,
#safety-time-target-table table {
  border-left: var(--table-border-style);
}

#construction-schedule-update-table table {
  border-left: var(--table-border-style);
}
#construction-schedule-update-table table .MuiTableCell-paddingCheckbox {
  padding: 0;
}
#construction-schedule-update-table table .member-select .select {
  width: 90px;
}
#construction-schedule-update-table table thead th .checkbox-group {
  margin: 0;
  padding: 0;
}
#construction-schedule-update-table table thead th .checkbox-group label span {
  padding: 5px;
}
#construction-schedule-update-table table tbody tr:nth-child(even) td {
  background-color: var(--table-tr-background-color);
}
#construction-schedule-update-table table tbody tr.isToday td {
  background-color: #fff3e8;
}
#construction-schedule-update-table table tbody td button.red-button {
  white-space: nowrap;
}

.construction-team-list table {
  border-left: var(--table-border-style);
}
.construction-team-list table thead th {
  border-right: var(--table-border-style);
}
.construction-team-list table thead th:last-child {
  border-right: none;
}
.construction-team-list table tbody tr:nth-child(even) {
  background-color: var(--table-tr-background-color);
}
.construction-team-list table tbody tr:last-child td {
  border-bottom: none;
}
.construction-team-list table tbody td.construction {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.construction-team-list table tbody td.construction span {
  white-space: pre;
}
.construction-team-list table tbody .construction-type::before {
  content: "（";
}
.construction-team-list table tbody .construction-type::after {
  content: "）";
}
.construction-team-list table tbody i {
  margin-right: 5px;
  font-size: 16px;
}
.construction-team-list table tbody i.cancel {
  color: var(--error-color);
}
.construction-team-list table tbody i.night {
  color: var(--night-background);
}
.construction-team-list table tbody i.work-day {
  color: var(--holiday-work-background);
}
.construction-team-list table tfoot {
  position: sticky;
  background-color: #fff;
  bottom: 0;
}
.construction-team-list table tfoot tr td {
  border-top: var(--table-border-style);
  color: var(--table-text-color);
  font-size: 0.875rem;
}

#construction-team-dialog-contents {
  height: 80vh;
  overflow-y: auto;
}
#construction-team-dialog-contents .construction-team-list {
  height: 100%;
}

#construction-team-dialog-contents.mobile {
  height: auto;
  padding: 1em;
}

#construction-schedule-dialog-contents.mobile,
#construction-master-dialog-container.mobile,
#partner-company-master-dialog-container.mobile,
#calendor-construction-plan-table.mobile {
  padding: 1em;
  width: calc(100% - 2em);
}
#construction-schedule-dialog-contents.mobile table td,
#construction-master-dialog-container.mobile table td,
#partner-company-master-dialog-container.mobile table td,
#calendor-construction-plan-table.mobile table td {
  white-space: pre-wrap;
}

#construction-schedule-dialog-contents.mobile table td.MuiTableCell-paddingCheckbox {
  white-space: nowrap;
}
#construction-schedule-dialog-contents.mobile #button-group-container button {
  padding: 5px 10px;
}
#construction-schedule-dialog-contents.mobile #construction-schedule-table table .title {
  font-size: 110%;
}
#construction-schedule-dialog-contents.mobile #construction-schedule-table table .title div {
  flex-direction: column-reverse;
  gap: 5px;
}

#change-history-table {
  width: 100%;
  height: 500px;
}
#change-history-table table {
  border-left: var(--table-border-style);
}
#change-history-table table td {
  padding: 6px 10px;
}
#change-history-table table tbody tr:last-child td {
  border-bottom: none;
}
#change-history-table table tfoot {
  position: sticky;
  background-color: #fff;
  bottom: 0;
}
#change-history-table table tfoot td {
  border-top: var(--table-border-style);
}
#change-history-table table tfoot td #pagination-container {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
}
#change-history-table table tfoot td #pagination-container nav {
  min-width: 140px;
}
#change-history-table table tfoot td #pagination-container .search-pager-text {
  white-space: nowrap;
  color: var(--table-text-color);
}

#total-no-accident-day-count {
  margin-bottom: 1em;
  width: 400px;
}

#safety-time-summary-table {
  width: 400px;
}
#safety-time-summary-table .table-title {
  margin: 0 0.5em;
}
#safety-time-summary-table .download-button {
  margin-top: 1.5em;
}

#partner-company-schedule .wx-bar.wx-summary {
  display: none;
}

table.day-schedule-table {
  border-collapse: collapse;
}
table.day-schedule-table th,
table.day-schedule-table td {
  white-space: nowrap;
}
table.day-schedule-table thead th {
  background-color: #333;
}
table.day-schedule-table thead th .MuiTableSortLabel-root {
  color: #fff;
}
table.day-schedule-table thead th .MuiTableSortLabel-root svg.MuiTableSortLabel-icon {
  color: #fff;
}
table.day-schedule-table tbody tr td.name {
  font-size: medium;
  font-weight: bold;
  width: 20%;
}
table.day-schedule-table tbody tr td.status {
  width: 20%;
}
table.day-schedule-table tbody tr td.time {
  width: 120px;
}
table.day-schedule-table tbody td.dest-cell {
  border: 2px dashed #bbb;
  min-height: 70px;
  background-color: transparent;
  vertical-align: middle;
  padding: 0;
}

#day-schedule-dialog-table table td.dest-cell {
  border: 2px dashed #bbb !important;
  min-height: 50px;
  background-color: transparent;
  vertical-align: middle;
  width: 200px;
  max-width: 200px;
  padding: 0;
}

table.day-schedule-table.mobile thead th {
  padding: 6px 0;
}
table.day-schedule-table.mobile tbody tr td:first-child {
  width: 60px;
  padding: 6px 0;
}
table.day-schedule-table.mobile tbody tr td.name {
  width: 40%;
  white-space: pre-wrap;
}
table.day-schedule-table.mobile tbody tr td.status {
  padding: 6px 0;
  width: 70px;
}
table.day-schedule-table.mobile tbody td .button {
  font-size: small;
  padding: 4px 15px;
  min-width: -webkit-fit-content;
  min-width: fit-content;
}

.color-label {
  padding: 6px 15px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

.day-schedule-date-picker {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
}

.search-table-title {
  font-size: 20px;
  font-weight: bold;
  color: #444;
  border-left: 6px solid var(--primary-blue);
  padding-left: 10px;
  margin-bottom: 15px;
}

.search-table-page {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  height: calc(100% - 2em);
}
.search-table-page .search-table-container {
  max-height: 100%;
  overflow: hidden;
}
.search-table-page .search-table-container .search-table {
  border-radius: 4px 4px 0 0;
  height: calc(100% - var(--search-pagination-height));
}
.search-table-page .search-table-container .search-table tr {
  white-space: nowrap;
}
.search-table-page .search-table-container .search-table tr th:first-child {
  width: 60px;
}
.search-table-page .search-table-container .search-table thead tr th {
  background-color: var(--primary-blue);
  color: #fff;
}
.search-table-page .search-table-container .search-table thead tr th span {
  color: #fff;
}
.search-table-page .search-table-container .search-table thead tr th svg {
  color: #fff !important;
}
.search-table-page .search-table-container .search-table tbody tr:nth-child(even) {
  background-color: var(--table-tr-background-color);
}
.search-table-page .search-table-container .search-table tbody tr td:first-child button {
  font-size: small;
  padding: 4px 15px;
  min-width: -webkit-fit-content;
  min-width: fit-content;
}
.search-table-page .search-table-container .search-table-footer {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
  padding: 5px;
  border-top: var(--table-border-style);
}
.search-table-page .search-table-container .search-pager-text {
  font-size: small;
}
.search-table-page .search-table-container .search-pager-select {
  border-color: #aaa;
  border-radius: 3px;
}

.search-table-container.mobile .search-table-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 5px 15px 5px 10px;
  gap: 0;
}
.search-table-container.mobile .search-table-footer .buttons {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  justify-content: center;
}
.search-table-container.mobile .search-table-footer .buttons button {
  padding: 2px;
}
.search-table-container.mobile .search-table-footer .search-pager-text {
  text-align: center;
  padding: 0 8px;
}

.search-block {
  padding: 1em 1.5em;
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: 1em;
  justify-content: space-between;
  margin-bottom: 1em;
}
.search-block .search-input-area {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1em;
  flex-wrap: wrap;
}
.search-block .search-input-area .autocomplete,
.search-block .search-input-area .textfield {
  width: 180px;
}
.search-block .search-input-area .select {
  width: 150px;
}
.search-block .search-input-area .datepicker {
  width: 160px;
}
.search-block .button-area {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

table#info-dialog-table,
table#marker-dialog-table,
table#week-schedule-show-table {
  border-spacing: 10px 5px;
}
table#info-dialog-table th,
table#marker-dialog-table th,
table#week-schedule-show-table th {
  white-space: nowrap;
}
table#info-dialog-table .textfield,
table#info-dialog-table .timepicker,
table#marker-dialog-table .textfield,
table#marker-dialog-table .timepicker,
table#week-schedule-show-table .textfield,
table#week-schedule-show-table .timepicker {
  width: 250px;
}
table#info-dialog-table .select,
table#marker-dialog-table .select,
table#week-schedule-show-table .select {
  width: 150px;
}

#calendar {
  margin-bottom: 1em;
}
#calendar .calendar-event-container {
  border-radius: 3px;
  padding: 1px;
  cursor: pointer;
  max-width: 100%;
}
#calendar .calendar-event-div {
  padding: 2px 10px;
  color: #000;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#calendar .calendar-event-ul {
  margin: 5px;
  padding: 0;
}
#calendar .calendar-event-ul li {
  list-style: none;
  padding: 3px 8px;
  margin-top: 5px;
  border-radius: 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #fff;
}
#calendar .fc-toolbar-title {
  font-size: larger;
  display: inline-block;
}
#calendar .fc-today-button,
#calendar .fc-prev-button,
#calendar .fc-next-button,
#calendar .fc-prevYear-button,
#calendar .fc-nextYear-button,
#calendar .fc-dayGridMonth-button,
#calendar .fc-dayGridWeek-button {
  font-size: smaller;
}
#calendar .fc-day-sun {
  color: var(--sunday-color);
}
#calendar .fc-day-sat {
  color: var(--saturday-color);
}
#calendar .fc-h-event {
  background-color: unset;
  border: none;
}

#calendar.mobile {
  height: calc(100svh - 186px);
  overflow-y: auto;
  margin-bottom: 0;
}

.banned-message {
  font-size: smaller;
  color: var(--error-color);
  margin-top: 1em;
  display: block;
}

.banned-message::before {
  content: "※";
}

.required-span {
  color: #f00;
  margin-left: 5px;
  font-weight: bold;
}

#schedule-operation-dialog-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}
#schedule-operation-dialog-content ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
#schedule-operation-dialog-content ol li {
  margin-bottom: 0.6em;
}
#schedule-operation-dialog-content ol li:last-child {
  margin-bottom: 0;
}
#schedule-operation-dialog-content .checkbox-group {
  margin-left: 12px;
}
#schedule-operation-dialog-content span.label {
  font-size: 15px;
}
#schedule-operation-dialog-content .date-picker-row {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  align-items: center;
}
#schedule-operation-dialog-content .date-picker-row .datepicker {
  width: 180px;
}
#schedule-operation-dialog-content .date-picker-row span.index-number {
  width: 25px;
  text-align: right;
}

#schedule-operation-dialog-content.mobile .date-picker-row {
  width: 100%;
  display: grid;
  grid-template-columns: 25px 1fr 40px;
}
#schedule-operation-dialog-content.mobile .date-picker-row .date-range-picker,
#schedule-operation-dialog-content.mobile .date-picker-row .datepicker {
  width: 100%;
}
#schedule-operation-dialog-content.mobile .date-picker-row .button {
  margin-left: 0;
}
#schedule-operation-dialog-content.mobile .autocomplete {
  min-width: unset;
  width: 100%;
}
#schedule-operation-dialog-content.mobile .buttons {
  margin-top: 1em;
  text-align: right;
}

#dashboard-row-contents {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 25%;
  position: relative;
}
#dashboard-row-contents .leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
#dashboard-row-contents .leaflet-popup .card {
  width: 340px;
  margin-bottom: 0;
}
#dashboard-row-contents .leaflet-popup-content-wrapper {
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 0 !important;
}
#dashboard-row-contents .leaflet-marker-icon {
  border: none;
  background-color: rgba(0, 0, 0, 0);
}

#display-period-button {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  overflow-x: auto;
}
#display-period-button #display-range {
  font-size: 14px;
  display: inline-block;
}
#display-period-button .MuiButtonGroup-root {
  background-color: #fff;
  margin: 0;
}

.display-period-dialog-container {
  padding: 1.5em 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.display-period-dialog-container .date-range-picker {
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
}

#marker-list {
  background: #fafafa;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}
#marker-list .checkbox-and-picker {
  padding: 10px 15px;
  margin: 0;
  width: calc(100% - 30px);
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
  overflow-x: auto;
}
#marker-list #schedule-list {
  overflow-y: auto;
  padding: 10px;
  height: calc(100% - 20px);
}
#marker-list #display-period-button {
  margin-top: 1em;
}
#marker-list .empty-message {
  font-size: 14px;
  color: #333;
}

#dashboard-row-contents.mobile {
  grid-template-columns: 1fr 0;
}
#dashboard-row-contents.mobile .search-fab {
  position: absolute;
  bottom: 1em;
  right: 1em;
  width: var(--fab-button-size);
  height: var(--fab-button-size);
}

#search-full-dialog {
  background-color: #fafafa;
  height: 100%;
  overflow: hidden;
}
#search-full-dialog #chart-filter-checkbox {
  width: 100%;
}

.card {
  border: none;
  border-radius: 6px;
  background: #fff;
  font-family: sans-serif;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 10px;
  cursor: pointer;
}
.card .card-header {
  padding: 8px 28px 8px 8px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
  border-radius: 6px 6px 0 0;
}
.card .card-body {
  font-size: 12px;
  padding: 8px;
  box-sizing: border-box;
}
.card .card-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.card .card-body table th,
.card .card-body table td {
  padding: 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}
.card .card-body table th {
  width: 90px;
  white-space: nowrap;
  font-weight: bold;
  color: #444;
}
.card .card-body table td {
  width: calc(100% - 90px);
  white-space: normal;
  word-break: break-word;
}
.card .card-body table tr.sub-row th {
  font-weight: normal;
}
.card .card-body table tr.sub-row th,
.card .card-body table tr.sub-row td {
  padding-left: 20px;
  font-size: 11px;
  color: #555;
}
.card .card-body table tr:last-child td,
.card .card-body table tr:last-child th {
  border-bottom: none;
}

.card:last-child {
  margin-bottom: 0;
}

#week-schedule-form-field {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 0.5em;
}
#week-schedule-form-field .select {
  width: 190px;
}
#week-schedule-form-field .datetimepicker {
  width: 190px;
}
#week-schedule-form-field .textfield {
  min-width: 300px;
}

#week-schedule-form-field.page {
  width: -webkit-fit-content;
  width: fit-content;
}
#week-schedule-form-field.page .textfield {
  min-width: 500px;
}

#week-schedule-form-field.mobile {
  width: 100%;
}
#week-schedule-form-field.mobile .select,
#week-schedule-form-field.mobile .textfield {
  width: 100%;
  min-width: unset;
}
#week-schedule-form-field.mobile .datetimepicker {
  width: calc((100% - 1em - 16px) / 2);
}

#week-schedule-contents {
  position: relative;
}
#week-schedule-contents .ant-row .ant-col:last-child {
  margin-right: 120px;
}
#week-schedule-contents .slot {
  display: flex;
  gap: 0.5em;
  align-items: center;
  justify-content: center;
}
#week-schedule-contents .slot span {
  width: 120px;
}
#week-schedule-contents .slot button {
  z-index: 0;
}
#week-schedule-contents .custom-event {
  position: relative;
  padding-left: 10px;
}
#week-schedule-contents .custom-event .border {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  height: 100%;
}
#week-schedule-contents .today-button {
  position: absolute;
  top: 1px;
  right: 325px;
  background-color: var(--primary-blue);
}
#week-schedule-contents .today-button:hover {
  background-color: var(--primary-hover-blue);
}

#week-schedule-contents.mobile .slot {
  flex-direction: column;
}
#week-schedule-contents.mobile .slot span {
  width: unset;
  white-space: nowrap;
}

.popover-calendar {
  width: 300px;
}

.dialog .dialog-title,
.progress-dialog .dialog-title {
  font-size: 20px;
  font-weight: bold;
  color: #444;
  border-left: var(--dialog-title-left-border);
  padding: 0 0 0 10px;
  margin: 20px 20px 10px;
}
.dialog .dialog-title.error,
.progress-dialog .dialog-title.error {
  border-left: 6px solid var(--error-color);
}
.dialog .MuiDialogContent-root,
.progress-dialog .MuiDialogContent-root {
  padding: 0 20px 20px;
}
.dialog .close-button,
.progress-dialog .close-button {
  position: absolute;
  top: 0.3em;
  right: 0.3em;
}
.dialog #progress-dialog-contents,
.progress-dialog #progress-dialog-contents {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 0.5em;
  align-items: center;
  margin-top: 1em;
}
.dialog #progress-dialog-contents span,
.progress-dialog #progress-dialog-contents span {
  font-size: 14.5px;
  color: #555;
  text-align: center;
}

.fullscreen-dialog header .MuiToolbar-root {
  padding-right: 8px;
}
.fullscreen-dialog header p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fullscreen-dialog #contents {
  height: calc(100svh - var(--header-height));
  overflow-y: auto;
}
.fullscreen-dialog .buttons {
  padding: 1em;
  text-align: right;
}
.fullscreen-dialog .search-input-area {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: calc(100% - 2em);
  padding: 1.5em 1em;
}
.fullscreen-dialog .search-input-area .input-area {
  width: calc(100% - 85px - 1em);
}
.fullscreen-dialog .search-input-area .select,
.fullscreen-dialog .search-input-area .textfield,
.fullscreen-dialog .search-input-area .autocomplete {
  width: 100%;
}
.fullscreen-dialog .search-input-area .button-area {
  width: 85px;
  gap: 0.5em;
}
.fullscreen-dialog .search-input-area .date-range-picker {
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
}
.fullscreen-dialog .button-area {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
  justify-content: center;
  padding: 0 2em;
}

#chart-filter-checkbox {
  display: inline-flex;
  gap: 6px;
  justify-content: space-between;
  width: 400px;
  max-width: 100%;
}
#chart-filter-checkbox span {
  width: 100%;
}
#chart-filter-checkbox input[type=checkbox] {
  display: none;
}
#chart-filter-checkbox label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  padding: 8px 4px;
  border-radius: 20px;
  border: 1px solid #999;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
#chart-filter-checkbox input[type=checkbox]:checked + label {
  color: #fff;
  border-color: transparent;
}
#chart-filter-checkbox i {
  font-size: 12px;
  margin-top: 1px;
}

#custom-popover {
  padding: 1em;
}
#custom-popover span {
  display: block;
  margin-bottom: 0.5em;
  font-size: 15px;
}
#custom-popover .datepicker {
  width: 150px;
}
#custom-popover #button {
  margin-top: 1em;
  text-align: right;
}

#gantt-footer {
  display: grid;
  grid-auto-flow: column;
}
#gantt-footer .header {
  text-align: right;
  padding: 10px;
  border-right: 1px solid rgba(29, 30, 38, 0.1019607843);
  overflow: auto;
}
#gantt-footer #gantt-footer-body {
  display: inline-block;
  overflow-x: auto;
  scrollbar-width: none;
}
#gantt-footer #gantt-footer-body div {
  display: inline-block;
  text-align: center;
  padding: 10px;
  border-right: 1px solid rgba(29, 30, 38, 0.1019607843);
  font-weight: bold;
}
#gantt-footer #gantt-footer-body div.today {
  background-color: var(--today-color);
  border: 2px solid #f00;
  border-top: none;
}
#gantt-footer #gantt-footer-body div:last-child {
  border: none;
}

#construction-schedule-dialog-contents #button-group-container {
  margin-bottom: 1em;
  overflow-x: auto;
}
#construction-schedule-dialog-contents #button-group-container .button-group button {
  white-space: nowrap;
}
#construction-schedule-dialog-contents #construction-schedule-table,
#construction-schedule-dialog-contents #construction-master-table {
  margin-top: 1em;
}
#construction-schedule-dialog-contents .error-msg {
  color: var(--error-color);
}

.toggle-button {
  background-color: #fff;
}
.toggle-button button {
  border-color: rgba(0, 0, 0, 0.12);
  padding: 7px;
}
.toggle-button button svg {
  fill: rgba(0, 0, 0, 0.54);
}
.toggle-button button:hover {
  border-right-color: rgba(0, 0, 0, 0.12) !important;
}
.toggle-button button.selected {
  background-color: rgba(25, 118, 210, 0.08);
}
.toggle-button button.selected svg {
  fill: var(--primary-blue);
}

.member-count-change-popover {
  position: fixed;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 250px;
  height: 135px;
}
.member-count-change-popover .buttons {
  text-align: right;
}
.member-count-change-popover .MuiIconButton-root {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}

.member-count-change-popover::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent #fff;
  border-width: 0 10px 10px;
}

.member-count-change-popover.bottomLeft::before {
  bottom: -10px;
  top: unset;
  border-color: #fff transparent transparent;
  border-width: 10px 10px 0;
}

.member-count-change-popover.topRight::before {
  right: 20px;
  left: unset;
}

.member-count-change-popover.bottomRight::before {
  bottom: -10px;
  top: unset;
  right: 20px;
  left: unset;
  border-color: #fff transparent transparent;
  border-width: 10px 10px 0;
}

.member-select .select {
  width: 200px;
}

button.day-schedule-status-button {
  color: #fff;
  min-width: 120px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
}

button.day-schedule-status-button.mobile {
  min-width: 60px;
  font-size: 14px;
}

#status-dialog-contents {
  text-align: center;
  margin-top: 1em;
}
#status-dialog-contents #status-radio-button {
  display: inline-grid;
  grid-template-columns: repeat(5, 90px);
  gap: 10px;
}
#status-dialog-contents #status-radio-button span {
  width: 100%;
}
#status-dialog-contents #status-radio-button input[type=radio] {
  display: none;
}
#status-dialog-contents #status-radio-button label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #fff;
  min-width: 90px;
  font-weight: bold;
}
#status-dialog-contents #status-radio-button.mobile {
  grid-template-columns: repeat(2, 90px);
}

button.day-schedule-time-button {
  width: 100px;
  height: 35px;
  padding: 6px 10px;
  color: #333;
  background-color: #f7f7f7;
  font-weight: bold;
  font-size: medium;
}

button.day-schedule-time-button:disabled {
  background-color: #dbdbdb;
}

button.day-schedule-time-button.mobile {
  width: 60px;
  height: 30px;
}

#return-time-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 1em;
}
#return-time-buttons button {
  background-color: #f7f7f7;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}
#return-time-buttons button.selected {
  background-color: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}
#return-time-buttons button.unset {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 13;
  grid-row-end: 13;
}

#return-time-buttons.mobile {
  padding: 1em;
  margin-top: 0;
}

#dest-canvas-container {
  margin-top: 1em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1em;
}
#dest-canvas-container #dest-canvas .konvajs-content {
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 0 auto;
}
#dest-canvas-container #dest-canvas-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#dest-canvas-container #dest-canvas-tools button {
  padding: 10px;
  min-width: unset;
}

#dest-canvas-container.mobile {
  margin: 1em;
  flex-direction: column-reverse;
}
#dest-canvas-container.mobile #dest-canvas-tools {
  flex-direction: row;
  gap: 1em;
}

#dest-draw-image {
  width: 700px;
  height: 200px;
  margin: 1em auto 0;
  border: 1px solid #ccc;
}
#dest-draw-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
#dest-draw-image #no-image {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
  justify-content: center;
  height: 100%;
}
#dest-draw-image #no-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
#dest-draw-image #no-image span {
  font-size: x-large;
  color: #666;
}

#dest-draw-image.mobile {
  width: calc(100% - 2em - 2px);
  height: auto;
  margin: 1em 1em 0;
}
#dest-draw-image.mobile #no-image {
  min-height: 100px;
}

#destination-textfield {
  margin: 1em auto 0;
}

#destination-textfield.mobile {
  margin: 1em 1em 0;
}

button.day-schedule-dest-button {
  padding: 0;
  width: 100%;
  min-height: 70px;
  position: relative;
}
button.day-schedule-dest-button img {
  width: 100%;
  height: 70px;
  object-fit: contain;
}
button.day-schedule-dest-button span {
  white-space: pre-wrap;
  text-transform: none;
  color: #000;
  display: inline-block;
  width: calc(100% - 2em - 4px);
  text-align: start;
  padding: 0.5em 1em;
  font-size: 15px;
}

button.dest-delete-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: red;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  padding: 0;
}

.overlay-loading {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 99999;
}
.overlay-loading .MuiCircularProgress-root {
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
}

.overlay-loading.map-loading {
  position: absolute;
}

.progress {
  position: relative;
  padding: 0.5em 0;
}
.progress #contents {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}
.progress #contents p {
  white-space: nowrap;
}

.accident-at-cell {
  width: 120px;
}

.accident-at-cell.mobile {
  width: 100px;
}

#construction-schedule-map-dialog #map-container {
  height: 40svh;
}

#safety-time-master-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
#safety-time-master-header #safety-time-target-table {
  width: auto;
  display: grid;
  grid-template-columns: 300px auto;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 1em;
  padding-right: 2em;
}
#safety-time-master-header .create-accident-button {
  margin-bottom: 0 !important;
}

#safety-time-master-header.mobile {
  flex-direction: column;
}
#safety-time-master-header.mobile #safety-time-target-table {
  grid-template-columns: 1fr auto;
  padding-right: 0;
  align-items: flex-start;
  width: 100%;
}
#safety-time-master-header.mobile .create-accident-button {
  margin-bottom: 1em;
}

#day-schedule-search-field {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 0.5em;
}
#day-schedule-search-field .select {
  min-width: 150px;
}
#day-schedule-search-field .timepicker {
  width: 150px;
}

#day-schedule-search-field.mobile {
  margin: 1.5em 1em 1em;
  flex-direction: column;
  flex-wrap: unset;
}
#day-schedule-search-field.mobile .select,
#day-schedule-search-field.mobile .timepicker {
  min-width: unset;
  width: unset;
}

/** 各ページの CSS */
#login-page #content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  width: 40%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#login-page #content img {
  width: 200px;
  height: 200px;
}

#login-page.mobile #content {
  width: calc(100% - 2em);
}

#construction-schedule-chart-page,
#partner-company-schedule-chart-page {
  padding: 0 1em 1em;
  overflow: auto;
  white-space: nowrap;
  position: relative;
}
#construction-schedule-chart-page .wx-progress-marker,
#construction-schedule-chart-page button.wx-button,
#construction-schedule-chart-page .wx-toggle-placeholder,
#construction-schedule-chart-page .wx-link,
#construction-schedule-chart-page .wx-grip,
#construction-schedule-chart-page .wx-resizer,
#partner-company-schedule-chart-page .wx-progress-marker,
#partner-company-schedule-chart-page button.wx-button,
#partner-company-schedule-chart-page .wx-toggle-placeholder,
#partner-company-schedule-chart-page .wx-link,
#partner-company-schedule-chart-page .wx-grip,
#partner-company-schedule-chart-page .wx-resizer {
  display: none;
}
#construction-schedule-chart-page .toggle-button,
#partner-company-schedule-chart-page .toggle-button {
  position: absolute;
  top: 1em;
  right: 1em;
}
#construction-schedule-chart-page .wx-row .wx-cell,
#partner-company-schedule-chart-page .wx-row .wx-cell {
  background: unset;
}
#construction-schedule-chart-page .chart-header .button-group,
#partner-company-schedule-chart-page .chart-header .button-group {
  padding: 1em 0;
}
#construction-schedule-chart-page .chart-header #chart-filter-checkbox,
#partner-company-schedule-chart-page .chart-header #chart-filter-checkbox {
  margin-left: 1em;
}
#construction-schedule-chart-page .chart-header .download-button,
#partner-company-schedule-chart-page .chart-header .download-button {
  position: absolute;
  top: 1.35em;
  right: 155px;
  background-color: #fff;
}
#construction-schedule-chart-page #display-period-button,
#partner-company-schedule-chart-page #display-period-button {
  margin-bottom: 1em;
}
#construction-schedule-chart-page #display-period-button .MuiButtonGroup-root,
#partner-company-schedule-chart-page #display-period-button .MuiButtonGroup-root {
  margin-bottom: 0;
}
#construction-schedule-chart-page #display-period-button #display-range,
#partner-company-schedule-chart-page #display-period-button #display-range {
  display: inline;
}

#construction-schedule-chart-page.mobile #chart-filter-checkbox,
#partner-company-schedule-chart-page.mobile #chart-filter-checkbox {
  display: flex;
  margin-bottom: 1em;
  margin-left: 0;
  width: 100%;
}
#construction-schedule-chart-page.mobile #display-period-button,
#partner-company-schedule-chart-page.mobile #display-period-button {
  overflow-x: auto;
}
#construction-schedule-chart-page.mobile #display-period-button #display-range,
#partner-company-schedule-chart-page.mobile #display-period-button #display-range {
  display: block;
  margin: 0.5em 0;
}

#construction-schedule-create-page,
#construction-schedule-show-page,
#partner-company-schedule-show-page,
#partner-company-master-show-page,
#construction-master-show,
#info-page,
#construction-master-page,
#partner-company-master-page,
#employee-master-page,
#profile-edit-page,
#construction-schedule-search-page,
#info-manage-page,
#day-schedule-create-page,
#safety-time-summary-page,
#safety-time-master-page,
#top-page,
#settings-page {
  padding: 1em;
}
#construction-schedule-create-page .button-group,
#construction-schedule-create-page .create-accident-button,
#construction-schedule-create-page .import-button,
#construction-schedule-show-page .button-group,
#construction-schedule-show-page .create-accident-button,
#construction-schedule-show-page .import-button,
#partner-company-schedule-show-page .button-group,
#partner-company-schedule-show-page .create-accident-button,
#partner-company-schedule-show-page .import-button,
#partner-company-master-show-page .button-group,
#partner-company-master-show-page .create-accident-button,
#partner-company-master-show-page .import-button,
#construction-master-show .button-group,
#construction-master-show .create-accident-button,
#construction-master-show .import-button,
#info-page .button-group,
#info-page .create-accident-button,
#info-page .import-button,
#construction-master-page .button-group,
#construction-master-page .create-accident-button,
#construction-master-page .import-button,
#partner-company-master-page .button-group,
#partner-company-master-page .create-accident-button,
#partner-company-master-page .import-button,
#employee-master-page .button-group,
#employee-master-page .create-accident-button,
#employee-master-page .import-button,
#profile-edit-page .button-group,
#profile-edit-page .create-accident-button,
#profile-edit-page .import-button,
#construction-schedule-search-page .button-group,
#construction-schedule-search-page .create-accident-button,
#construction-schedule-search-page .import-button,
#info-manage-page .button-group,
#info-manage-page .create-accident-button,
#info-manage-page .import-button,
#day-schedule-create-page .button-group,
#day-schedule-create-page .create-accident-button,
#day-schedule-create-page .import-button,
#safety-time-summary-page .button-group,
#safety-time-summary-page .create-accident-button,
#safety-time-summary-page .import-button,
#safety-time-master-page .button-group,
#safety-time-master-page .create-accident-button,
#safety-time-master-page .import-button,
#top-page .button-group,
#top-page .create-accident-button,
#top-page .import-button,
#settings-page .button-group,
#settings-page .create-accident-button,
#settings-page .import-button {
  margin-bottom: 1em;
  width: -webkit-fit-content;
  width: fit-content;
  text-transform: none;
}
#construction-schedule-create-page #map-container,
#construction-schedule-show-page #map-container,
#partner-company-schedule-show-page #map-container,
#partner-company-master-show-page #map-container,
#construction-master-show #map-container,
#info-page #map-container,
#construction-master-page #map-container,
#partner-company-master-page #map-container,
#employee-master-page #map-container,
#profile-edit-page #map-container,
#construction-schedule-search-page #map-container,
#info-manage-page #map-container,
#day-schedule-create-page #map-container,
#safety-time-summary-page #map-container,
#safety-time-master-page #map-container,
#top-page #map-container,
#settings-page #map-container {
  height: 500px;
  width: 100%;
}

#construction-schedule-show-page .button-group {
  margin-bottom: 1em;
}
#construction-schedule-show-page .table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}
#construction-schedule-show-page .table-row table td {
  white-space: pre-wrap;
}
#construction-schedule-show-page .map-row {
  margin-top: 1em;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1em;
}
#construction-schedule-show-page .map-row #map-container,
#construction-schedule-show-page .map-row .leaflet-container {
  height: 100%;
  width: 100%;
}

#construction-schedule-create-page,
#construction-schedule-search-page {
  position: relative;
}
#construction-schedule-create-page #no-select-construction-button,
#construction-schedule-search-page #no-select-construction-button {
  margin-bottom: 1em;
  width: -webkit-fit-content;
  width: fit-content;
}
#construction-schedule-create-page #construction-schedule-create-top,
#construction-schedule-search-page #construction-schedule-create-top {
  display: grid;
  grid-template-columns: minmax(calc(660px + 4em + 2px), 1fr) 1fr;
  gap: 1em;
}
#construction-schedule-create-page #construction-schedule-create-top #construction-schedule-form-field,
#construction-schedule-search-page #construction-schedule-create-top #construction-schedule-form-field {
  margin-bottom: 1em;
}
#construction-schedule-create-page #construction-schedule-create-top #construction-master-table table td,
#construction-schedule-search-page #construction-schedule-create-top #construction-master-table table td {
  white-space: pre-wrap;
}
#construction-schedule-create-page #construction-search.search-table-page,
#construction-schedule-search-page #construction-search.search-table-page {
  padding: 1px;
}
#construction-schedule-create-page .footer-buttons .red-button,
#construction-schedule-search-page .footer-buttons .red-button {
  position: absolute;
  top: 0;
  right: 1em;
}

#construction-schedule-create-page.search-table-page,
#construction-schedule-search-page.search-table-page,
#construction-master-page.search-table-page,
#employee-master-page.search-table-page,
#partner-company-master-page.search-table-page {
  grid-template-rows: auto auto 1fr;
}

#safety-time-master-page.search-table-page.no-add-button {
  grid-template-rows: 1fr;
}

#safety-time-summary-page #empty-message {
  margin: 0 0.5em;
}

#day-schedule-page,
#mobile-day-schedule-page {
  padding: 1.5em 1em;
  position: relative;
}
#day-schedule-page #day-schedule-loading,
#mobile-day-schedule-page #day-schedule-loading {
  position: absolute;
  top: 1em;
  left: 1em;
}
#day-schedule-page #day-schedule-loading.mobile,
#mobile-day-schedule-page #day-schedule-loading.mobile {
  top: 1.5em;
}
#day-schedule-page #today,
#mobile-day-schedule-page #today {
  color: #555;
  font-size: 1.2em;
  text-align: center;
  margin-top: 0;
}
#day-schedule-page .table-row,
#mobile-day-schedule-page .table-row {
  display: grid;
  gap: 1em;
}
#day-schedule-page .table-row .MuiPaper-root,
#mobile-day-schedule-page .table-row .MuiPaper-root {
  height: -webkit-fit-content;
  height: fit-content;
}
#day-schedule-page .toggle-button,
#mobile-day-schedule-page .toggle-button {
  top: 1em;
  position: absolute;
  right: 1.5em;
}
#day-schedule-page .MuiTableContainer-root,
#mobile-day-schedule-page .MuiTableContainer-root {
  border-radius: 4px 4px 0 0;
}
#day-schedule-page #empty-message,
#mobile-day-schedule-page #empty-message {
  text-align: center;
  margin-top: 0.5em;
}

#mobile-day-schedule-page .day-schedule-date-picker {
  justify-content: flex-start;
}
#mobile-day-schedule-page .day-schedule-date-picker .datepicker {
  width: 150px;
}

#week-schedule-page {
  padding: 0 1em;
  position: relative;
}
#week-schedule-page .react-big-schedule {
  width: 100%;
  margin: 1em auto;
}
#week-schedule-page .toggle-button {
  position: absolute;
  right: 1.5em;
  top: 0;
  z-index: 5;
}

#week-schedule-page.mobile .day-schedule-toggle-button {
  top: 1em;
}

#construction-schedule-create-page.mobile,
#mobile-day-schedule-page,
#construction-schedule-show-page.mobile,
#partner-company-schedule-show-page.mobile,
#construction-master-show.mobile,
#info-page.mobile,
#construction-master-page.mobile,
#partner-company-master-page.mobile,
#employee-master-page.mobile,
#profile-edit-page.mobile,
#construction-schedule-search-page.mobile,
#day-schedule-create-page.mobile,
#safety-time-summary-page.mobile {
  width: calc(100vw - 2em);
}
#construction-schedule-create-page.mobile #map-container,
#mobile-day-schedule-page #map-container,
#construction-schedule-show-page.mobile #map-container,
#partner-company-schedule-show-page.mobile #map-container,
#construction-master-show.mobile #map-container,
#info-page.mobile #map-container,
#construction-master-page.mobile #map-container,
#partner-company-master-page.mobile #map-container,
#employee-master-page.mobile #map-container,
#profile-edit-page.mobile #map-container,
#construction-schedule-search-page.mobile #map-container,
#day-schedule-create-page.mobile #map-container,
#safety-time-summary-page.mobile #map-container {
  height: 250px;
  width: 100%;
}
#construction-schedule-create-page.mobile #advanced-search,
#mobile-day-schedule-page #advanced-search,
#construction-schedule-show-page.mobile #advanced-search,
#partner-company-schedule-show-page.mobile #advanced-search,
#construction-master-show.mobile #advanced-search,
#info-page.mobile #advanced-search,
#construction-master-page.mobile #advanced-search,
#partner-company-master-page.mobile #advanced-search,
#employee-master-page.mobile #advanced-search,
#profile-edit-page.mobile #advanced-search,
#construction-schedule-search-page.mobile #advanced-search,
#day-schedule-create-page.mobile #advanced-search,
#safety-time-summary-page.mobile #advanced-search {
  margin-bottom: 1em;
}
#construction-schedule-create-page.mobile #row-contents,
#mobile-day-schedule-page #row-contents,
#construction-schedule-show-page.mobile #row-contents,
#partner-company-schedule-show-page.mobile #row-contents,
#construction-master-show.mobile #row-contents,
#info-page.mobile #row-contents,
#construction-master-page.mobile #row-contents,
#partner-company-master-page.mobile #row-contents,
#employee-master-page.mobile #row-contents,
#profile-edit-page.mobile #row-contents,
#construction-schedule-search-page.mobile #row-contents,
#day-schedule-create-page.mobile #row-contents,
#safety-time-summary-page.mobile #row-contents {
  display: block;
}
#construction-schedule-create-page.mobile #total-no-accident-day-count,
#construction-schedule-create-page.mobile #safety-time-summary-table,
#mobile-day-schedule-page #total-no-accident-day-count,
#mobile-day-schedule-page #safety-time-summary-table,
#construction-schedule-show-page.mobile #total-no-accident-day-count,
#construction-schedule-show-page.mobile #safety-time-summary-table,
#partner-company-schedule-show-page.mobile #total-no-accident-day-count,
#partner-company-schedule-show-page.mobile #safety-time-summary-table,
#construction-master-show.mobile #total-no-accident-day-count,
#construction-master-show.mobile #safety-time-summary-table,
#info-page.mobile #total-no-accident-day-count,
#info-page.mobile #safety-time-summary-table,
#construction-master-page.mobile #total-no-accident-day-count,
#construction-master-page.mobile #safety-time-summary-table,
#partner-company-master-page.mobile #total-no-accident-day-count,
#partner-company-master-page.mobile #safety-time-summary-table,
#employee-master-page.mobile #total-no-accident-day-count,
#employee-master-page.mobile #safety-time-summary-table,
#profile-edit-page.mobile #total-no-accident-day-count,
#profile-edit-page.mobile #safety-time-summary-table,
#construction-schedule-search-page.mobile #total-no-accident-day-count,
#construction-schedule-search-page.mobile #safety-time-summary-table,
#day-schedule-create-page.mobile #total-no-accident-day-count,
#day-schedule-create-page.mobile #safety-time-summary-table,
#safety-time-summary-page.mobile #total-no-accident-day-count,
#safety-time-summary-page.mobile #safety-time-summary-table {
  width: 100%;
}

#construction-schedule-search-page.mobile #create-fab {
  position: fixed;
  bottom: 1em;
  right: 1em;
  width: var(--fab-button-size);
  height: var(--fab-button-size);
}

#construction-schedule-create-page.mobile #construction-schedule-create-top {
  display: flex;
  flex-direction: column;
  margin-top: 0.5em;
}
#construction-schedule-create-page.mobile #no-select-construction-button {
  width: 100%;
}
#construction-schedule-create-page.mobile .red-button {
  position: unset;
}

#construction-master-page.mobile .import-button,
#employee-master-page.mobile .import-button,
#partner-company-master-page.mobile .import-button {
  width: 100%;
}

#construction-schedule-show-page.mobile #construction-schedule-table table td,
#construction-schedule-show-page.mobile #construction-master-table table td {
  white-space: pre-wrap;
}
#construction-schedule-show-page.mobile #construction-schedule-table .title {
  font-size: 110%;
}
#construction-schedule-show-page.mobile #construction-schedule-table .title div {
  flex-direction: column-reverse;
  gap: 5px;
}
#construction-schedule-show-page.mobile #map-container {
  margin-top: 1em;
}

#construction-schedule-show-page.mobile.change-history {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
#construction-schedule-show-page.mobile.change-history #change-history-table.mobile {
  height: 100%;
}
#construction-schedule-show-page.mobile.change-history #change-history-table.mobile tfoot td #pagination-container {
  justify-content: center;
}

#safety-time-master-page.mobile .create-accident-button {
  width: 100%;
}

#not-found-page,
#error-page {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#not-found-page h1,
#error-page h1 {
  font-size: 60px;
  margin: 0;
  color: var(--error-color);
}
#not-found-page h3,
#error-page h3 {
  font-size: x-large;
  margin: 0.5em 0 0;
}
#not-found-page p,
#error-page p {
  margin: 2em 0;
}

#top-page {
  height: calc(100% - 2em);
  display: grid;
  grid-template-rows: auto 1fr;
}
#top-page h1 {
  margin: 0 0 0.5em;
}
#top-page #header-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}
#top-page #header-table table {
  width: 100%;
}
#top-page #main-contents {
  margin-top: 1.5em;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 1em;
  overflow: hidden;
}
#top-page #main-contents table {
  width: 100%;
  border-left: var(--table-border-style);
}
#top-page #main-contents #left-contents {
  display: grid;
  gap: 1em;
  grid-template-rows: auto 1fr;
}
#top-page #main-contents #right-contents {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1em;
}
#top-page #main-contents #right-contents .weather-icon {
  font-size: xx-large;
  display: block;
  margin: 10px 0;
}
#top-page #main-contents #right-contents #weather-tables {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1em;
  min-height: 230px;
}
#top-page #main-contents #right-contents #weather-tables table {
  table-layout: fixed;
  height: 100%;
}
#top-page #main-contents #right-contents #weather-tables #week-weather table th,
#top-page #main-contents #right-contents #weather-tables #week-weather table td {
  font-size: 12.5px;
  padding: 6px 0;
  text-align: center;
}
#top-page #main-contents #right-contents #weather-tables #week-weather table th .weather-name,
#top-page #main-contents #right-contents #weather-tables #week-weather table td .weather-name {
  white-space: pre-wrap;
}
#top-page #main-contents #right-contents #weather-tables #week-weather table thead th {
  border-right: var(--table-border-style);
}
#top-page #main-contents #right-contents #weather-tables #week-weather table thead th:last-child {
  border-right: none;
}
#top-page #main-contents #right-contents #weather-tables .progress {
  top: 50%;
  transform: translateY(-50%);
}
#top-page #main-contents #right-contents #weather-tables.isLoading {
  grid-template-columns: 100%;
}
#top-page #main-contents #right-contents .labor-total-graph {
  height: 100%;
  overflow: hidden;
}
#top-page #header-table table th,
#top-page #main-contents #left-contents #info-table table th {
  background-color: var(--info-table-th-background);
}

#top-page.mobile {
  width: calc(100vw - 2em);
  display: flex;
  flex-direction: column;
}
#top-page.mobile h1 {
  font-size: x-large;
}
#top-page.mobile table {
  width: 100%;
}
#top-page.mobile table th,
#top-page.mobile table td {
  padding: 6px 10px;
}
#top-page.mobile #header-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#top-page.mobile #header-table #safety-point-table table th,
#top-page.mobile #header-table #safety-point-table table td {
  border-bottom: none;
}
#top-page.mobile #header-table table th {
  width: 90px;
}
#top-page.mobile #main-contents {
  display: block;
  margin-top: 1em;
  width: 100%;
}
#top-page.mobile #main-contents #left-contents {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#top-page.mobile #main-contents #left-contents .construction-team-list {
  width: 100%;
  overflow: auto;
  max-height: 500px;
}
#top-page.mobile #main-contents #right-contents {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
}
#top-page.mobile #main-contents #right-contents #weather-tables {
  display: flex;
  flex-direction: column;
  height: auto;
}
#top-page.mobile #main-contents #right-contents #weather-tables #week-weather table th,
#top-page.mobile #main-contents #right-contents #weather-tables #week-weather table td {
  width: 60px;
}
#top-page.mobile #main-contents #right-contents #weather-tables .progress {
  top: auto;
  transform: unset;
}

#logout-page #main {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}
#logout-page #main img {
  width: 200px;
  object-fit: contain;
}
#logout-page #main h3 {
  text-align: center;
  margin-bottom: 2em;
}

#settings-page .form-label {
  display: block;
  margin-top: 2em;
}
#settings-page .save-settings-btn {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  align-items: center;
  margin-top: 0.5em;
}
#settings-page .save-settings-btn span.message {
  font-size: 14px;
  color: #333;
}
#settings-page .checkbox-group {
  margin-left: 9px;
}

#settings-page.mobile .save-settings-btn {
  flex-direction: column;
  align-items: flex-start;
}
