/* ==========================================================================
   カレンダー（共通部品）
   運営の「カレンダー設定」（templates/admin/page-admin-closures.php）で作ったものを、
   2026-09-21 に共通CSSへ出した。清掃業者のダッシュボードも同じ部品を使う（小田さん指示）。
   ハイシーズン／宿泊不可／予約済みの色分けは、使う側のページに置いたまま。
   ========================================================================== */
.cs-card { background: #fff; border: 1px solid #1d1d1b; margin-bottom: 20px; }
.cs-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid #1d1d1b; }
.cs-head .t { font-size: 19px; font-weight: 700; margin-right: auto; }
.cs-sel { padding: 9px 36px 9px 14px; border: 1px solid #d8d4ca; background: #f4f2ed url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%231d1d1b%27 stroke-width=%271.6%27/%3E%3C/svg%3E") no-repeat right 12px center; font-size: 16px; color: #1d1d1b; min-height: 44px; -webkit-appearance: none; appearance: none; font-family: inherit; }
.cs-sel:hover { border-color: #1d1d1b; }
.cs-sel:disabled { opacity: .35; }
.cs-pnav { display: flex; align-items: center; gap: 0; border: 1px solid #d8d4ca; background: #f4f2ed; }
.cs-pnav a, .cs-pnav span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; font-size: 16px; color: #1d1d1b; text-decoration: none; }
.cs-pnav a { min-width: 110px; }
.cs-pnav a:hover { background: #e6e2d9; }
.cs-pnav a:first-child { border-right: 1px solid #d8d4ca; } .cs-pnav a:last-child { border-left: 1px solid #d8d4ca; }
.cs-pnav span { font-size: 18px; font-weight: 600; min-width: 240px; }
.cs-pnav.off a { opacity: .35; pointer-events: none; }
/* 前後の期のボタン（2026-09-17）：押しやすく大きく。行き先の期の名前を書く */
.cs-pnav { border: 0; background: none; gap: 8px; }
/* 2026-09-30 小田さん指示：黒い四角はボタンに見えない。白地・薄い枠・角丸に（ChatGPT の案 S49 に合わせる） */
.cs-pnav .cs-pbtn { min-height: 42px; padding: 0 16px; font-size: 15px; font-weight: 600; border: 1px solid #d8d4ca; background: #fff; color: #1d1d1b; min-width: 0; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cs-pnav a.cs-pbtn:hover { border-color: #1d1d1b; background: #faf9f6; }
.cs-pnav .cs-pbtn.off { border-color: #e7e4dd; color: #b5b2aa; background: #f4f2ed; font-weight: 500; cursor: default; box-shadow: none; }
.cs-pnav .cs-pcur { font-size: 19px; font-weight: 700; min-width: 0; padding: 0 12px; }
.cs-pnav a:first-child, .cs-pnav a:last-child { border-right: 1px solid #d8d4ca; border-left: 1px solid #d8d4ca; }
.cs-limit { font-size: 15px; color: #524f4a; }
.cs-limit b { color: #1d1d1b; }
.cs-mode { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.cs-mode .sw { width: 14px; height: 14px; display: inline-block; }
.cs-ro { font-size: 15px; color: #524f4a; padding: 9px 0; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid #d8d4ca; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; color: #1d1d1b; line-height: 1.4; min-height: 42px; font-family: inherit; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cs-btn:hover { border-color: #1d1d1b; background: #faf9f6; }
.cs-btn.pri { background: #1d1d1b; color: #fff; border-color: #1d1d1b; }
.cs-btn.pri:hover { background: #2d2d2a; }
.cs-btn.on { background: #1d1d1b; color: #fff; border-color: #1d1d1b; box-shadow: 0 0 0 3px #e8d9a8; }
.cs-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.cs-btn .sw { width: 14px; height: 14px; display: inline-block; }
/* 凡例・グリッド */
.cs-legend { display: flex; gap: 22px; flex-wrap: wrap; padding: 14px 18px 0; font-size: 14px; color: #555; }
.cs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cs-legend i { width: 22px; height: 18px; border: 1px solid #e2ded6; display: inline-block; background: #faf9f6; }
.cs-legend i.hs { background: #b53127; border-color: #b53127; } .cs-legend i.stop { background: #5a5a5a; border-color: #5a5a5a; }
.cs-legend i.stophs { background: linear-gradient(135deg, #b53127 50%, #5a5a5a 50%); border-color: #5a5a5a; }
.cs-legend i.bk { background: #111; border-color: #111; } .cs-legend i.bkhs { background: linear-gradient(135deg, #b53127 50%, #111 50%); border-color: #111; }
.cs-legend i.frame { border: 2px solid #b53127; }
.cs-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; padding: 16px 18px 20px; }
@media (max-width: 1100px) { .cs-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1700px) { .cs-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-mh { font-size: 17px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.cs-mc { font-size: 13px; color: #6b6a66; font-weight: 400; }
.cs-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cs-dow { text-align: center; font-size: 12px; font-weight: 700; color: #555; padding: 2px 0 4px; }
.cs-dow.sat { color: #2d5a8e; } .cs-dow.sun { color: #b53127; }
.cs-day { min-width: 0; height: 48px; overflow: hidden; background: #faf9f6; border: 1px solid #e2ded6; padding: 3px 6px; font-size: 14px; user-select: none; cursor: default; position: relative; box-sizing: border-box; }
.cs-day.blank { background: transparent; border: none; }
.cs-day .n { font-weight: 600; display: block; line-height: 1.3; }
.cs-day.sun .n { color: #b53127; }
.cs-day .sub { display: block; font-size: 10px; line-height: 1.3; color: #777; }
.cs-day .hname { display: block; font-size: 10px; line-height: 1.3; color: #6b6a66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-day.frame { border: 2px solid #b53127; padding: 2px 5px; }
.cs-day.hs { background: #b53127; border-color: #b53127; } .cs-day.hs .n, .cs-day.hs .sub, .cs-day.hs .hname { color: #fff; }
.cs-day.hs.frame { border-color: #6f1a13; box-shadow: inset 0 0 0 2px #fff; }
.cs-day.stop { background: #5a5a5a; border-color: #5a5a5a; } .cs-day.stop .n, .cs-day.stop .sub, .cs-day.stop .hname { color: #fff; }
.cs-day.hs.stop { background: linear-gradient(135deg, #b53127 50%, #5a5a5a 50%); }
.cs-day.stop.frame { border-color: #b53127; box-shadow: inset 0 0 0 2px #fff; }
.cs-day.bk { background: #111; border-color: #111; cursor: not-allowed; } .cs-day.bk .n, .cs-day.bk .sub, .cs-day.bk .hname { color: #fff; }
.cs-day.hs.bk { background: linear-gradient(135deg, #b53127 50%, #111 50%); }
.cs-day.bk.frame { border-color: #b53127; box-shadow: inset 0 0 0 2px #fff; }
.cs-day.past { opacity: .45; }
.cs-editing .cs-day.click { cursor: pointer; } .cs-editing .cs-day.click:hover { border-color: #1d1d1b; }
.cs-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 2px solid #e7e4dd; }
/* カード内の表のボタン（確認／開く）も角丸に（2026-09-30） */
.cs-card .btn { border-radius: 8px; }
.cs-card .btn-secondary { border-color: #d8d4ca; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cs-tab { padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 16px; font-weight: 600; color: #6b6a66; cursor: pointer; font-family: inherit; margin-bottom: -2px; }
.cs-tab:hover { color: #1d1d1b; border-bottom-color: #d8d4ca; }
.cs-tab.on { color: #2d5a8e; border-bottom-color: #2d5a8e; }
.cs-tabpane.hidden { display: none; }
.hidden { display: none !important; }

/* --- 1ヶ月だけ大きく出すとき（清掃業者のダッシュボード。2026-09-21） --- */
.cs-wrap.one { grid-template-columns: minmax(0, 1fr); padding: 16px 18px 20px; }
@media (min-width: 1700px) { .cs-wrap.one { grid-template-columns: minmax(0, 1fr); } }
.cs-day.big { height: auto; min-height: 54px; overflow: visible; padding: 3px 5px; }   /* 1物件1日1件なので帯1本ぶん（2026-09-30 小田さん指示。以前は104px） */
.cs-day.today { background: #fbf9f2; border-color: #c8a046; }
.cs-day .off-mark { display: block; font-size: 11px; line-height: 1.4; font-weight: 600; }
.cs-job {
  display: block; margin-top: 3px; padding: 2px 6px;
  border: 1px solid #e2ded6; background: #faf9f6; color: #1d1d1b;
  font-size: 12px; line-height: 1.4; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-job:hover { border-color: #1d1d1b; }
.cs-job .tm { font-weight: 600; margin-right: 4px; }
.cs-job.st-pending { background: #faf3e2; border-color: #c8a046; }
.cs-job.st-accepted, .cs-job.st-in_progress { background: #eef2f7; border-color: #2d5a8e; }
.cs-job.st-completed { background: #edf4ee; border-color: #43a047; }
.cs-job.st-skipped { background: #f1f0ed; border-color: #b5b2aa; color: #6b6a66; }
.cs-editing .cs-job { pointer-events: none; }

/* --- 「次の清掃」を横に並べて滑らせる（清掃業者のダッシュボード。2026-09-21） --- */
.cs-slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 18px; scrollbar-width: thin; }
.cs-slider::-webkit-scrollbar { height: 6px; }
.cs-slider::-webkit-scrollbar-thumb { background: #d8d4ca; }
.cs-slide {
  flex: 0 0 calc((100% - 28px) / 3); min-width: 220px; scroll-snap-align: start;
  border: 1px solid #e2ded6; background: #faf9f6; padding: 14px 16px; color: #1d1d1b; text-decoration: none;
}
@media (max-width: 900px) { .cs-slide { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 640px) { .cs-slide { flex-basis: 100%; } }
/* 次の清掃を小さく6件横1列（2026-09-30 小田さん指示。カレンダーの下に置く） */
.cs-slider-compact { gap: 10px; padding: 12px 18px 14px; }
.cs-slider-compact .cs-slide { flex: 0 0 calc((100% - 50px) / 6); min-width: 168px; padding: 10px 12px; border-left: 4px solid #c8a046; }
.cs-slider-compact .cs-slide.soon { background: #fdfaf1; }
.cs-slider-compact .cs-slide .d { font-size: 17px; }
.cs-slider-compact .cs-slide .d .w { font-size: 13px; margin-left: 2px; }
.cs-slider-compact .cs-slide .t2 { font-size: 13px; margin-top: 0; }
.cs-slider-compact .cs-slide .pl { font-size: 13.5px; margin-top: 4px; }
.cs-slider-compact .cs-slide .un { font-size: 12.5px; }
.cs-slider-compact .cs-slide .tags { margin-top: 5px; gap: 4px; }
.cs-slider-compact .cs-slide .tg { font-size: 11.5px; padding: 1px 6px; }
@media (max-width: 1200px) { .cs-slider-compact .cs-slide { flex-basis: calc((100% - 30px) / 4); } }
@media (max-width: 900px) { .cs-slider-compact .cs-slide { flex-basis: calc((100% - 10px) / 2); } }
/* 対応不可日の設定（専用の見た目） */
.cs-back { display: inline-block; font-size: 14px; color: #2d5a8e; text-decoration: none; margin-bottom: 6px; }
.cs-back:hover { text-decoration: underline; }
.cs-legend i.job { background: #eef2f7; border-color: #2d5a8e; }
/* 凡例：状態の流れを矢印で繋ぐ（2026-09-30） */
.cs-legend .cs-flow { display: inline-flex; align-items: center; gap: 0; }
.cs-legend .cs-flow > span + span::before { content: "→"; color: #999; margin: 0 10px; font-size: 15px; }
.cs-legend .cs-legend-sep { width: 1px; height: 18px; background: #d8d4ca; display: inline-block; margin: 0 4px; }
.cs-legend small { font-size: 12px; color: #888; margin-left: 2px; }
.cs-slide:hover { border-color: #1d1d1b; background: #fff; }
.cs-slide.soon { border-color: #c8a046; background: #fdfaf1; }
.cs-slide .d { font-size: 24px; font-weight: 600; line-height: 1.2; }
.cs-slide .d .w { font-size: 15px; font-weight: 400; color: #6b6a66; margin-left: 4px; }
.cs-slide .t2 { font-size: 15px; color: #524f4a; margin-top: 2px; }
.cs-slide .pl { font-size: 16px; font-weight: 600; margin-top: 8px; line-height: 1.4; }
.cs-slide .un { font-size: 14px; color: #6b6a66; }
.cs-slide .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.cs-slide .tg { font-size: 13px; padding: 2px 8px; border: 1px solid #e2ded6; background: #fff; color: #524f4a; }
.cs-slide .tg.st-pending { border-color: #c8a046; background: #faf3e2; color: #8a6a12; }
.cs-slide .tg.st-accepted, .cs-slide .tg.st-in_progress { border-color: #2d5a8e; background: #eef2f7; color: #2d5a8e; }
.cs-body { padding: 14px 18px 18px; }
.cs-body table { width: 100%; }
.cs-empty { padding: 18px; color: #6b6a66; font-size: 15px; }

/* ==========================================================================
   清掃1件の画面（templates/cleaning/page-cleaning-job-detail.php）2026-09-30
   ① 受け取り → ② 部屋ごとの清掃 → ③ 最後の在庫確認 → ④ 報告。スマホ幅でも1列で読める
   ========================================================================== */
.cj-flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; font-size: 14px; }
.cj-flash.ok { background: #edf4ee; border: 1px solid #43a047; color: #1f5e2a; }
.cj-flash.err { background: #fdecea; border: 1px solid #b3261e; color: #7a1c16; }
.cj-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; margin: 0 0 10px; }
.cj-info { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; margin-bottom: 8px; }
.cj-info .k { color: #6b6a66; margin-right: 6px; font-size: 12.5px; }
.cj-note { background: #eef2f7; border-left: 4px solid #2d5a8e; color: #1c3d6b; padding: 8px 12px; font-size: 13.5px; margin: 6px 0 10px; border-radius: 4px; }
.cj-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 8px; font-size: 13px; color: #6b6a66; }
.cj-step { display: inline-flex; align-items: center; gap: 6px; }
.cj-step i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #d8d4ca; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; background: #fff; }
.cj-step.done { color: #1d1d1b; } .cj-step.done i { background: #2d5a8e; border-color: #2d5a8e; color: #fff; }
.cj-step.now { color: #2d5a8e; font-weight: 700; } .cj-step.now i { border-color: #2d5a8e; color: #2d5a8e; border-width: 2px; }
.cj-arrow { width: 22px; height: 2px; background: #d8d4ca; display: inline-block; }
.cj-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 6px; }
.cj-actions form { display: inline; }
.cj-actions .btn { border-radius: 8px; }
.cj-complete { background: #2d5a8e !important; border-color: #2d5a8e !important; }
.cj-complete:disabled { opacity: .5; cursor: not-allowed; }
.cj-done-note { font-size: 13.5px; color: #6b6a66; }
.cj-autosave { background: #eef2f7; color: #1c3d6b; font-size: 12.5px; padding: 7px 12px; border-radius: 6px; margin: 4px 0 14px; }
.cj-card .cs-head { gap: 6px 14px; }
.cj-card .cs-head .t { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; margin-right: 0; }
.cj-no { width: 24px; height: 24px; border-radius: 50%; background: #1d1d1b; color: #fff; font-style: normal; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cj-sub { font-size: 12.5px; color: #6b6a66; flex: 1 1 100%; line-height: 1.5; }
.cj-rows { padding: 6px 18px 14px; }
.cj-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 14px; align-items: center; padding: 8px 0; border-bottom: 1px dotted #e2ded6; font-size: 14px; }
.cj-row:last-child { border-bottom: none; }
.cj-row.done { color: #6b6a66; }
.cj-row .m b { display: block; color: #1d1d1b; }
.cj-row .m small { display: block; font-size: 12px; color: #6b6a66; }
.cj-row .q { white-space: nowrap; font-size: 13.5px; color: #524f4a; }
.cj-row .q b { font-size: 16px; color: #1d1d1b; }
.cj-row .a { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.cj-row .a form { display: inline-flex; gap: 6px; align-items: center; }
.cj-inline { display: flex; gap: 6px; align-items: center; }
.cj-num { width: 96px; padding: 6px 8px; border: 1px solid #d8d4ca; border-radius: 6px; font-size: 14px; }
.cj-text { flex: 1 1 240px; padding: 6px 10px; border: 1px solid #d8d4ca; border-radius: 6px; font-size: 14px; min-width: 0; }
.cj-kind { padding: 6px 8px; border: 1px solid #d8d4ca; border-radius: 6px; font-size: 14px; background: #fff; }
.cj-ghost { font-size: 12.5px; color: #8a8782; }
.cj-foot { font-size: 12.5px; color: #6b6a66; padding: 0 18px 14px; margin: 0; }
.cj-card .btn-sm { border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.cj-room { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #e2ded6; }
.cj-room:last-child { border-bottom: none; }
.cj-room.done { background: #fafbf8; }
.cj-room-photo { width: 180px; height: 120px; border: 1px solid #e2ded6; background: #f4f2ed; overflow: hidden; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #8a8782; font-size: 12px; }
.cj-room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cj-room-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cj-room-head b { font-size: 16px; }
.cj-memo { font-size: 12.5px; color: #1c3d6b; background: #eef2f7; padding: 5px 10px; border-radius: 4px; margin-bottom: 6px; }
.cj-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dotted #e2ded6; margin: 0; }
.cj-check:last-of-type { border-bottom: none; }
.cj-check.on .cj-check-text { color: #6b6a66; text-decoration: line-through; }
.cj-box { width: 28px; height: 28px; border: 1.5px solid #b5b2aa; border-radius: 6px; background: #fff; cursor: pointer; font-size: 15px; color: #fff; flex: none; padding: 0; }
.cj-check.on .cj-box { background: #2d5a8e; border-color: #2d5a8e; }
.cj-box:disabled { cursor: default; opacity: .6; }
.cj-check-text { font-size: 14.5px; flex: 1; }
.cj-pl { margin-top: 8px; border: 1px solid #e2ded6; background: #fbfaf6; border-radius: 6px; }
.cj-pl-head { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-bottom: 1px solid #e2ded6; color: #524f4a; }
.cj-pl .cj-row { padding: 6px 12px; }
.cj-report { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 18px 16px; }
.cj-pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; padding: 12px 18px; margin: 0; }
@media (max-width: 720px) {
  .cj-row { grid-template-columns: 1fr; gap: 4px; }
  .cj-row .a { justify-content: flex-start; }
  .cj-room { grid-template-columns: 1fr; }
  .cj-room-photo { width: 100%; height: 160px; }
  .cj-arrow { width: 10px; }
}
