@charset "UTF-8";
/**
 * 出勤表（/timetable）
 * Google Sheets 連携時：月タブ未公開はダミー非表示＋準備中表示
 * build: 2026-07-03
 */

/* 週移動リンク後、固定ヘッダに隠れないよう余白 */
#mah-schedule {
  scroll-margin-top: 5rem;
}

/* --- Base（iframe 内 body + box-sizing 相当）--- */

.tab5 .schedule-scroll,
.tab5 .schedule-scroll *,
.tab5 .schedule-scroll *::before,
.tab5 .schedule-scroll *::after {
  box-sizing: border-box;
}

.tab5 .schedule-scroll {
  margin: 0;
  padding-left: 15px;
  padding-right: 15px;
  font-family: "Nunito", sans-serif;
  font-size: small;
  font-weight: 400;
  line-height: 1.6;
  color: #212529;
  text-align: left;
  background-color: #f8fafc;
}

/* --- Grid --- */

/* app.css: container 共通 */
.tab5 .container-fluid,
.tab5 .container-xl,
.tab5 .container-lg,
.tab5 .container-md,
.tab5 .container-sm {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/*
 * タブ #tab5-b* の padding:10px との整合
 * margin -10px … 表ブロックをタブ枠まで広げる
 * padding 10px … 注意文と同じ位置に灰色エリアの端を戻す（本家の二重余白相当）
 */
.tab5 .schedule-wrap {
  box-sizing: border-box;
  margin-left: -10px;
  margin-right: -10px;
  padding: 10px;
}

.tab5 .schedule-wrap.is-updating {
  opacity: 0.72;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.tab5 .schedule-wrap--unavailable .schedule-scroll {
  background-color: #eceff1;
  color: #6c757d;
}

.tab5 .schedule-wrap--unavailable .heading,
.tab5 .schedule-wrap--unavailable .dtlMonthCol,
.tab5 .schedule-wrap--unavailable .move a {
  filter: grayscale(1);
  opacity: 0.72;
}

.tab5 .schedule-unavailable-row {
  margin-top: 0.5rem;
}

.tab5 .schedule-unavailable-notice {
  flex: 1 1 100%;
  max-width: 100%;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
}

.tab5 .schedule-unavailable-notice__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #495057;
}

.tab5 .schedule-unavailable-notice__detail {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757d;
}

.tab5 .schedule-staff-month.schedule-wrap--unavailable .schedule-unavailable-notice {
  padding-top: 1.5rem;
}

.tab5 .row {
  display: flex;
  flex-wrap: nowrap;
  margin-right: -15px;
  margin-left: -15px;
}

.tab5 .col-1,
.tab5 .col-2,
.tab5 .col-3,
.tab5 .col-4,
.tab5 .col-5,
.tab5 .col-6,
.tab5 .col-7,
.tab5 .col-8,
.tab5 .col-9,
.tab5 .col-10,
.tab5 .col-11,
.tab5 .col-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.tab5 .col-1 {
  -webkit-box-flex: 0;
  flex: 1 0 10.333333%;
  max-width: 11.333333%;
}

.tab5 .col-2 {
  -webkit-box-flex: 0;
  flex: 0 0 23.666667%;
  max-width: 23.666667%;
}

.tab5 .col-3 {
  -webkit-box-flex: 0;
  flex: 0 0 25%;
  max-width: 25%;
}

.tab5 .col-4 {
  -webkit-box-flex: 0;
  flex: 0 0 33.3333333333%;
  max-width: 33.3333333333%;
}

.tab5 .col-5 {
  -webkit-box-flex: 0;
  flex: 0 0 41.6666666667%;
  max-width: 41.6666666667%;
}

.tab5 .col-6 {
  -webkit-box-flex: 0;
  flex: 0 0 50%;
  max-width: 50%;
}

.tab5 .col-7 {
  -webkit-box-flex: 0;
  flex: 0 0 58.3333333333%;
  max-width: 58.3333333333%;
}

.tab5 .col-8 {
  -webkit-box-flex: 0;
  flex: 0 0 66.6666666667%;
  max-width: 66.6666666667%;
}

.tab5 .col-9 {
  -webkit-box-flex: 0;
  flex: 0 0 100%;
  max-width: 100%;
}

.tab5 .col-10 {
  -webkit-box-flex: 0;
  flex: 0 0 83.3333333333%;
  max-width: 83.3333333333%;
}

.tab5 .col-11 {
  -webkit-box-flex: 0;
  flex: 0 0 91.6666666667%;
  max-width: 91.6666666667%;
}

.tab5 .col-12 {
  -webkit-box-flex: 0;
  flex: 0 0 100%;
  max-width: 100%;
}

.tab5 .col-lg-1,
.tab5 .col-lg-5 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.tab5 .col-lg-1 {
  -webkit-box-flex: 0;
  flex: 0 0 8.3333333333%;
  max-width: 8.3333333333%;
}

.tab5 .col-lg-5 {
  -webkit-box-flex: 0;
  flex: 0 0 41.6666666667%;
  max-width: 41.6666666667%;
}

.tab5 .text-center {
  text-align: center;
}

.tab5 .text-right {
  text-align: right !important;
}

.tab5 .text-left {
  text-align: left !important;
}

.tab5 .container-fluid a {
  color: #696969;
  text-decoration: none;
  background-color: transparent;
}

/* style.css .scmn_outer a { border-bottom:#189F83 } などを打ち消す */
.tab5 .schedule-wrap a,
.tab5 .schedule-wrap .schedule-name-btn,
.tab5 .schedule-wrap .schedule-filter-reset {
  border-bottom: none;
  margin-right: 0;
}

/* --- dtl* 見出し・セル --- */

.tab5 .dtlMonthCol {
  font-size: 2.4em;
  color: #ff8d00;
  height: 65px;
  vertical-align: middle;
  text-align: right !important;
  padding: 8px 2px;
}

/* ヘッダー行（.heading 内）：高さ 40px が基本 */
.tab5 .heading .dtlTitleCol {
  font-size: inherit;
  background-color: #fdf4de;
  color: #696969;
  border: 1px solid #ded9cd;
  height: 40px;
  vertical-align: middle;
  text-align: center;
  padding: 8px 2px;
}

.tab5 .heading .dtlTodayCol {
  font-size: inherit;
  font-weight: bold;
  background-color: #ff8d00;
  color: white;
  border: 1px solid #c0c0c0;
  height: 40px;
  vertical-align: middle;
  text-align: center;
  padding: 8px 2px;
}

.tab5 .heading .dtlWeekCol {
  font-size: inherit;
  background-color: #fffefb;
  color: #696969;
  border: 1px solid #ded9cd;
  height: 40px;
  vertical-align: middle;
  text-align: center !important;
  padding: 8px 2px;
}

.tab5 .heading .dtlSaturdayCol {
  font-size: inherit;
  background-color: #eaefff;
  color: #0008ff;
  border: 1px solid #c0c0c0;
  height: 40px;
  vertical-align: middle;
  text-align: center;
  padding: 8px 2px;
}

.tab5 .heading .dtlSundayCol {
  font-size: inherit;
  background-color: #ffd3d3;
  color: #ff0000;
  border: 1px solid #c0c0c0;
  height: 40px;
  vertical-align: middle;
  text-align: center;
  padding: 8px 2px;
}

/* 週表データ行：高さ 40px（本家 dtlWeekCol） */
.tab5 .schedule-scroll .dtlWeekCol {
  font-size: inherit;
  font-weight: 400;
  background-color: #fffefb;
  color: #696969;
  border: 1px solid #ded9cd;
  height: 40px;
  vertical-align: middle;
  padding: 8px 2px;
}

.tab5 .move {
  background: #6c757d !important;
  color: #ffffff !important;
}

.tab5 .move a {
  color: #ffffff !important;
  text-decoration: none;
  border-bottom: none !important;
}

.tab5 .move a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  border-bottom: none !important;
  opacity: 1;
}

/* 氏名セル：40px */
.tab5 .schedule-scroll .dtlName {
  font-size: inherit;
  background-color: #fdf4de;
  color: #696969;
  border: 1px solid #ded9cd;
  height: 40px;
  vertical-align: middle;
  text-align: center;
  padding: 8px 2px;
}

.tab5 .row[data-staff-row] {
  flex-wrap: nowrap;
  align-items: stretch;
}

.tab5 .row[data-staff-row]>.dtlName {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab5 .dtlWeekCol,
.tab5 .dtlDay,
.tab5 .dtlSunday,
.tab5 .dtlSaturday {
  position: relative;
}

.tab5 .dtlWeekCol span:nth-of-type(2),
.tab5 .dtlDay span:nth-of-type(2),
.tab5 .dtlSunday span:nth-of-type(2),
.tab5 .dtlSaturday span:nth-of-type(2) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: inherit;
}

@media (max-width: 992px) {

  .tab5 .heading .dtlSundayCol,
  .tab5 .heading .dtlSaturdayCol,
  .tab5 .heading .dtlWeekCol,
  .tab5 .heading .dtlTodayCol,
  .tab5 .heading .dtlTitleCol,
  .tab5 .schedule-scroll .dtlName {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- スクロール・sticky・フィルタ --- */

.tab5 .main_notes p {
  margin-bottom: 8px;
}

.tab5 .schedule-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 750px;
  -webkit-overflow-scrolling: touch;
}

.tab5 .schedule-scroll--tenman {
  max-height: 700px;
}

/* テーマ style.css の .container-fluid .row:nth-child(2) sticky を打ち消す */
.tab5 .container-fluid>.row {
  position: static;
}

.tab5 .heading {
  position: sticky;
  top: 0;
  z-index: 30;
}

.tab5 .schedule-name-btn {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: none;
  background: transparent;
  color: #696969;
  text-decoration: none;
  margin-right: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* 本家 app.css リンク色 #3490dc / hover #1d68a7 */
.tab5 .schedule-name-btn:hover {
  color: #3490dc;
  text-decoration: underline;
  border-bottom: none;
  opacity: 1;
}

.tab5 .schedule-name-btn.is-active {
  font-weight: bold;
  color: #ff8d00;
}

.tab5 .schedule-name-btn.is-active:hover {
  color: #ff8d00;
  text-decoration: underline;
  opacity: 1;
}

/* --- 担当医：月間カレンダー（本家 pleon HTML 準拠）--- */
/* dtlDay / dtlSunday / dtlSaturday は担当医月間の col-lg-1 セルのみ */

.tab5 .schedule-staff-month .schedule-scroll {
  overflow-x: hidden;
  max-height: none;
}

/* 月ナビ・7列行：いずれも 7 等分グリッド（1/7 + 5/7 + 1/7 = 7/7）で幅を揃える */
.tab5 .schedule-staff-month .schedule-staff-cal-row>.col-lg-1,
.tab5 .schedule-staff-month .schedule-staff-month-nav-row>.col-lg-1 {
  -webkit-box-flex: 0;
  flex: 0 0 14.285714%;
  max-width: 14.285714%;
}

.tab5 .schedule-staff-month .schedule-staff-month-nav-row>.col-lg-5 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  -webkit-box-flex: 0;
  flex: 0 0 71.428571%;
  max-width: 71.428571%;
}

/* 担当医月間：dtlTitleCol（.heading 外でも効く） */
.tab5 .schedule-staff-month .dtlTitleCol {
  font-size: inherit;
  background-color: #fdf4de;
  color: #696969;
  border: 1px solid #ded9cd;
  height: 40px;
  vertical-align: middle;
  text-align: center;
  padding: 8px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 担当医見出し：.scmn_outer h4（緑・左線）を打ち消し、本家 pleon 相当に */
#mah-schedule .tab5 .schedule-staff-month h4,
#mah-schedule .tab5 .schedule-staff-month .h4 {
  position: static;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  /* margin-block-start: 1.33em; */
  /* margin-block-end: 1.33em; */
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-left: 0;
  color: inherit;
  font-size: 1.35rem;
  text-align: left;
  border-left: none;
  line-height: normal;
  z-index: auto;
  font-weight: bold;
  display: block;
  unicode-bidi: isolate;
}

.tab5 .schedule-staff-month .schedule-scroll .dtlDay {
  font-size: inherit;
  font-weight: bold;
  background-color: white;
  color: #696969;
  border: 1px solid #ded9cd;
  height: 100px;
  vertical-align: text-top;
  padding: 8px 2px;
}

.tab5 .schedule-staff-month .schedule-scroll .dtlSaturday {
  font-size: inherit;
  font-weight: bold;
  background-color: #eaefff;
  color: #0008ff;
  border: 1px solid #c0c0c0;
  height: 100px;
  vertical-align: text-top;
  padding: 8px 2px;
}

.tab5 .schedule-staff-month .schedule-scroll .dtlSunday {
  font-size: inherit;
  font-weight: bold;
  background-color: #ffd3d3;
  color: #ff0000;
  border: 1px solid #c0c0c0;
  height: 100px;
  vertical-align: text-top;
  padding: 8px 2px;
}

.tab5 .schedule-staff-month .schedule-scroll .dtlDay,
.tab5 .schedule-staff-month .schedule-scroll .dtlSaturday,
.tab5 .schedule-staff-month .schedule-scroll .dtlSunday {
  display: flex;
  flex-direction: column;
}

.tab5 .schedule-staff-month .schedule-cal-daynum,
.tab5 .schedule-staff-month .schedule-cal-value {
  position: static;
  top: auto;
  left: auto;
  transform: none;
}

.tab5 .schedule-staff-month .schedule-cal-daynum {
  flex: 0 0 auto;
  line-height: 1.2;
}

.tab5 .schedule-staff-month .schedule-cal-value {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.tab5 .schedule-staff-month .schedule-cal-today {
  box-shadow: inset 0 0 0 2px #ff8d00;
}

.tab5 .schedule-staff-month .btn.btn-outline-secondary {
  display: inline-block;
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
  padding: 0.375rem 0.75rem;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.6;
  color: #6c757d;
  background-color: transparent;
  border: 1px solid #6c757d;
  border-radius: 0.25rem;
  text-decoration: none;
}

.tab5 .schedule-staff-month .btn.btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  text-decoration: none;
}

@media (max-width: 992px) {
  .tab5 .schedule-scroll {
    max-height: 65vh;
  }
}

/* --- SP（750px以下）：1画面に収める（セル縮小） --- */

@media (max-width: 750px) {
  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-scroll {
    overflow-x: hidden;
    padding-left: 8px;
    padding-right: 8px;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-scroll .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-scroll .row {
    margin-left: 0;
    margin-right: 0;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .dtlMonthCol {
    font-size: 1.4em;
    height: auto;
    min-height: 44px;
    padding: 4px 2px;
  }

  /* 氏名 22% + 日付 7列 ≒ 11.14% */
  .tab5 .schedule-wrap:not(.schedule-staff-month) .col-2 {
    -webkit-box-flex: 0;
    flex: 0 0 22%;
    max-width: 22%;
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .col-1 {
    -webkit-box-flex: 0;
    flex: 0 0 11.14%;
    max-width: 11.14%;
    min-width: 0;
    padding-left: 1px;
    padding-right: 1px;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .heading .dtlTitleCol,
  .tab5 .schedule-wrap:not(.schedule-staff-month) .heading .dtlTodayCol,
  .tab5 .schedule-wrap:not(.schedule-staff-month) .heading .dtlWeekCol,
  .tab5 .schedule-wrap:not(.schedule-staff-month) .heading .dtlSaturdayCol,
  .tab5 .schedule-wrap:not(.schedule-staff-month) .heading .dtlSundayCol {
    height: 34px;
    padding: 2px 1px;
    font-size: 0.7rem;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-scroll .dtlName,
  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-scroll .dtlWeekCol {
    height: 34px;
    padding: 2px 1px;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-scroll .dtlName {
    word-break: break-all;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .schedule-name-btn {
    font-size: inherit;
    line-height: 1.2;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .move a {
    font-size: 0.65rem;
    line-height: 1.15;
  }

  .tab5 .schedule-wrap:not(.schedule-staff-month) .dtlWeekCol span:nth-of-type(2) {
    font-size: 0.7rem;
  }

  /* 担当医月間 */
  #mah-schedule .tab5 .schedule-staff-month h4,
  #mah-schedule .tab5 .schedule-staff-month .h4 {
    font-size: 1.1rem;
  }

  .tab5 .schedule-staff-month .schedule-scroll .dtlDay,
  .tab5 .schedule-staff-month .schedule-scroll .dtlSaturday,
  .tab5 .schedule-staff-month .schedule-scroll .dtlSunday {
    height: 72px;
    padding: 4px 2px;
    font-size: 0.85rem;
  }

  .tab5 .schedule-staff-month .schedule-staff-cal-row>.col-lg-1,
  .tab5 .schedule-staff-month .schedule-staff-month-nav-row>.col-lg-1 {
    padding-left: 2px;
    padding-right: 2px;
  }

  .tab5 .schedule-staff-month .dtlTitleCol {
    padding: 4px 2px;
    font-size: 0.85rem;
  }

  .tab5 .schedule-staff-month .btn.btn-outline-secondary {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
  }
}