:root {
  --bg: #f6f7f9; --card: #fff; --text: #1f2328; --muted: #6a737d; --line: #d8dde3;
  --accent: #1f6feb; --accent-soft: #dbe9ff; --red: #d1242f; --sat: #0b5cd5; --ok: #1a7f37; --warn: #9a6700;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px 40px; }
h1 { font-size: 1.3rem; margin: 8px 0 12px; }
h2 { font-size: 1.05rem; margin: 24px 0 8px; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.who { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin: 0; }
button { font: inherit; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.wide { width: 100%; margin-top: 8px; }
button.link { border: 0; background: none; color: var(--accent); padding: 0; }
button.danger { border-color: var(--red); color: var(--red); background: var(--card); }
.danger-zone { margin-top: 24px; padding-top: 12px; border-top: 1px dashed var(--line); }
button:disabled { opacity: .5; }
input, select { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); width: 100%; }
label { display: block; margin: 8px 0; font-size: .9rem; color: var(--muted); }
label input, label select { margin-top: 4px; color: var(--text); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.login { margin-top: 8vh; border-radius: 22px; padding: 24px 22px; text-align: center;
  box-shadow: 0 6px 24px rgba(31, 35, 40, .06); }
.login form { text-align: left; }
.login h1 { margin-top: 4px; }
/* ホーム画面に追加（ログイン画面）*/
.install-box { margin: 14px 0 4px; }
.install-help { text-align: left; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.install-help ol { margin: 0; padding-left: 1.3em; }
.install-help li { margin: 2px 0; }
.login-ico { font-size: 2.4rem; line-height: 1; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.flash { padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); }
.flash.error { background: #ffebe9; color: var(--red); }
.flash.warn { background: #fff8c5; color: var(--warn); }
.flash.ok { background: #dafbe1; color: var(--ok); }
.notice { background: #fff8c5; border: 1px solid #e3c97a; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
/* メニュー: 縦1列。色つきの丸アイコン＋右矢印のカード（2026-09-26 本人「縦に並べてかわいく」） */
.hello { margin: 4px 0 14px; font-weight: 600; color: var(--muted); }
.menu-page { max-width: 480px; margin: 0 auto; }
.menu { display: flex; flex-direction: column; gap: 12px; }
.menu-head { margin: 28px 0 10px; }
.tile { --c: #fde2ec; --c2: #e75a8c; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--card); border: 2px solid var(--c); border-radius: 22px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--c); transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--c); }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c); }
.tile .ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--c); font-size: 1.5rem; line-height: 1; }
.tile .label { flex: 1; }
.tile::after { content: "›"; font-size: 1.8rem; line-height: 1; color: var(--c2); margin-top: -4px; }
.tile.pink  { --c: #fde2ec; --c2: #e75a8c; }
.tile.peach { --c: #ffe6d3; --c2: #e8834a; }
.tile.mint  { --c: #d6f5e6; --c2: #2f9e6a; }
.tile.sky   { --c: #dcecff; --c2: #3b82d6; }
.tile.lilac { --c: #ebe2fd; --c2: #8a5ad8; }
.tile.lemon { --c: #fff3c4; --c2: #c79a00; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover, .tile:active { transform: none; } }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.controls label { flex: 1 1 110px; margin: 0; }
.controls label.grow { flex: 2 1 180px; }
/* minmax(0,1fr): 長い文字（09:00-18:00）でマスが広がって画面からはみ出さないようにする */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0; }
.dow { text-align: center; font-size: .8rem; color: var(--text); padding: 4px 0; }
.day { min-height: 62px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center;
  gap: 1px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.day.blank { border: 0; background: none; }
.day .num { font-weight: 600; }
.day .hol { font-size: .6rem; line-height: 1.1; }
.day { min-width: 0; }
.day .time { font-size: .62rem; line-height: 1.1; overflow-wrap: anywhere; text-align: center; }
.day .num { color: var(--text); }
.red, .day.red .num, .dow.red { color: var(--red); }
.day.blue .num, .dow.blue { color: var(--sat); }
.day.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.day.on .num, .day.on .hol { color: #fff; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; }
.actions button { min-width: 140px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.inline input { width: auto; }
.scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; }
.grid th, .grid td { border: 1px solid var(--line); padding: 2px 4px; font-size: .72rem;
  text-align: center; white-space: nowrap; }
.grid .sticky { position: sticky; left: 0; background: var(--card); text-align: left; z-index: 1; }
.grid tr.none td, .grid tr.none th { background: #eef0f3; }
/* ── 全体チェック（2026-09-28 本人「もう少し見やすく」）: 希望入力のカレンダーと同じ色の意味
   （青＝出勤・緑＝有給）でマスをチップにする。表が広いので本文の幅を広げる ── */
main.wide { max-width: none; }
.ov-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  margin: 4px 0 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.cmp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pill.hit { background: #fde2ec; color: #c2255c; }
.chip { display: inline-block; min-width: 22px; padding: 2px 3px; border-radius: 6px; font-style: normal;
  font-size: .68rem; line-height: 1.2; font-weight: 600; }
.chip.work { background: var(--accent-soft); color: #1650b0; }
.chip.paid { background: #dafbe1; color: var(--ok); }
.chip.off { height: 16px; border: 1px dashed var(--line); background: var(--card); }
.chip.hit { background: #fde2ec; color: #c2255c; }
.scroll.ov { max-height: 72vh; overflow: auto; border-radius: 12px; }
.ov .grid { width: 100%; }
.ov .grid th, .ov .grid td { padding: 3px 2px; }
.ov .grid tbody td { height: 40px; min-width: 30px; }
.ov .grid thead th { position: sticky; top: 0; z-index: 2; background: var(--card); font-weight: 600; }
.ov .grid thead th.sticky { z-index: 3; }
.ov .grid .day-h { line-height: 1.15; min-width: 30px; }
.ov .grid .dow-s { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); }
.ov .grid .day-h.we, .ov .grid .day-h.we .dow-s { color: var(--red); }
.ov .grid td.we { background: #fbf6f7; }
/* 入荷・集荷のある日は、印の行と日付の見出しだけ薄い緑（「比較」の重なりの色はこれより優先） */
.ov .grid thead th.opsd { background: #e9f7ee; }
.ov .grid tr.none td, .ov .grid tr.none th { background: #eef0f3; }
.ov .grid tbody tr:hover td, .ov .grid tbody tr:hover th { background: #f3f7ff; }
.ov .grid .name-col { min-width: 6.5em; padding: 3px 6px; }
.ov .grid .emp-name { display: block; font-size: .8rem; font-weight: 700; }
.ov .grid .emp-code { color: var(--muted); font-weight: 400; margin-right: 4px; }
.badge { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: .62rem; font-weight: 600;
  background: #eef0f3; color: var(--muted); }
.badge.ok { background: #dafbe1; color: var(--ok); }
.badge.warn { background: #fff8c5; color: var(--warn); }
.ov .grid td.count { font-weight: 600; min-width: 30px; }
/* 備考の 💬（マスの右上）と、押したときの吹き出し（2026-10-16）*/
.ov .grid tbody td { position: relative; }
.note-mark { position: absolute; top: 0; right: 0; border: 0; background: none; padding: 0 1px; margin: 0;
  font-size: .78rem; line-height: 1; cursor: pointer; }
.note-mark.static { position: static; font-size: .8rem; cursor: default; }
.pop { position: absolute; z-index: 30; max-width: 280px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(31, 35, 40, .16); font-size: .85rem; }
.pop strong { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.pop div { white-space: pre-wrap; overflow-wrap: anywhere; }
/* 名前を押したときの「その人の1か月」と、シフト作成の編集（下から出る枠）*/
.ov .grid .name-open { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700;
  font-size: .8rem; text-align: left; cursor: pointer; display: block; }
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(31, 35, 40, .35);
  display: flex; align-items: flex-end; justify-content: center; }
.sheet-back[hidden] { display: none; }
.sheet { background: var(--card); width: min(520px, 100%); max-height: 85vh; display: flex; flex-direction: column;
  border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(31, 35, 40, .2); }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 16px; } }
.sheet header { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; padding: 8px 16px 16px; -webkit-overflow-scrolling: touch; }
.p-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.p-row .p-day { width: 7em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-row.we .p-day { color: var(--red); }
.p-row .p-what { font-weight: 600; color: #1650b0; }
.p-row.off .p-what { color: var(--muted); font-weight: 400; }
.p-row .p-hol { font-size: .75rem; color: var(--red); }
.p-row .p-note { flex-basis: 100%; font-size: .85rem; color: var(--text); padding-left: 7em; overflow-wrap: anywhere; }
.ov .grid.editable tbody td[data-date] { cursor: pointer; }
.ov .grid.editable tbody td[data-date]:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov .grid td.just-saved { background: #fff3bf; }
.edit-sheet .kind-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 12px; }
.edit-sheet .kind-picks label, .edit-sheet .time-pair label, .edit-sheet .note-label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 1rem; color: var(--text); }
.edit-sheet .kind-picks input { width: auto; margin: 0; }
.edit-sheet .kind-picks label[hidden], .edit-sheet .edit-actions button[hidden] { display: none; }
.edit-sheet .time-pair { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.edit-sheet .time-pair select { width: auto; margin: 0; }
.edit-sheet .note-label { display: flex; margin-bottom: 12px; }
.edit-sheet .note-label input { flex: 1; margin: 0; }
.edit-sheet .edit-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.time-pair[hidden] { display: none; }
/* まとめて編集（2026-10-16）: スイッチ・選んだマス */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; color: var(--text);
  font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .slider { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #c9d1d9;
  transition: background .15s; flex: none; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.bulk-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk-tools[hidden] { display: none; }
#bulk-count { font-weight: 600; }
.csv-depts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 0 auto; }
.csv-depts button { margin: 0; }
.ov .grid.bulk tbody td[data-date] { cursor: cell; }
/* シフト確認・シフト出力（2026-10-16）*/
.shift-actions { margin: 20px 0 12px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.shift-actions .act-row { display: grid; grid-template-columns: 14em 1fr; gap: 6px 14px; align-items: center; margin: 0; }
.shift-actions .act-row > button { width: 100%; margin: 0; }
.shift-actions .act-text { min-width: 0; }
@media (max-width: 600px) { .shift-actions .act-row { grid-template-columns: 1fr; } }
.publish-box .notify-check, .shift-actions .notify-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .95rem; color: var(--text); }
.publish-box .notify-check input, .shift-actions .notify-check input { width: auto; margin: 0; flex: none; }
.shift-actions .notify-check { margin-bottom: 2px; }
.my-cal .day .time { font-size: .62rem; }
.my-cal .day.picked { box-shadow: 0 0 0 3px #f59f00; }
.day-detail h2 { margin: 0 0 4px; font-size: 1.05rem; }
.day-detail h3 { margin: 12px 0 4px; font-size: .9rem; color: var(--muted); }
.day-detail #dd-mine { margin: 0 0 4px; font-weight: 600; }
.dd-tabs { display: flex; gap: 6px; margin: 8px 0 2px; }
.dd-tabs[hidden] { display: none; }
.dd-tab { border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.dd-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.dd-list { list-style: none; margin: 0; padding: 0; }
.dd-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.dd-list .dd-time { color: #1650b0; font-variant-numeric: tabular-nums; }
.ov .grid tbody td.sel { background: #d0e4ff !important; box-shadow: inset 0 0 0 2px var(--accent); }
/* 出勤日数のチェック（2026-10-16）: パートの足りない週・社員の休みすぎ */
.ov .grid td.short { background: #ffe8cc; }
.chip.short { height: 16px; background: #ffe8cc; }
.badge.alert { background: #ffe3e3; color: #c92a2a; }
/* TouchOnTime に登録の無いパターン（2026-10-21）*/
.ov .grid td.nopat { box-shadow: inset 0 0 0 2px #e03131; }
.chip.nopat { height: 16px; background: #fff; box-shadow: inset 0 0 0 2px #e03131; }
/* 希望の出し直しで書き換えた日（シフト作成. 2026-10-22） */
.ov .grid td.wishchg { background: #fff3bf; box-shadow: inset 0 0 0 2px #f08c00; }
.chip.wishchg { height: 16px; background: #fff3bf; box-shadow: inset 0 0 0 2px #f08c00; }
.pat-note { margin: 10px 0; }
.pat-note.warn { border-color: #e03131; background: #fff5f5; }
.pat-note p { margin: 4px 0; }
.ov .grid td.count.alert { background: #ffe3e3; color: #c92a2a; }
.list td.quota { white-space: nowrap; }
.list td.quota input { width: 3.6em; padding: 4px 6px; display: inline-block; }
/* 締切のお知らせ（通知）*/
.push-card { margin: 16px 0 8px; }
/* 締切のお知らせの管理画面: 枠は下の表と同じ全幅にそろえる */
.push-box { margin: 8px 0 16px; }
.push-box p { margin: 4px 0 10px; }
.push-box button.primary, .push-box form > button { min-width: 200px; }
.push-sched .day-picks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 12px; }
.push-sched .day-picks label { display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-size: 1rem; color: var(--text); }
.push-sched .day-picks input { width: auto; margin: 0; }
.push-sched .time-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.push-sched .time-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 1rem; color: var(--text); }
.push-sched .time-row select { width: auto; margin: 0; }
.push-now .body-label { display: block; margin: 0 0 10px; font-size: 1rem; color: var(--text); }
.push-now textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px; border: 1px solid var(--line);
  border-radius: 8px; margin-top: 4px; }
.push-now .pick-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.push-now .list { margin-bottom: 12px; }
.push-now tr.none td { color: var(--muted); background: #ffe3ec; }  /* 通知の登録なし（2026-10-21 本人指定でピンク）*/
.push-box .time-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.push-card p { margin: 6px 0 10px; }
.ok-text { color: var(--ok); }
.list td.nowrap { white-space: nowrap; }
.quota-save { display: flex; justify-content: flex-end; margin-top: 8px; }
.actions.wrap { flex-wrap: wrap; justify-content: flex-end; }
.actions.wrap #picked { margin-right: auto; white-space: nowrap; }
.ov .grid tr.none td.count { color: var(--muted); font-weight: 400; }
/* 比較チェックの列は社員列の左に固定。社員列はその幅だけずらして固定する */
.grid .cmp-col { width: 32px; min-width: 32px; max-width: 32px; padding: 2px; text-align: center; }
.grid .name-col { left: 32px; }
.grid .cmp-check { width: 16px; height: 16px; margin: 0; vertical-align: middle; cursor: pointer; accent-color: var(--accent); }
/* 比較中の人の行は名前を青く。休みが重なった日は「休」と出してピンクにする */
.ov .grid tr.picked th.name-col, .ov .grid tr.picked td.cmp-col { background: var(--accent-soft); }
.ov .grid td.overlap, .ov .grid tr:hover td.overlap { background: #fde2ec; }
.ov .grid td.overlap::after { content: "休"; color: #c2255c; font-weight: 700; font-size: .72rem; }
.ov .grid td.overlap .chip { display: none; }
.ov .grid thead th.overlap, .ov .grid thead th.overlap .dow-s { background: #fde2ec; color: #c2255c; }
/* 所属の変わり目（所属コード自体は出さない） */
.grid tr.group-start td, .grid tr.group-start th { border-top: 2px solid #9aa4b2; }
.list { width: 100%; background: var(--card); }
.list th, .list td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; font-size: .9rem; }
.steps li { margin: 4px 0; }
.stat { display: flex; justify-content: space-between; padding: 8px 0; font-size: 1.1rem; }
.list label.plain { display: inline; margin: 0; color: var(--text); font-size: inherit; }
/* 従業員一覧: 氏名の下の雇用区分と、予備のCSV取込 */
.list .emp-type { color: var(--muted); font-size: .78rem; }
.admin-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font-size: .72rem;
  background: var(--accent-soft); color: var(--accent, #1f6feb); vertical-align: 1px; }
details.csv-import { margin: 24px 0 12px; }
details.csv-import summary { cursor: pointer; color: var(--muted); }
.gcal-conn { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; }
.gcal-conn form { margin: 0; }
.day.on.paid { background: var(--ok); border-color: var(--ok); }
/* 希望画面: 各スタッフのデフォルト時間の設定（2026-09-28） */
.default-set { padding: 12px 14px; margin-bottom: 12px; }
.default-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.default-head strong { font-size: 1.05rem; }
#def-panel { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
#def-panel .muted.small { margin: 8px 0; }
#def-msg { margin: 10px 0 0; }
.default-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.default-actions .primary { min-width: 120px; }
/* ログインの名前の枠: ふつうのプルダウン。「社員番号を入力（管理者）」で同じ場所が入力欄に変わる */
.pick-name [hidden] { display: none; }
/* CSV取込（2026-10-21）*/
.import-card { margin: 12px 0; }
.import-card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.import-card p { margin: 4px 0; }
.import-card form { margin-top: 8px; display: grid; gap: 8px; }
.swatch-pink { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; margin-right: 4px; background: #ffe3ec; border: 1px solid #f3b6c8; border-radius: 3px; }
/* 全拠点表示（2026-10-27）: 比較列が無いので名前列は左端に付ける */
.all-grid .name-col { left: 0; white-space: nowrap; font-size: .8rem; }
.all-grid tr.dept-row th, .all-grid tr.dept-row td { background: var(--accent-soft); color: #1650b0; font-weight: 700; height: auto; }
.ov .all-grid tr.me th, .ov .all-grid tr.me td { background: #fff9db; }
.foot-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* rising-ops の入荷（📦）・集荷（🚚）の印（2026-11-06） */
/* 日付の枠の上の1行（日付の行と一緒に上に貼りつく） */
.ov .grid thead tr.ops-row th { top: 0; height: 20px; box-sizing: border-box; padding: 1px 0; font-weight: 400; }
.ov .grid thead tr.ops-row + tr th { top: 20px; }  /* 日付の行は印の行のすぐ下に貼りつく */
.ov .grid .ops-lab { font-size: .65rem; color: var(--muted); }
.ov .grid .ops-c .ops-m { display: block; font-size: .72rem; line-height: 1.1; white-space: nowrap; letter-spacing: -1px; cursor: help; }
.ov .grid .ops-c .ops-m i { font-style: normal; }
.ops-legend i { font-style: normal; }
.ops-err { color: var(--red); cursor: help; }
/* 入荷・集荷の中身の吹き出し（grid.js。印か日付にカーソル／スマホは押す） */
.ov .grid thead th[data-in] { cursor: help; }
.ops-pop { position: fixed; z-index: 50; max-width: 340px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15); padding: 6px 10px; font-size: .78rem; line-height: 1.5;
  pointer-events: none; }
.ops-pop .ops-d { font-weight: 600; margin-bottom: 2px; }
.ops-pop .ops-l { white-space: nowrap; }

/* 公休（2026-11-23） */
.day.koukyu:not(.on) { background: #fff4e6; border-color: #f59f00; }
.day .off-mark { font-size: .6rem; line-height: 1.1; font-weight: 700; color: #d9480f; }
.day.on .off-mark { color: #fff; }
.koukyu-h { font-size: 1rem; margin: 0 0 8px; color: var(--text); }
/* 2枚のカードを同じ幅・中央にそろえる */
.koukyu-card { max-width: 480px; margin: 0 auto 16px; box-sizing: border-box; }
.koukyu-card > label { margin: 0 0 12px; }
.check-line { display: flex !important; align-items: center; gap: 8px; margin: 4px 0 12px; }
.check-line input { width: auto; margin: 0; flex: none; }
/* チェックボックスは非表示（共通CSSの幅100%でマスからはみ出し、画面が横にずれていた）。ラベルのタップで切り替わる */
.koukyu-cal input { display: none; }
.koukyu-cal label.day { cursor: pointer; margin: 0; font-size: 1rem; color: var(--text); height: 62px;
  box-sizing: border-box; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; }
.koukyu-cal .off-tag { visibility: hidden; font-weight: 700; }
.koukyu-cal label.day:has(input:checked) { background: #fff4e6; border-color: #f59f00; }
.koukyu-cal label.day:has(input:checked) .off-tag { visibility: visible; color: #d9480f; }
.koukyu-cal label.day.fixed { cursor: default; background: #f1f3f5; border-color: #dee2e6; }
.koukyu-cal label.day.fixed .off-tag { color: var(--muted); }
