/* =========================================================
   シフト管理（テスト）タブ（pages/shift-test.js）の見た目
   デザイン案「シフトを組む（塗る）」「シフト表（店舗ごと）で確かめる」に合わせる。
   列の幅（1600px の画面で）：氏名 160／役割 100／フェーズ 150／日付 残りを7等分（約160）
   ========================================================= */
.st { --st-ink: #1C2B24; --st-green: #14402A; --st-sub: #5E6B64; --st-mute: #46574E;
  --st-line: #DDD8CB; --st-line2: #B9B2A2; --st-paper: #F5F3EC; --st-soft: #F2F0E9;
  --st-yel: #F0B429; --st-yel-line: #C98F10; --st-yel-ink: #3D2B00;
  color: var(--st-ink); display: flex; flex-direction: column; gap: 14px; }
.st button { font-family: inherit; }
/* 広い画面では、ほかのカードと左をそろえたまま右の余白へ広げる（日付の列を約160pxにするため。催事日報の明細と同じ決まり） */
@media (min-width: 1100px) {
  .st { box-sizing: border-box; min-width: 100%; width: calc(100% + (100vw - 100%) / 2 - 32px); max-width: 1600px; }
}

/* 上の帯：週・画面の切り替え */
.st-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.st-week { font-size: 22px; font-weight: 700; white-space: nowrap; }
/* 週を選んで移動（2026-11-26）。ボタンと同じ丸い形・高さ */
.st-weekjump { min-height: 38px; padding: 6px 12px; background: #fff; border: 1px solid var(--st-line2); border-radius: 18px; font: inherit; font-size: 15px; color: var(--st-mute); cursor: pointer; }
.st-weekjump:hover { border-color: var(--st-green); }
.st-pill { padding: 7px 16px; min-height: 38px; background: #fff; border: 1px solid var(--st-line2);
  border-radius: 18px; font-size: 15px; color: var(--st-mute); cursor: pointer; white-space: nowrap; }
.st-pill:hover { border-color: var(--st-green); }
.st-pill:disabled { opacity: .45; cursor: default; }
.st-pill--main { background: var(--st-green); border-color: var(--st-green); color: #fff; font-weight: 500; padding: 7px 22px; }
.st-sp { flex: 1 1 auto; }
.st-views { display: inline-flex; border: 1px solid var(--st-line2); border-radius: 10px; overflow: hidden; }
.st-views button { padding: 9px 16px; min-height: 40px; background: #fff; border: 0; font-size: 15px; color: var(--st-mute); cursor: pointer; white-space: nowrap; }
.st-views button + button { border-left: 1px solid var(--st-line2); }
.st-views button.is-on { background: var(--st-green); color: #fff; font-weight: 700; }
.st-saved { font-size: 13px; color: var(--st-sub); white-space: nowrap; }
.st-saved--dirty { color: #8A5A00; font-weight: 700; }
.st-msg { font-size: 14px; color: var(--st-sub); }
.st-msg--bad { color: #A63B22; font-weight: 700; }
/* 未連携シフト：未連携が無い・確かめ中は1行に収める（2026-10-23 ご指示）。週があるときは表を下に出す */
.st-msg--one [data-sync-status] { display: inline; margin-left: 6px; }

/* 塗るもの */
.st-brushes { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #fff;
  border: 2px solid var(--st-green); border-radius: 10px; }
.st-brushes__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.st-brushes__head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--st-green); }
.st-brushes__lead { font-size: 14px; color: var(--st-sub); }
.st-held { padding: 4px 14px; border-radius: 14px; font-size: 15px; font-weight: 700; white-space: nowrap; border: 2px solid var(--st-line2); }
.st-tier { font-size: 13px; font-weight: 500; color: var(--st-mute); }
.st-grid6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.st-brush { display: flex; align-items: center; gap: 9px; padding: 8px 12px; min-height: 40px; background: #fff;
  border: 1px solid var(--st-line); border-radius: 8px; font-size: 15px; color: var(--st-mute); cursor: pointer;
  text-align: left; white-space: normal; overflow: hidden; }
.st-brush:hover { border-color: var(--st-line2); }
.st-brush.is-on { border-width: 2px; padding: 7px 11px; font-weight: 700; }
.st-brush__dot { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; border: 1px solid transparent; box-sizing: border-box; }
/* 店舗名は「…」で切らずに折り返して全部出す（2026-10-09 ご指示） */
.st-brush__name { overflow-wrap: anywhere; line-height: 1.3; }
/* 店舗の札の右：入店可能人数（2026-10-09。持ちかえのキーは札に出さない） */
.st-brush__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.st-brush__cap { font-size: 11px; font-weight: 400; color: #6B655A; white-space: nowrap; }
.st-brush__cap--none { color: #B8B2A6; }
.st-brush.is-on .st-brush__cap { color: inherit; }
.st-help { font-size: 13px; line-height: 1.8; color: var(--st-sub); }

/* 札（CL／キャッチ） */
.st-chip { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  border: 1px solid transparent; line-height: 1.5; }
.st-chip--cl { background: var(--st-green); border-color: var(--st-green); color: #fff; }
.st-chip--diff { background: var(--st-yel); border-color: var(--st-yel-line); color: var(--st-yel-ink); }
.st-chip--plain { background: #fff; border-color: var(--st-line2); color: var(--st-mute); }
.st-chip--back { background: var(--st-soft); border-color: #C9C2B2; color: var(--st-mute); }
.st-role { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid var(--st-line2); background: #fff; color: var(--st-mute); }
.st-role--closer { background: var(--st-green); border-color: var(--st-green); color: #fff; }
.st-cand { display: inline-block; margin-left: 5px; padding: 1px 7px; background: #FDF6E9; border: 1px solid #E3D3A8; border-radius: 9px;
  font-size: 11px; font-weight: 500; color: #8A5A00; white-space: nowrap; }
.st-none { color: #C9C2B2; }

/* 表（共通） */
.st-card { border: 2px solid var(--st-green); border-radius: 10px; overflow: hidden; background: #fff; }
.st-card--gray { border-color: var(--st-line2); }
.st-scroll { overflow-x: auto; }
.st-table { width: 100%; min-width: 1380px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.st-table th, .st-table td { border: 1px solid var(--st-line); }
.st-table thead th { padding: 6px 4px; background: var(--st-green); border-color: var(--st-green); color: #fff; font-size: 13px; font-weight: 500; text-align: center; white-space: nowrap; }
.st-table thead th.st-l { text-align: left; padding: 8px 10px; }
/* 氏名・役割・フェーズは細く、日の列（マス）を広く（2026-11-11 ご指示「マスがぎゅうぎゅう・氏名やフェーズは幅を狭めていい」）。前は 160／100／150 */
.st-table .st-c-name { width: 112px; }
.st-table .st-c-role { width: 104px; }
.st-table .st-c-phase { width: 94px; }
.st-d1 { font-size: 14px; }
.st-d2 { font-size: 12px; }
.st-sat { color: #BBD8F5; }
.st-sun { color: #F5C6BB; }
.st-table td.st-name { padding: 7px 12px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-table td.st-name--cl { font-weight: 700; }
.st-table td.st-meta { padding: 7px 8px; white-space: nowrap; overflow: hidden; font-size: 13px; }
/* フェーズの列：「フェーズ2」が切れないように。CL候補の札は次の行に回す */
.st-table td.st-meta--phase { white-space: normal; padding: 7px 6px; line-height: 1.6; }
.st-table tbody tr:nth-child(even) td.st-name, .st-table tbody tr:nth-child(even) td.st-meta { background: #FBFAF7; }

/* 塗るマス */
.st-cell { padding: 0; background: #fff; }
.st-cell__in { display: flex; align-items: center; justify-content: center; gap: 5px; height: 38px; box-sizing: border-box;
  border-left: 4px solid #EDEAE1; white-space: nowrap; overflow: hidden; padding: 0 4px; font-size: 14px; color: #C9C2B2; }
.st-cell__txt { overflow: hidden; text-overflow: ellipsis; }
.st-paint .st-cell { cursor: crosshair; user-select: none; -webkit-user-select: none; }
.st-paint .st-cell:hover .st-cell__in { outline: 2px solid rgba(20, 64, 42, .35); outline-offset: -2px; }
.st-cell--store .st-cell__in { font-size: 15px; font-weight: 500; }
.st-cell--off { background: var(--st-soft); }
.st-cell--off .st-cell__in { color: #8A948E; border-left-color: #C9C2B2; }
.st-cell--training { background: #F0ECF7; }
.st-cell--training .st-cell__in { color: #5B4A7A; border-left-color: #8A7AA8; }
.st-cell--absent { background: #FBE9E9; }
.st-cell--absent .st-cell__in { color: #8A4A4A; border-left-color: #C25B5B; font-weight: 700; }
.st-cell--gone { background: repeating-linear-gradient(45deg, #F7F6F1, #F7F6F1 6px, #EFEDE6 6px, #EFEDE6 12px); cursor: not-allowed !important; }

/* その日の人数 */
.st-counthead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 9px 16px; background: var(--st-soft); border-bottom: 1px solid var(--st-line); }
.st-counthead b { font-size: 16px; color: var(--st-green); }
.st-counthead span { font-size: 13px; color: var(--st-sub); }
.st-count thead th { background: #F7F6F1; border-color: var(--st-line); color: var(--st-mute); }
.st-count thead th .st-sat { color: #2B6CB0; }
.st-count thead th .st-sun { color: #A63B22; }
.st-count td { padding: 6px 4px; text-align: center; white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.st-count td.st-l { text-align: left; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; }
.st-count .st-c-store { width: 410px; }
.st-n { font-weight: 500; }
.st-n--zero { color: #C9C2B2; font-weight: 400; }
.st-ncl { margin-left: 5px; font-size: 12px; color: var(--st-sub); }
.st-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* シフト表（店舗ごと）で確かめる */
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.st-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--st-mute); white-space: nowrap; }
.st-legend i { width: 22px; height: 16px; border: 1px solid; border-radius: 3px; display: inline-block; }
.st-bal { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #fff; border: 2px solid var(--st-green); border-radius: 10px; }
.st-bal__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.st-bal__head h3 { margin: 0 6px 0 0; font-size: 18px; font-weight: 700; color: var(--st-green); }
.st-sort { padding: 5px 12px; min-height: 32px; background: #fff; border: 1px solid var(--st-line2); border-radius: 14px; font-size: 13px; color: var(--st-mute); cursor: pointer; white-space: nowrap; }
.st-sort.is-on { background: var(--st-green); border-color: var(--st-green); color: #fff; }
.st-baltable { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.st-baltable th { padding: 8px 10px; background: var(--st-green); color: #fff; font-weight: 500; text-align: right; white-space: nowrap; border: 1px solid var(--st-green); }
.st-baltable th.st-l { text-align: left; }
.st-baltable td { padding: 8px 10px; border: 1px solid var(--st-line); text-align: right; font-variant-numeric: tabular-nums; }
.st-baltable td.st-l { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-baltable td.st-total { font-weight: 700; }
.st-baltable tr.st-rest td { background: #F7F6F1; }
.st-z { color: #C9C2B2; }

.st-shop { border: 2px solid; border-radius: 10px; overflow: hidden; background: #fff; }
.st-shop__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 11px 16px; color: #fff; }
.st-shop__name { font-size: 20px; font-weight: 700; white-space: nowrap; }
.st-shop__start { padding: 3px 12px; background: rgba(255, 255, 255, .22); border-radius: 12px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.st-shop__start--warn { background: #fff; color: #C53030; font-weight: 700; border: 2px solid #C53030; }
.st-shop__addr, .st-shop__mix { font-size: 14px; color: rgba(255, 255, 255, .92); }
.st-shop__addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st-shop__count { font-size: 15px; font-weight: 700; white-space: nowrap; }
.st-shop .st-table thead th { color: var(--st-mute); }
.st-shop .st-table thead th .st-sat { color: #2B6CB0; }
.st-shop .st-table thead th .st-sun { color: #A63B22; }
.st-shop .st-table td { padding: 9px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-shop .st-table td.st-name, .st-shop .st-table td.st-meta { text-align: left; }
.st-v--cl { font-weight: 700; }
.st-v--catch { color: var(--st-mute); }
.st-v--diff { background: #FDF2D9; color: #6B4A00; font-weight: 700; }
.st-v--away { background: #FAF9F5; color: #A8A192; font-size: 13px; }
.st-v--off { background: var(--st-soft); color: #8A948E; font-size: 14px; }
.st-v--training { background: #F0ECF7; color: #5B4A7A; font-size: 14px; }
.st-v--absent { background: #FBE9E9; color: #8A4A4A; font-size: 14px; font-weight: 700; }
.st-v--none { color: #C9C2B2; }
.st-empty { padding: 16px 12px !important; color: #8A948E; text-align: left !important; }
.st-loading { padding: 24px; color: var(--st-sub); }

/* ===== 仮シフト／公開（2026-10-08 ご指示：どちらを直しているかが、ひと目で分かるように。枠の色も変える：仮＝オレンジ／公開＝緑） ===== */
.st--draft, .st--pub { padding: 12px; border: 3px solid; border-radius: 14px; }
.st--draft { border-color: #E08A2E; background: #FFFBF5; }
.st--pub { border-color: #2E8B57; background: #F6FBF7; }
.st-layer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 10px; }
.st-layer--draft { background: #FDEBD6; color: #7A4510; }
.st-layer--pub { background: #DDF0E3; color: #1E5A38; }
.st-layer__name { font-size: 16px; }
.st-layer__note { font-size: 13px; }
.st-layerseg { display: inline-flex; border: 2px solid currentColor; border-radius: 10px; overflow: hidden; }
.st-layerseg button { padding: 8px 18px; min-height: 40px; background: #fff; border: 0; font-size: 15px; font-weight: 700; color: inherit; cursor: pointer; }
.st-layerseg button + button { border-left: 2px solid currentColor; }
.st-layer--draft .st-layerseg button.is-on { background: #E08A2E; color: #fff; }
.st-layer--pub .st-layerseg button.is-on { background: #2E8B57; color: #fff; }
.st-diffn { font-size: 14px; }
.st-diffn b { font-size: 16px; }
.st-pill--sm { padding: 4px 12px; min-height: 32px; font-size: 13px; }
.st-pill--pub { background: #2E8B57; border-color: #2E8B57; color: #fff; font-weight: 700; }
.st-diffpanel { max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--st-line); border-radius: 8px; }
.st-difftable { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-difftable th, .st-difftable td { padding: 5px 10px; border-bottom: 1px solid var(--st-line); text-align: left; white-space: nowrap; }
.st-difftable th { position: sticky; top: 0; background: #F7F6F1; }
/* 公開とちがうマスの印（右上の小さな点） */
.st-cell__in { position: relative; }
.st-mark { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #E08A2E; box-shadow: 0 0 0 1.5px #fff; }


/* ===== 店舗ごとの画面から人を入れる・はずす（2026-10-08） ===== */
.st-shop__add { margin-left: 6px; padding: 5px 12px; min-height: 32px; background: #fff; border: 0; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--st-ink); cursor: pointer; }
.st-addpanel { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; background: #FFFDF8; border-bottom: 1px solid var(--st-line); }
.st-addpanel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-addpanel__lbl { font-size: 13px; font-weight: 700; margin-right: 4px; }
.st-daychip { padding: 4px 10px; min-height: 32px; background: #fff; border: 1px solid var(--st-line2); border-radius: 14px; font-size: 13px; color: var(--st-mute); cursor: pointer; }
.st-daychip.is-on { background: var(--st-green); border-color: var(--st-green); color: #fff; font-weight: 700; }
.st-daychip:disabled { opacity: .4; cursor: default; }
.st-candlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; }
.st-candlist__sep { grid-column: 1 / -1; font-size: 12px; color: var(--st-sub); margin-top: 4px; }
.st-cand-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; background: #fff; border: 1px solid var(--st-line); border-radius: 8px; cursor: pointer; text-align: left; }
.st-cand-item:hover, .st-cand-item:focus-visible { border-color: var(--st-green); }
.st-cand-item.is-busy { opacity: .6; }
.st-cand-item__name { font-size: 14px; font-weight: 700; color: var(--st-ink); }
.st-cand-item__meta, .st-cand-item__where { font-size: 12px; color: var(--st-sub); }
/* はずす：ふだんは見えない。マウスを乗せる・キーボードで選ぶ・タップで出す（マウスの無い端末では、いつも出す） */
.st-rm { margin-left: 6px; padding: 1px 8px; border: 1px solid #C25B5B; border-radius: 10px; background: #fff; color: #8A4A4A; font-size: 11px; cursor: pointer; opacity: 0; }
.st-vrow:hover .st-rm, .st-vrow:focus-within .st-rm, .st-vrow.is-tapped .st-rm, .st-rm:focus { opacity: 1; }
@media (hover: none) { .st-rm { opacity: 1; } }

/* 既存のシフトとのちがい（2026-10-09） */
.st-diffn--ex { margin-right: 2px; }
/* 本人の希望（×・有給）：マスの左上に小さく（塗るのは止めない） */
.st-wish { position: absolute; top: 1px; left: 3px; font-size: 10px; font-weight: 700; line-height: 1; padding: 1px 3px; border-radius: 3px; }
.st-wish--ng { color: #A63B22; background: #FBE9E9; }
.st-wish--paid { color: #5B4A7A; background: #F0ECF7; }
.st-cand-item__wish { font-size: 12px; color: #A63B22; font-weight: 700; }

/* 出勤の状態13種類（2026-10-09） */
.st-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.st-cell--public_off { background: #ECEFF3; }
.st-cell--public_off .st-cell__in { color: #55606F; border-left-color: #8E9AAB; }
.st-cell--paid { background: #E6F2EA; }
.st-cell--paid .st-cell__in { color: #2F6B46; border-left-color: #5E9C76; }
.st-cell--swap_off { background: #EEF0E6; }
.st-cell--swap_off .st-cell__in { color: #5E6440; border-left-color: #9AA27A; }
.st-cell--guarantee { background: #FFF4DE; }
.st-cell--guarantee .st-cell__in { color: #7A5A12; border-left-color: #C9A04A; }
.st-cell--other { background: #F4F1FA; }
.st-cell--other .st-cell__in { color: #5B4A7A; border-left-color: #9A8CB8; }
.st-v--public_off { background: #ECEFF3; color: #55606F; font-size: 14px; }
.st-v--paid { background: #E6F2EA; color: #2F6B46; font-size: 14px; }
.st-v--swap_off { background: #EEF0E6; color: #5E6440; font-size: 14px; }
.st-v--guarantee { background: #FFF4DE; color: #7A5A12; font-size: 14px; }
.st-v--other { background: #F4F1FA; color: #5B4A7A; font-size: 14px; }
.st-tag { flex: none; font-size: 11px; font-weight: 700; line-height: 16px; padding: 0 4px; border-radius: 3px; border: 1px solid currentColor; background: rgba(255, 255, 255, .8); }
/* 店長の印（2026-11-04・営業メモアプリの「店長キャッチ」用） */
.st-tag--mgr { color: #8A5A00; border-color: #C9A04A; background: #FFF4DE; }
.st-tag--half { color: #2F6E48; border-color: #5E9C76; background: #E6F2EA; }
.st-single-half { margin-top: 6px; }
.st-single-mgr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; font-weight: 700; }
.st-single-mgr small { font-weight: 400; color: #6B7A72; }
.st-note { position: absolute; right: 3px; bottom: 1px; font-size: 11px; line-height: 1; color: #8A6A1A; }
.st-chip--note { background: #FFFBEA; border-color: #C9A04A; color: #6B5A2A; }

/* マスの店舗名：省略せずに2段（上＝会社名・下＝店舗名）（2026-10-09 ご指示） */
.st-cell__name { display: flex; flex-direction: column; align-items: center; min-width: 0; line-height: 1.15; }
.st-cell__chain { font-size: 10px; font-weight: 400; opacity: .85; }
.st-cell__branch { font-size: 13px; font-weight: 700; }
.st-v--away { white-space: normal; line-height: 1.3; }
/* 店舗のマスに開始時間と住所（2026-11-11 ご指示）。店舗名の下に2行。マスは中身に合わせて高くなる（ほかのマスは72pxのまま） */
.st-cell__in.st-cell__in--sub { height: auto; min-height: 72px; flex-wrap: wrap; align-content: center; row-gap: 3px; padding: 18px 8px 10px 10px; }
.st-cell__sub { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; white-space: normal; line-height: 1.3; text-align: center; }
.st-cell__time { font-size: 12px; font-weight: 700; }
/* その日クローザーとして入っているマスは枠で分かるように（2026-11-11 ご指示「CL の札はいらない・クローザーは枠を分かりやすく」）。枠の色は店舗の文字の色 */
.st-cell__in.st-cell__in--cl { box-shadow: inset 0 0 0 2.5px currentColor; border-radius: 4px; }
/* 店舗名・住所も太字（2026-11-11 ご指示） */
.st-cell__addr { font-size: 11px; font-weight: 700; opacity: .9; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
/* 会社名（とりせん・オーケー・西友・カスミ・エスポット）も大きく（2026-11-11 ご指示） */
.st-cell__in--sub .st-cell__chain { font-size: 13px; font-weight: 700; opacity: 1; }
.st-cell__in--sub .st-cell__branch { font-size: 14px; font-weight: 800; }

/* スプレッドシートの記録の取り込み（2026-10-09） */
.st-imp { border: 1px solid var(--st-line2); border-radius: 10px; background: #fff; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.st-imp__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.st-imp__head h3 { margin: 0; font-size: 16px; }
.st-imp__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-imp__file { font-size: 13px; color: var(--st-mute); }
.st-imp__opt { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.st-imp__sum { font-size: 14px; }
.st-imp__list summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.st-imp__list ul { margin: 4px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.7; max-height: 260px; overflow: auto; }
.st-imp__n { color: var(--st-mute); font-size: 12px; }
.st-cell__in--nostore { font-size: 12px; font-style: italic; }

/* すごい会議・他地区（九州）（2026-10-09） */
.st-cell--meeting { background: #E8F0FA; }
.st-cell--meeting .st-cell__in { color: #34557F; border-left-color: #5B7FB0; }
.st-cell--away_region { background: #E6F4F2; }
.st-cell--away_region .st-cell__in { color: #24665F; border-left-color: #3E8F86; font-size: 12px; }
.st-v--meeting { background: #E8F0FA; color: #34557F; font-size: 14px; }
.st-v--away_region { background: #E6F4F2; color: #24665F; font-size: 13px; }

/* 検索とまとめて表示（2026-10-09） */
.st-q { min-width: 180px; padding: 6px 10px; border: 1px solid var(--st-line2); border-radius: 16px; font-size: 14px; }
.st-views--sm button { padding: 5px 10px; font-size: 13px; }
.st-cell--run .st-cell__in { justify-content: center; }


/* 印の意味を文字と形で区別。上下の余白で予定の文字と重ならないようにする。 */
.st-cell__in { height: 72px; padding-top: 21px; padding-bottom: 20px; }
.st-mark, .st-wish, .st-note { cursor: pointer; font-family: inherit; border: 1px solid transparent; min-height: 19px; }
.st-mark { top: 1px; right: 3px; width: 23px; height: 20px; padding: 0; border-radius: 3px; background: #fff4d9; color: #b77900; font-size: 16px; line-height: 18px; box-shadow: none; }
.st-wish { padding: 2px 4px; font-size: 10px; line-height: 14px; }
.st-note { padding: 1px 4px; line-height: 15px; font-size: 10px; color: #56625b; background: #fffdf8; border-color: #d8dfd9; border-radius: 3px; }
.st-mark:focus-visible, .st-wish:focus-visible, .st-note:focus-visible { outline: 2px solid #246c4f; outline-offset: 1px; }
.st-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 12px 16px; margin: 12px 0; border: 1px solid var(--st-line); border-radius: 8px; background: #fffdf8; font-size: 13px; }
.st-legend small { flex-basis: 100%; color: #56625b; }
.st-legend-diff { color: #b77900; }
.st-info-dialog { max-width: min(540px, 90vw); max-height: 80vh; overflow: auto; padding: 22px; color: #1d2d26; background: #fffdf8; border: 1px solid #d8dfd9; border-radius: 12px; }
.st-info-dialog::backdrop { background: rgba(15, 40, 28, .35); }
.st-info-dialog section { border-top: 1px solid #d8dfd9; padding: 10px 0; }
.st-info-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }

.st-legend-wish { padding: 2px 6px; border-radius: 4px; background: #FBE9E9; color: #A63B22; }
.st-legend-note { padding: 2px 6px; border: 1px solid #d8dfd9; border-radius: 4px; color: #56625b; }
.st-edit-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.st-edit-modes [aria-pressed="true"] { background: #0f4c35; color: #fffdf8; }
.st-single-dialog label { display: grid; gap: 6px; margin: 12px 0; }
.st-single-dialog select { max-width: 100%; padding: 9px; font: inherit; background: #fffdf8; color: #1d2d26; border: 1px solid #b8cbc3; border-radius: 6px; }
.st-count-members { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 5px; }
.st-count-members:hover, .st-count-members:focus-visible { background: #edf4e8; outline: 1px solid #246c4f; border-radius: 4px; }
.st-single-dialog { width: 620px; max-width: calc(100vw - 32px); box-sizing: border-box; }
.st-single-kinds { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; margin: 0; border: 0; }
.st-single-kinds legend { font-weight: 700; font-size: 13px; }
.st-single-kinds button { padding: 8px 12px; border: 1px solid #b8cbc3; background: #fffdf8; color: #1d2d26; border-radius: 6px; font: inherit; cursor: pointer; }
.st-single-kinds button[aria-pressed="true"] { background: #0f4c35; border-color: #0f4c35; color: #fffdf8; }
.st-single-dialog input { width: 100%; box-sizing: border-box; padding: 9px; border: 1px solid #b8cbc3; border-radius: 6px; font: inherit; }
.st-single-dialog [data-single-apply] { background: #0f4c35; border: 1px solid #0f4c35; color: #fffdf8; }
.st-single-dialog [data-single-apply]:disabled { background: #e0e6e2; border-color: #c5cec8; color: #56625b; cursor: not-allowed; }
.st-single-dialog [data-single-close] { background: #fffdf8; border: 1px solid #b8cbc3; color: #1d2d26; }
.st-single-dialog :is(button, input, select):focus-visible { outline: 2px solid #246c4f; outline-offset: 2px; }

/* 服装チェック（2026-10-22 ご指示）：店舗ごとの表の人×日のマスの右に小さなチェック。押したらすぐ保存 */
.st-dress { display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle; cursor: pointer; }
.st-dress input { width: 16px; height: 16px; margin: 0; accent-color: #14402A; cursor: pointer; }
.st-dress input:disabled { cursor: default; }
.st-dress input:disabled:not(:checked) { opacity: .35; }

/* 検索で氏名が合った人（2026-10-22 ご指示：店舗の全員を出すので、探した人が分かるように） */
.st-name--hit { background: #FFF3C4 !important; box-shadow: inset 4px 0 0 #E0A800; }
/* 今週の顔ぶれをたたんだとき */
.st-bal--closed .st-bal__head { margin-bottom: 0; }
/* 塗るもの（塗る画面）をたたんだとき */
.st-brushes--closed .st-brushes__head { margin-bottom: 0; }

/* スプレッドシート（①）へ写した結果（2026-10-22）：画面の上に残す1行 */
.st-sheetnote { white-space: pre-line; background: #F4F8F2; border: 1px solid #CFE0C8; border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.st-sheetnote b { margin-right: 6px; }
.st-sheetnote.st-msg--bad { background: #FCEFEA; border-color: #E8C4B8; }
/* 出張可否の札（2026-10-28 ご依頼・仮だけ） */
/* 名前の欄は狭く「…」で切れるので、札は名前の下の段に出す */
.st-travel { display: block; width: fit-content; margin-top: 2px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.st-travel--ok { background: #E6F4EA; color: #155D2B; border: 1px solid #7CBF8E; }
.st-travel--ng { background: #FDECEC; color: #9B1C1C; border: 1px solid #E3A0A0; }
.st-travel--none { background: #F1F1EE; color: #777; border: 1px solid #DDD; }
/* シフト提出の備考（2026-10-28 ご依頼・仮だけ） */
.st-subnote { display: block; width: fit-content; margin-top: 2px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; background: #FFF7E0; color: #7A5200; border: 1px solid #E0BC5C; }
.st-subnotes { margin: 8px 0; padding: 8px 14px; border: 1px solid #E0BC5C; border-radius: 8px; background: #FFFBEF; font-size: 14px; }
.st-subnotes summary { cursor: pointer; font-weight: 700; color: #7A5200; }
.st-subnotes summary small { margin-left: 8px; font-weight: 400; color: #8a7a5a; }
.st-subnotes__table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.st-subnotes__table th, .st-subnotes__table td { padding: 4px 8px; border-top: 1px solid #EFE3C2; text-align: left; vertical-align: top; }
.st-subnotes__table thead th { font-size: 12px; color: #8a7a5a; font-weight: 400; }
.st-subnotes__table tbody th { white-space: nowrap; }
.st-subnotes__table td:nth-child(2) { white-space: nowrap; color: #666; }
.st-subnotes__text { white-space: pre-wrap; word-break: break-word; }
/* 入店可能人数を超えたとき（2026-10-28 ご依頼・知らせるだけ） */
.st-capwarn { margin: 8px 0; padding: 10px 14px; border: 2px solid #C53030; border-radius: 8px; background: #FFF5F5; color: #9B1C1C; font-size: 14px; }
.st-capwarn > div { margin-top: 2px; }
.st-capwarn small { display: block; margin-top: 4px; color: #7a4a4a; }
.st-count td.st-count--over { background: #FDECEC; }
.st-count td.st-count--over .st-n { color: #C53030; font-weight: 700; }
.st-over { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #C53030; color: #fff; font-size: 11px; font-weight: 700; }

/* ①との見比べ（2026-10-29） */
.st-cmp { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 8px; background: #fafcff; font-size: 13px; }
.st-cmp__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 6px; }
.st-cmp__head span { color: #555; }
.st-cmp__sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.st-cmp__k { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef1f6; color: #333; white-space: nowrap; }
.st-cmp__k--sheet_only { background: #fdecec; color: #9b1c1c; }
.st-cmp__k--diff { background: #fff4e0; color: #8a4b00; }
.st-cmp__k--no_store { background: #f3e8ff; color: #5b2d91; }
.st-cmp__ok { color: #155d2b; font-weight: 700; }
.st-cmp__err { color: #9b1c1c; }

/* 保存できなかったときの赤い帯（2026-10-29）。保存できるまで画面の上に出し続ける */
.st-failbox { position: sticky; top: 0; z-index: 30; }
.st-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; padding: 10px 14px; border: 2px solid #C53030; border-radius: 10px; background: #FFF5F5; color: #9B1C1C; font-size: 14px; box-shadow: 0 4px 12px rgba(155, 28, 28, 0.12); }
.st-fail b { font-size: 15px; }
.st-fail__why { flex: 1 1 320px; color: #7a2a2a; }
.st-fail__acts { display: inline-flex; gap: 8px; }
/* 九州の店舗の印（2026-11-16 ご指示「店舗の横にわかりやすく九州と記載」）。塗るものの店舗の札。1日だけ直す窓の店舗の一覧は文字で【九州】 */
.st-kyushu { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #E6F4F2; border: 1px solid #3E8F86; color: #1F5F57; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; white-space: nowrap; }

/* ---------- クレーム回避チェックリスト（2026-11-16 ご指示・pages/claim-check.js） ----------
   見た目はポータルに合わせる（同日ご指示「スプシと一緒だからポータルにデザインを合わせて」）：
   表はシフト表と同じ線・淡い見出し（土曜は青・日曜祝日は赤の文字）・1行おきの地。札は「塗るもの」と同じ淡い地に色の点。マスを押すと札の一覧 */
.cc { position: relative; display: flex; flex-direction: column; gap: 12px; }
.cc .nm-period, .cc .cc-range { margin: 0; }
.cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--st-green); letter-spacing: .02em; }
.cc-lead { margin: 2px 0 0; font-size: 13.5px; color: var(--st-ink); }
.cc-range { font-size: 13.5px; color: var(--st-ink); }
.cc-summary { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 10px 14px; background: var(--st-paper); border: 1px solid var(--st-line); border-radius: 12px; }
.cc-summary__main { font-size: 13.5px; color: var(--st-ink); font-weight: 700; white-space: nowrap; }
.cc-summary__main b { font-size: 22px; color: var(--st-green); margin-right: 2px; }
.cc-summary__main small { display: block; font-size: 12px; font-weight: 400; color: var(--st-mute); }
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border: 1.5px solid transparent; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.cc-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.cc-dot--dash { background: transparent; border: 1.5px dashed var(--st-mute); width: 10px; height: 10px; }
.cc-chip--note { background: #fff; color: var(--st-ink); border: 1px solid var(--st-line2); font-weight: 500; }
.cc-chip--auto { background: #fff !important; border-style: dashed !important; opacity: .9; }
.cc-card { padding: 0; overflow: hidden; }
.cc-wrap { overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-table th, .cc-table td { border: 1px solid var(--st-line); }
.cc-table thead th { position: sticky; top: 0; z-index: 2; padding: 8px 4px; background: #EFEDE5; color: var(--st-ink); font-size: 16px; font-weight: 700; text-align: center; white-space: nowrap; }
.cc-day small { display: block; font-size: 13px; font-weight: 700; color: var(--st-mute); }
.cc-table .st-sat { color: #1F5FA8; }
.cc-table .st-sun { color: #B0301A; }
.cc-name { position: sticky; left: 0; z-index: 1; min-width: 132px; padding: 8px 14px !important; background: #fff; text-align: left; white-space: nowrap; }
.cc-table thead .cc-name { z-index: 3; background: #EFEDE5; text-align: left; }
.cc-name__n { display: block; font-size: 17px; font-weight: 700; color: var(--st-ink); }
.cc-name__t { display: block; font-size: 13px; font-weight: 500; color: var(--st-mute); }
.cc-table tbody tr:nth-child(even) td, .cc-table tbody tr:nth-child(even) .cc-name { background: #FBFAF7; }
.cc-table tbody tr:hover td, .cc-table tbody tr:hover .cc-name { background: #F3F7F4; }
.cc-cell { padding: 4px; text-align: center; min-width: 124px; }
.cc-cell.is-sat { box-shadow: inset 0 0 0 9999px rgba(43, 108, 176, .035); }
.cc-cell.is-sun { box-shadow: inset 0 0 0 9999px rgba(166, 59, 34, .035); }
.cc-table--month .cc-cell { min-width: 108px; }
.cc-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 46px; padding: 2px 4px; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font: inherit; }
.cc-btn:hover { border-color: var(--st-line2); background: #fff; }
.cc-btn.is-open { border-color: var(--st-green); background: #fff; box-shadow: 0 0 0 2px rgba(20, 64, 42, .12); }
.cc-btn:focus-visible { outline: 3px solid var(--st-yel); outline-offset: 1px; }
.cc-btn.is-busy { opacity: .5; cursor: progress; }
.cc-btn .cc-chip { font-size: 16px; padding: 5px 14px 5px 11px; gap: 7px; }
.cc-btn .cc-dot { width: 10px; height: 10px; }
.cc-table--month .cc-btn .cc-chip { font-size: 14.5px; padding: 4px 10px 4px 8px; gap: 5px; }
.cc-empty { color: #9C9482; font-size: 20px; font-weight: 700; line-height: 1; }
.cc-btn:hover .cc-empty { color: var(--st-green); }
.cc-from { font-size: 12px; font-weight: 700; color: var(--st-mute); }
.cc-table tfoot th, .cc-table tfoot td { background: var(--st-paper); }
.cc-table tfoot .cc-name { font-size: 15px; font-weight: 700; color: var(--st-ink); }
.cc-foot { padding: 8px 4px; text-align: center; font-size: 18px; font-weight: 700; color: var(--st-ink); white-space: nowrap; }
.cc-foot small { font-size: 13px; font-weight: 500; color: var(--st-mute); }
.cc-foot.is-all { color: #1E7A47; }
.cc-menu { position: absolute; z-index: 20; display: grid; grid-template-columns: repeat(3, auto); gap: 6px; padding: 10px; background: #fff; border: 1px solid var(--st-line2); border-radius: 12px; box-shadow: 0 10px 26px rgba(28, 43, 36, .18); }
.cc-menu__item { padding: 3px; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; }
.cc-menu__item .cc-chip { font-size: 15.5px; padding: 5px 14px 5px 11px; }
.cc-menu__item:hover, .cc-menu__item:focus-visible { border-color: var(--st-green); outline: none; }
.cc-menu__item.is-on { border-color: var(--st-green); box-shadow: 0 0 0 2px rgba(20, 64, 42, .12); }
.cc-menu__clear { grid-column: 1 / -1; margin-top: 2px; padding: 8px; background: none; border: 1px dashed var(--st-mute); border-radius: 8px; color: var(--st-ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.cc-menu__clear:hover, .cc-menu__clear:focus-visible { border-color: #C25B5B; color: #8A2F2F; outline: none; }
.cc-note { margin: 0 2px; font-size: 13px; color: var(--st-mute); }
@media (max-width: 720px) {
  .cc-menu { grid-template-columns: repeat(2, auto); }
  .cc-name { min-width: 96px; }
}
/* 画面の切り替え（塗る・店舗ごと・クレーム回避）は3つになったので、狭い画面では横に送って選べるようにする（切れて押せなくならないように） */
@media (max-width: 720px) {
  .st-top > .st-views:not(.st-views--sm) { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* ---- 週間予定の共有URL（見るだけ・ログイン不要。shift-view.html・2026-11-16 ご指示）----
   .st--public は、共有URLのページのときだけ付く（shift-test.js の PUBLIC）。社内向けの集計を出さない：
   フェーズの列（3列目）・今週の顔ぶれ（フェーズごとの人数）・店舗の札のフェーズの内訳。
   ⚠ フェーズそのものは、サーバーが渡していない（lib/shift-view.js）。ここは空の列・0 の集計を見せないための片付け */
.st--public .st-bal, .st--public .st-shop__mix { display: none; }
/* ⚠ 3列目を隠すのは、氏名・役割・フェーズで始まる表だけ（「その日の人数」の表 .st-count は、3列目が日付なので除く） */
.st--public .st-table:not(.st-count) col.st-c-phase,
.st--public .st-table:not(.st-count) thead th:nth-child(3),
.st--public .st-table:not(.st-count) tbody td:nth-child(3) { display: none; }
/* 共有URLのページの枠 */
.sv-main { max-width: 1500px; margin: 0 auto; padding: 0 0 40px; }
.sv-note { margin: 4px 2px 12px; font-size: 14px; color: #33413a; }
.sv-msg { margin: 28px auto; max-width: 640px; padding: 18px 20px; border: 1px solid #e3c9c9; border-radius: 12px; background: #fdf3f3; color: #8a2a2a; font-size: 15px; line-height: 1.7; }
/* 週間予定の下の「共有用URL」の欄（シフト管理・編集できる人だけに出る） */
.st-sharebox { margin: 10px 0 12px; padding: 10px 12px; border: 1px solid #d9e2dc; border-radius: 12px; background: #f7faf8; }
.st-sharebox__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-sharebox__lbl { font-size: 13px; font-weight: 700; color: #173b31; }
.st-sharebox__url { flex: 1 1 320px; min-width: 0; padding: 7px 10px; font: inherit; font-size: 13px; color: #1f2a37; background: #fff; border: 1px solid #c9ced6; border-radius: 8px; }
.st-sharebox__note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: #5b6b62; }

/* 写しが止まっているときの赤い帯（2026-11-20 障害の再発防止。pages/shift-test.js の loadSyncStatus） */
.st-msg.st-sync-alert { border: 2px solid #C0392B; background: #FDECEA; border-radius: 10px; padding: 10px 12px; }
.st-sync-alert__body { color: #8E1F12; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
.st-difftable tr.st-sync-stuck td { background: #FDECEA; color: #8E1F12; }
/* 有休（半休）のチェック：休みの仲間を選んでいるときは押せない見た目（2026-11-24） */
.st-single-half.is-off { opacity: .5; }
.st-single-half.is-off input { cursor: not-allowed; }
/* 窓のチェック（有休（半休）・店長）：上の「.st-single-dialog label＝縦並び」「input＝横いっぱい」に負けて、
   チェックだけが真ん中にぽつんと出ていた（2026-11-24「謎のチェックボックスがある」）。チェックと文字を横に並べる */
.st-single-dialog .st-single-mgr { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.st-single-dialog .st-single-mgr input[type="checkbox"] { width: 18px; height: 18px; padding: 0; margin: 0; flex: none; accent-color: #0f4c35; }
.st-single-dialog .st-single-mgr small { flex-basis: 100%; padding-left: 26px; }
.st-single-dialog .st-single-mgr[hidden] { display: none; }   /* 店長のチェックは店舗で勤務のときだけ（hidden を上の display に負けさせない） */
/* 開催場所（店舗のどこでやるか・2026-11-25）：住所の後ろ。長いときは切ってカーソルで全文 */
/* 開催場所は見出しの2行目に全文（2026-11-25 ご指摘「中略ばかりだと見づらい」で、切らない形に） */
.st-shop__spot { flex: 1 1 100%; font-size: 13.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .18); border-radius: 6px; padding: 3px 10px; white-space: normal; overflow-wrap: anywhere; }
