/* v1098：番組管理・コーナー管理（bangumi/）の見た目。土台は機材管理と同じ */
@import url("../kizai/kizai.css");
table.kz.bg { min-width: 900px; }
html.hs3-mfit table.kz.bg { min-width: 0; }
table.kz tr.end td { color: #a7afba; }
.badge-g { display: inline-block; font-size: 11px; font-weight: 700; color: #5b6677; background: #eef1f5; border: 1px solid #d5dbe3; border-radius: 10px; padding: 0 7px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; }
.badge-g.pre { color: #1e40af; background: #eef3ff; border-color: #c7d6f7; }
/* 期間（番組の小画面）。v1150：作り直し（参照中は文字・編集中は小さい入力欄・「OA時間」の見出し・備考は曜日の列から） */
.pcard { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.pcard.now { border-color: #a9bdf0; box-shadow: inset 3px 0 0 var(--primary); }
.pcard .oa-h { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.pcard .dw { font-weight: 700; font-size: 13px; color: #3d4a5c; text-align: center; }
.pcard .dw.sun { color: #c62828; } .pcard .dw.sat { color: #1d4ed8; }
/* 編集中 */
.pcard .ph { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pcard .ph input[type=date] { flex: 0 0 150px; width: 150px; min-width: 0; }
.pcard .ph .x { margin-left: auto; border: 0; background: transparent; color: #9aa4b1; font-size: 16px; width: 30px; height: 30px; padding: 0; flex: 0 0 30px; }
.pcard .ph .x:hover { color: var(--danger); background: #fdecec; }
.oa { display: grid; grid-template-columns: 2em 64px auto 64px 1fr; gap: 4px 6px; align-items: center; }
.oa .r { display: contents; }
.oa .dw { grid-column: 1; }
.oa input[type=text] { width: 100%; height: 28px; font-size: 13px; padding: 0 4px; text-align: center; }
.oa .dw.nl { margin-top: 4px; font-size: 12px; }
.oa input.note { grid-column: 2 / -1; text-align: left; padding: 0 8px; margin-top: 4px; }
html.hs3-mfit .pcard .ph input[type=date] { flex: 1 1 0; width: auto; padding: 0 6px; }
html.hs3-mfit .pcard .ph input[type=date]::-webkit-calendar-picker-indicator { display: none; }   /* スマホは欄を押せばカレンダーが開く。印の分の幅で日付が切れないように */
html.hs3-mfit .pcard .ph { gap: 4px; }
html.hs3-mfit .oa { grid-template-columns: 2em 72px auto 72px 1fr; }
html.hs3-mfit .oa input[type=text] { height: 32px; font-size: 16px; }
/* 参照中（文字だけ） */
.pcard.pv .pd { font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.pcard.pv .oav { display: grid; grid-template-columns: 2em auto auto auto; justify-content: start; gap: 2px 6px; align-items: center; font-variant-numeric: tabular-nums; }
.pcard.pv .oav .ta { text-align: right; }
.pcard.pv .pn { display: grid; grid-template-columns: 2em 1fr; gap: 6px; align-items: baseline; margin-top: 6px; }
.pcard.pv .pn .dw { font-size: 12px; }
/* 名前のチップ（担当ディレクター・出演者） */
.nchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nchips .add { display: flex; gap: 6px; flex: 1 1 200px; min-width: 0; }
.nchips .add input { flex: 1; min-width: 0; }
dialog.kz.view .nchips .add { display: none; }
dialog.kz.view .nchips .chip { padding-right: 10px; }
dialog.kz.view .nchips .chip .x { display: none; }
/* 基本ロケ曜日 */
.dows { display: flex; flex-wrap: wrap; gap: 4px; }
.dows label { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 32px; border: 1px solid #cfd6df; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; background: #fff; user-select: none; }
.dows input { position: absolute; opacity: 0; pointer-events: none; }
.dows label:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
dialog.kz.view .dows label { cursor: default; }
dialog.kz.view .dows label:not(:has(input:checked)) { display: none; }
/* 文字色・塗りつぶし色 */
.colors { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.colors label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #3d4a5c; }
.colors input[type=color] { width: 40px; height: 30px; padding: 0 2px; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; cursor: pointer; }
dialog.kz.view .colors label { display: none; }
.lchip { display: inline-block; border: 1px solid #d5dbe3; border-radius: 4px; padding: 1px 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }
/* v1099：並び順の変更中（終了した番組も薄くしない） */
body.reordering table.kz tr.end td { color: inherit; }
/* v1100：コーナー管理の一覧の番組の列・勤務表表記（色）の見本・色の編集 */
table.kz td.pg { white-space: nowrap; }
html.hs3-mfit table.kz td.pg { grid-column: 2 / span 2; font-size: 12px; color: var(--muted); }
html.hs3-mfit table.kz td.pg + td.nm { grid-column: 2; }
.cpick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cpick .sw { min-width: 44px; height: 32px; padding: 0 8px; border: 2px solid transparent; border-radius: 4px; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 1px #d5dbe3; }
.cpick .sw.on { border-color: #0f1f3a; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f1f3a; }
.cpick .sw.none { background: #fff; color: var(--muted); font-weight: 600; }
.cpick .sw:disabled { cursor: default; opacity: 1; }
.cpick .sw:disabled:hover { filter: none; }
.cpick .cedit { margin-left: auto; }
.clist .r { grid-template-columns: 1fr auto; align-items: center; }
.clist .cl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.clist .cl input[type=text] { flex: 1 1 80px; min-width: 0; }
.clist .cl input[type=color], .cadd input[type=color] { width: 40px; height: 32px; padding: 0 2px; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; cursor: pointer; flex: 0 0 auto; }
.clist .cl select, .cadd select { width: 4.5em; flex: 0 0 auto; }
.cadd { flex-wrap: wrap; }
html.hs3-mfit .clist .r { grid-template-columns: 1fr; }
/* v1101：色の編集：項目名の行・1 行に収める（説明 5 文字・文字色は切り替えボタン） */
.clist .r { display: grid; grid-template-columns: 46px 6.4em 40px 40px 1fr 28px 28px 28px; gap: 6px; align-items: center; padding: 6px 10px; }
.clist .r.h { padding-top: 6px; padding-bottom: 6px; background: #f4f6f9; font-size: 12px; font-weight: 700; color: #3d4a5c; }
.clist .r.h span { white-space: nowrap; text-align: center; }
.clist .r.h span:nth-child(2) { text-align: left; }
.clist .r .lchip { text-align: center; padding: 1px 0; }
.clist .r input[type=text] { width: 100%; min-width: 0; padding: 0 6px; }
.clist .r input[type=color], .cadd input[type=color] { width: 40px; height: 32px; padding: 0 2px; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; cursor: pointer; }
.clist .r .n { font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }
.clist .r .mv, .clist .r .x { width: 28px; height: 28px; padding: 0; font-size: 10px; }
.clist .r .x { font-size: 16px; }
.clist .r.fx input:disabled { background: #fff; color: var(--text); -webkit-text-fill-color: var(--text); border-color: transparent; }
.clist .r.fx input[type=color]:disabled { cursor: default; border-color: #e3e8ee; }
button.fgt { width: 40px; height: 32px; padding: 0; min-width: 0; background: #fff; color: var(--text); border-color: #cfd6df; font-weight: 700; }
button.fgt:disabled, button.fgt:disabled:hover { background: #fff; color: var(--text); border-color: #e3e8ee; cursor: default; }
.cadd { display: grid; grid-template-columns: 46px 6.4em 40px 40px auto; gap: 6px; align-items: center; margin-top: 10px; padding: 0 11px; }
.cadd .lchip { text-align: center; padding: 1px 0; }
.cadd input[type=text] { width: 100%; min-width: 0; padding: 0 6px; }
.cadd button[type=submit] { justify-self: start; min-width: 0; }
html.hs3-mfit .clist .r { grid-template-columns: 40px 5.6em 36px 36px 1fr 24px 24px 24px; gap: 4px; padding: 6px; }
html.hs3-mfit .clist .r input[type=color], html.hs3-mfit .cadd input[type=color], html.hs3-mfit button.fgt { width: 36px; }
html.hs3-mfit .clist .r .mv, html.hs3-mfit .clist .r .x { width: 24px; height: 28px; }
html.hs3-mfit .clist .r .n { display: none; }
html.hs3-mfit .cadd { grid-template-columns: 40px 5.6em 36px 36px auto; gap: 4px; padding: 0 7px; }
html.hs3-mfit #dlgColors .db { padding: 10px; }
.clist .r button { grid-row: auto; grid-column: auto; align-self: center; }
html.hs3-mfit .clist .r { grid-template-columns: 44px 88px 36px 36px 1fr 24px 24px 24px; }
html.hs3-mfit .cadd { grid-template-columns: 44px 88px 36px 36px auto; }
html.hs3-mfit .clist .r.h { font-size: 11px; }
html.hs3-mfit .clist .r input[type=text], html.hs3-mfit .cadd input[type=text] { padding: 0 4px; }
html.hs3-mfit .clist .r { grid-template-columns: 42px 98px 34px 34px 1fr 24px 24px 24px; gap: 4px; }
html.hs3-mfit .cadd { grid-template-columns: 42px 98px 34px 34px auto; }
html.hs3-mfit .clist .r input[type=color], html.hs3-mfit .cadd input[type=color], html.hs3-mfit button.fgt { width: 34px; }
/* v1103：参照モードは項目名を縦の真ん中に（色なし・「－」はほかの値と同じ文字） */
dialog.kz.view .fr > label.top { align-self: center; padding-top: 0; }
dialog.kz.view .fr .sub { font-size: 14px; color: var(--text); }
dialog.kz.view .fr { min-height: 34px; }
/* v1105：色付きの勤務表表記（幅 2 文字分。長い行は長体。G.hyoki） */
.hk { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 2em; line-height: 1.15; vertical-align: middle; }
.hk .ln { white-space: nowrap; width: max-content; transform-origin: center; }
.lchip:has(.hk) { padding: 2px 6px; display: inline-flex; align-items: center; justify-content: center; }
.cpick .sw { height: auto; min-height: 32px; padding: 2px 8px; }
.cpick .sw.none, .cpick .cedit { height: 32px; }
/* v1113：番組・コーナー管理（番組の行の ▸ で、その下にコーナー） */
table.kz.pc td.tg, table.kz.pc th.tg { width: 1%; white-space: nowrap; padding-right: 0; }
body.reordering table.kz.pc td.tg, body.reordering table.kz.pc th.tg { display: none; }
button.tgl { border: 0; background: transparent; color: #3d4a5c; padding: 2px 6px; min-width: 0; font-size: 13px; }
button.tgl:hover { background: #e8efff; }
td.tg .cnt { display: inline-block; min-width: 1.4em; font-size: 11px; color: var(--muted); text-align: left; }
table.kz.pc tr.open > td { background: #f5f8ff; }
table.kz.pc tr.pz td.nm b { color: #3d4a5c; }
table.kz.pc tr.csub > td { padding: 0 12px 12px 44px; background: #f5f8ff; cursor: default; }
table.kz.pc tbody tr.csub:hover > td { background: #f5f8ff; }
table.kz.cn { min-width: 0; width: 100%; background: #fff; border: 1px solid #dde3ea; border-radius: 6px; border-collapse: separate; }
table.kz.cn thead th { background: #f1f4f8; color: #3d4a5c; font-size: 12px; height: 30px; }
table.kz.cn tbody tr { cursor: pointer; }
table.kz.cn tbody tr.none { cursor: default; }
table.kz.cn td.empty { padding: 10px; font-size: 13px; }
button.cadd2 { margin-top: 8px; padding: 5px 12px; font-size: 12px; }
html.hs3-mfit table.kz.pc tbody tr.csub { display: block; padding: 0 0 10px 18px; background: #f5f8ff; border-bottom: 1px solid #e3e8ee; }
html.hs3-mfit table.kz.pc tbody tr.csub > td { display: block; padding: 0; background: transparent !important; }
html.hs3-mfit table.kz.pc td.tg { grid-column: 3; grid-row: 1; justify-self: end; }
html.hs3-mfit table.kz.pc tr.pz td.nm { grid-column: 2; }
html.hs3-mfit table.kz.pc tr.pz td.ord, html.hs3-mfit table.kz.pc tr.pz td.no { display: none; }
html.hs3-mfit table.kz.cn tbody tr { grid-template-columns: 1fr auto; }
html.hs3-mfit table.kz.cn td.nm { grid-column: 1; }
html.hs3-mfit table.kz.cn td.x { grid-column: 1 / span 2; }
/* v1114：コーナーの表の列の幅を全番組で同じ割合に（長い文字は折り返す。スマホはカードのまま） */
html:not(.hs3-mfit) table.kz.cn { table-layout: fixed; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(2) { width: 22%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(3) { width: 25%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(4) { width: 8%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(5) { width: 14%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(6) { width: 16%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(7) { width: 15%; }
html:not(.hs3-mfit) table.kz.cn td { overflow-wrap: anywhere; }
/* v1115：矢印を大きく（コーナー数は出さない）。並べ替え中はコーナーも ⠿・▲▼ */
button.tgl { font-size: 18px; line-height: 1; width: 36px; height: 34px; padding: 0; border-radius: 6px; }
html.hs3-mfit button.tgl { font-size: 24px; width: 44px; height: 40px; }
td.tg .cnt { display: none; }
html:not(.hs3-mfit) table.kz.cn th.ord { width: 96px; }
body.reordering table.kz.cn tbody tr { cursor: default; }
body.reordering table.kz.pc tr.pz td.tg { display: none; }
html.hs3-mfit table.kz.pc td.tg { width: auto; padding: 0; }
/* v1116：スマホは右上の矢印をやめ、カードの下の ▼ で開き、コーナーの下の ▲ で閉じる */
td.tgb, button.tgu { display: none; }
html.hs3-mfit table.kz.pc td.tg { display: none; }
html.hs3-mfit table.kz.pc td.tgb { display: block; grid-column: 1 / -1; }
html.hs3-mfit table.kz.pc td.tgb:empty { display: none; }
html.hs3-mfit button.tgb, html.hs3-mfit button.tgu { display: block; width: 100%; height: 26px; margin-top: 6px; padding: 0; border: 0; border-top: 1px solid #e8edf3; border-radius: 0; background: transparent; color: #6b7a90; font-size: 12px; line-height: 26px; min-width: 0; }
html.hs3-mfit button.tgu { border-top: 0; border-bottom: 1px solid #e8edf3; margin: 2px 0 0; }
html.hs3-mfit button.tgb:active, html.hs3-mfit button.tgu:active { background: #e8efff; }
/* v1116：スマホの上の段（ボタン 4 つを 1 行。その下にチェック 2 つ） */
html.hs3-mfit .bar { gap: 8px 5px; }
html.hs3-mfit .bar > button { flex: 1 1 auto; min-width: 0; padding: 6px 4px; font-size: clamp(11px, 3.3vw, 14px); white-space: nowrap; }
html.hs3-mfit .bar > .spacer { flex: 0 0 100%; height: 0; }
html.hs3-mfit .bar > label.chk { font-size: clamp(11px, 3.3vw, 13px); margin-right: 8px; }
/* v1117：スマホの ▼・▲ の行を低く */
html.hs3-mfit button.tgb, html.hs3-mfit button.tgu { height: 18px; line-height: 18px; }
html.hs3-mfit button.tgb { margin-top: 4px; }
/* v1133：コーナーの一覧の列は コーナー名・OA曜日・ロケ名称・勤務表表記・担当ディレクター・備考（ロケ曜日（基本）は出さない。なくした列の幅を OA曜日に） */
html:not(.hs3-mfit) table.kz.cn th:nth-child(3) { width: 14%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(4) { width: 25%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(5) { width: 8%; }
/* v1134：コーナーの一覧の列は コーナー名・OA曜日・ロケ名称・担当ディレクター・勤務表表記・技術スタッフ（備考なし） */
html:not(.hs3-mfit) table.kz.cn th:nth-child(2) { width: 20%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(3) { width: 12%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(4) { width: 24%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(5) { width: 18%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(6) { width: 8%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(7) { width: 18%; }
table.kz.cn td.tech { white-space: nowrap; font-variant-numeric: tabular-nums; }
html.hs3-mfit table.kz.cn td.tech { white-space: normal; }
/* 小画面：技術スタッフ（カメラ・音声・アシスタント・その他の人数 0〜5） */
.techsel { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 22px; }
.techsel .tq { display: grid; grid-template-columns: 6.5em 64px; align-items: center; font-size: 13px; color: #3d4a5c; }
html.hs3-mfit .techsel { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
html.hs3-mfit .techsel .tq { grid-template-columns: 1fr 64px; }
/* v1135：コーナーの一覧の列 コーナー名・OA曜日・ロケ名称・担当ディレクター・ロケ曜日（基本）・技術スタッフ・勤務表表記 */
html:not(.hs3-mfit) table.kz.cn th:nth-child(2) { width: 20%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(3) { width: 11%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(4) { width: 18%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(5) { width: 16%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(6) { width: 11%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(7) { width: 16%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(8) { width: 8%; }
/* 技術スタッフは 1 組（C:1 など）ずつで折り返す。列からはみ出さない */
table.kz.cn td.tech { white-space: normal; }
.tp { display: inline-block; white-space: nowrap; margin-right: .5em; font-variant-numeric: tabular-nums; }
/* v1136：コーナー名の幅を 24% に（18 文字くらいが 1 行に入る）。OA曜日・ロケ名称・担当ディレクター・ロケ曜日（基本）を 1% ずつ詰める */
html:not(.hs3-mfit) table.kz.cn th:nth-child(2) { width: 24%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(3) { width: 10%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(4) { width: 17%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(5) { width: 15%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(6) { width: 10%; }
/* v1137：OA曜日・ロケ曜日（基本）は 11% に戻し（曜日は「月〜金」とまとめて 1 行に）、技術スタッフを 14% に */
html:not(.hs3-mfit) table.kz.cn th:nth-child(3) { width: 11%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(6) { width: 11%; }
html:not(.hs3-mfit) table.kz.cn th:nth-child(7) { width: 14%; }
/* v1140：技術スタッフ（一覧）は C・A・CA・他の位置をそろえる。0 の項目は場所だけ空ける */
table.kz.cn td.tech .tp { margin-right: 0; }
.tp.tq-tech_c, .tp.tq-tech_a { min-width: 2.5em; }
.tp.tq-tech_ca { min-width: 3.2em; }
.tp.tq-tech_o { min-width: 2.8em; }
.tp.z { visibility: hidden; }
/* v1140：上の部分を固定（スクロールは #sheet の中だけ。高さは bangumi.html の fitH）。一覧の見出しの行は枠の上に残す（コーナーの表の見出しは固定しない） */
body.kz-bangumi main { padding-bottom: 0; }
body.kz-bangumi .sheet { overflow: auto; overscroll-behavior: contain; }
body.kz-bangumi .tblwrap { overflow: visible; }
body.kz-bangumi table.kz.pc > thead > tr > th { position: sticky; top: 0; z-index: 3; }
html.hs3-mfit body.kz-bangumi .sheet { -webkit-overflow-scrolling: touch; }

/* v1171：OA時間の「不定期」（チェックすると時間は入力できない。参照中・一覧は「不定期」） */
.pcard .oa-h { display: flex; align-items: center; gap: 12px; }
.pcard .oa-h .irr { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; color: var(--text, #1f2933); font-size: 12.5px; cursor: pointer; }
.pcard .oa-h .irr input { margin: 0; }
.oa.irr .r input, .oa.irr .r > span:not(.dw) { opacity: .45; }
.pcard.pv .oai { font-size: 13px; }
/* v1314（240）：コーナーの業務委託（チェック・委託先・手入力） */
.itkw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .itkw input[type=checkbox] { margin: 0 4px 0 0; } .itkw select { width: 220px; } .itkw input[type=text] { width: 180px; }
html.hs3-mfit .itkw select, html.hs3-mfit .itkw input[type=text] { width: auto; flex: 1 1 140px; min-width: 0; }
.itktag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #1e4f91; background: #e3effd; border: 1px solid #a9c7ef; border-radius: 8px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
/* v1390（536・537）：ピンクの人（html.tp-pink。ライト・ダークとも）は、飾りの薄い青（札・行・枠）と紺・青の文字をグレーに。ダークは dark.js がこのグレーを暗い色に置き換える。完全に取り除くときはこのまとまりを消す */
html.tp-pink:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5):not(#_p6) table.kz.pc tr.open > td { background: #f4f4f4 !important; }
html.tp-pink:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5):not(#_p6) table.kz.pc tr.csub > td { background: #f4f4f4 !important; }
html.tp-pink:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5):not(#_p6) table.kz.pc tbody tr.csub:hover > td { background: #f4f4f4 !important; }
html.tp-pink:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5):not(#_p6).hs3-mfit table.kz.pc tbody tr.csub { background: #f4f4f4 !important; }
