/* v1246：ロケ予定表・ロケ担当表・ロケ伝票・業務委託先管理（loke/）。土台は kizai/kizai.css（見出し・ボタン・小画面・札） */
.bar .ym { font-size: 16px; font-weight: 700; margin: 0 6px; white-space: nowrap; }
.bar .nav { display: inline-flex; align-items: center; gap: 4px; }
.stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3d4a5c; }
.stat select { height: 30px; font-size: 13px; }
/* v1249：ステータスは勤務表と同じ形（色付きの札。押すと小画面で選ぶ） */
.stbadge { font-size: 12px; font-weight: 700; border-radius: 12px; padding: 3px 12px; border: 1px solid #c9d2de; background: #eef1f5; color: #3d4a5c; white-space: nowrap; }
.stbadge:hover { filter: brightness(.96); background: #eef1f5; border-color: #c9d2de; }
.stbadge.kakutei, .stbadge.kakutei:hover { background: #e8efff; color: #1e40af; border-color: #93b4f5; }
.stbadge.gijutsu, .stbadge.gijutsu:hover { background: #e6f4ea; color: #1e6b36; border-color: #9fd3b1; }
.stbadge:disabled { cursor: default; opacity: 1; filter: none; }
dialog.kz.st { width: min(420px, calc(100vw - 24px)); }
dialog.kz.st .opt { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; white-space: normal; background: #fff; color: #1f2933; border-color: #cfd6df; }
dialog.kz.st .opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
dialog.kz.st .opt.on { background: #eef3ff; border-color: #1d4ed8; box-shadow: inset 0 0 0 1px #1d4ed8; }
dialog.kz.st .stlog { margin-top: 6px; font-size: 12px; color: var(--muted); max-height: 140px; overflow: auto; border-top: 1px solid var(--line); padding-top: 6px; }
dialog.kz.st .stlog b { color: #3d4a5c; font-weight: 600; }
.out-wrap { position: relative; display: inline-block; }
.out-menu { position: fixed; z-index: 60; background: #fff; border: 1px solid #cfd6df; border-radius: 6px; box-shadow: 0 8px 24px rgba(15,31,58,.18); padding: 4px; display: flex; flex-direction: column; min-width: 170px; }
.out-menu button { border: 0; background: transparent; color: #1f2933; text-align: left; font-weight: 500; padding: 8px 12px; }
.out-menu button:hover { background: #eef3ff; }
/* ロケのカード */
.lc { display: block; position: relative; font-size: 12.5px; line-height: 1.35; padding: 3px 6px; margin: 2px 0; border-radius: 4px; background: var(--rv-bg, #e6f4ea); border: 1px solid var(--rv-line, #b7dfc3); color: #1f2933; cursor: pointer; overflow-wrap: anywhere; }
.lc:hover { filter: brightness(.96); }
.lc.itk { background: #e3effd; border-color: #a9c7ef; }   /* v1314（243）：業務委託ロケは薄い青 */
.itk input[type=checkbox] { flex: none; margin: 0 6px 0 0; } .itk select { width: 220px; flex: none; } .itk input[type=text] { width: 180px; flex: none; }
html.hs3-mfit .itk select, html.hs3-mfit .itk input[type=text] { width: auto; flex: 1 1 140px; min-width: 0; }
.lc.ky { opacity: .55; background: #f1f3f6; border-color: #d5dde8; }   /* v1311（238）：ふつうのカードはロケ機材予約の予約のカードと同じ緑。休止はグレーのまま */
.lc.ky .t { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.lc .tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; background: #6b7785; border-radius: 8px; padding: 0 6px; margin-right: 4px; vertical-align: 1px; }
.lc .as { display: block; font-size: 11px; color: #1e40af; margin-top: 1px; }
.lc .nd { display: block; font-size: 11px; color: #9a5b00; margin-top: 1px; }
.lc.dragging { opacity: .35; }
.lc.drop-before { box-shadow: 0 -3px 0 #1d4ed8; }
.lc.pick { outline: 2px solid #1d4ed8; outline-offset: 1px; }
.dropok { background: #eef3ff !important; }
/* ロケ予定表（PC・タブレット）：1 か月のカレンダー */
.tbdbox { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-height: 40px; }
.tbdbox > b { font-size: 13px; color: #3d4a5c; margin-right: 6px; }
.tbdbox .lc { display: inline-block; margin: 0; }
.tbdbox .none { color: var(--muted); font-size: 12px; }
.calwrap { background: var(--panel); border: 1px solid #cfd6df; border-radius: 6px; overflow: hidden; }
table.cal7 { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
table.cal7 th { background: #fff; color: #3d4a5c; font-size: 13px; height: 32px; border-bottom: 2px solid #4b5563; }
table.cal7 th.sat { color: #1d4ed8; } table.cal7 th.sun { color: #c62828; }
/* v1365（444）：曜日の行・日付の行を濃く（案1）・曜日の間に区切り線。月の外のマス（.out）の日付の行は塗らない */
table.cal7 th { background: #dfe6ef; } table.cal7 th + th { border-left: 1px solid #b8c4d3; }
table.cal7 tr.dh td:not(.out) { background: #eef2f7; border-bottom: 1px solid #cfd6df; }
table.cal7 td { border-right: 1px solid #b8c2cf; vertical-align: top; padding: 0 4px; }
table.cal7 td:last-child { border-right: 0; }
table.cal7 tr.dh td { padding-top: 4px; border-top: 2px solid #9aa5b4; }
table.cal7 tbody:first-of-type tr.dh td { border-top: 0; }
table.cal7 .dn { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #3d4a5c; }
table.cal7 .dn .hol { font-size: 11px; font-weight: 500; color: #c62828; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.cal7 .sun .dn { color: #c62828; } table.cal7 .sat .dn { color: #1d4ed8; }
table.cal7 .dn .add { margin-left: auto; padding: 0 7px; font-size: 13px; line-height: 18px; height: 20px; visibility: hidden; }
table.cal7 td:hover .dn .add { visibility: visible; }
@media (hover: none) { table.cal7 .dn .add { visibility: visible; } }   /* v1263：指で操作する端末は「＋」を常に出す（前の html.hs3-touch はどこでも付いていなかった） */
/* v1396（549）：今日はマスの色を変えず、日付に ● を付ける */
table.cal7 td.today .dn::before { content: "●"; color: #E4007F; font-size: 10px; margin-right: 2px; }
table.cal7 td.out { background: #f4f6f9; }
table.cal7 tr.cd td { height: 46px; padding-bottom: 4px; border-top: 1px solid #b8c2cf; }   /* v1316（254）：日付行・ロケ行・LiveU行・備考行の間と列の間は同じ実線 */
table.cal7 tr.fx td { border-top: 1px solid #b8c2cf; padding-top: 2px; padding-bottom: 2px; }
table.cal7 tr.fx td { height: 34px; }   /* v1369（473）：LiveU中継が 1 件もない週も、1 行分の高さ（カード 1 枚分）を取る */
/* v1311（238）：固定行のカードもほかのカードと同じ緑（前は薄い緑がかったグレー） */
table.cal7 tr.nt td { border-top: 1px solid #b8c2cf; font-size: 12px; color: #6b4e00; padding-top: 2px; padding-bottom: 4px; min-height: 20px; height: 22px; }
table.cal7 tr.nt td.ed { cursor: pointer; }
/* v1367（463）：備考欄はマウスを置いても色を変えない（薄い「備考」と指のカーソルだけ） */
/* v1366（458・459）：何も入っていない欄にマウスを置くと薄く「ロケ」「Live-U中継」「備考」（編集できる人だけ）。文字は重ねて出し、欄の高さは変えない */
table.cal7 tr.cd td, table.cal7 tr.fx td, table.cal7 tr.nt td { position: relative; }
table.cal7 tr.cd td.eh:not(:has(.lc)):hover::before, table.cal7 tr.fx td.eh:not(:has(.lc)):hover::before, table.cal7 tr.nt td.ed:empty:hover::before { position: absolute; left: 6px; top: 3px; font-size: 12px; line-height: 16px; color: #c4cad3; pointer-events: none; }
table.cal7 tr.cd td.eh:not(:has(.lc)):hover::before { content: "ロケ"; }
table.cal7 tr.fx td.eh:not(:has(.lc)):hover::before { content: "Live-U中継"; }
table.cal7 tr.nt td.ed:empty:hover::before { content: "備考"; }
/* スマホ：2〜3 日の表示・左右のスワイプ */
.pdays { display: grid; gap: 6px; touch-action: pan-y; }
.pday { background: var(--panel); border: 1px solid #cfd6df; border-radius: 6px; min-width: 0; padding: 0 4px 6px; }
.pday .pdh { font-size: 13px; font-weight: 700; padding: 6px 2px 4px; border-bottom: 2px solid #4b5563; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.pday.sun .pdh { color: #c62828; } .pday.sat .pdh { color: #1d4ed8; }
/* v1396（549）：今日はカードの色を変えない（上の日付のボタンに ●） */
.pday .pdh .add { margin-left: auto; padding: 0 8px; height: 24px; }
.pday .sep { border-top: 1px dashed #dde3ea; margin: 4px 0 2px; }
.pday .pnt { font-size: 12px; color: #6b4e00; border-top: 1px dashed #dde3ea; margin-top: 4px; padding-top: 3px; min-height: 18px; }
.pday .pnt.ed:empty::before { content: "備考"; color: #c4cad3; }
html.hs3-mfit .lc { font-size: 12px; padding: 3px 4px; }
/* 小画面（ロケ） */
dialog.kz.lk { width: min(680px, calc(100vw - 24px)); }
dialog.kz.lk .fr { grid-template-columns: 8.5em 1fr; }
dialog.kz.lk .vv { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; padding-top: 1px; }
dialog.kz.lk .fr > label.top { padding-top: 2px; }
dialog.kz.lk #lkEdit .fr > label.top { padding-top: 8px; }
dialog.kz.lk .dt { align-items: center; }
dialog.kz.lk .dt select { flex: 0 1 auto; width: auto; min-width: 180px; max-width: 100%; }
dialog.kz.lk .dt input[type=text] { flex: 1 1 160px; width: auto; }
dialog.kz.lk input.hm { flex: 0 0 72px !important; width: 72px !important; }
dialog.kz.lk .lbl2 { font-weight: 700; font-size: 13px; color: #3d4a5c; margin-left: 8px; }
dialog.kz.lk label.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; margin-right: 10px; cursor: pointer; }
dialog.kz.lk .need { display: flex; flex-direction: column; gap: 4px; }
dialog.kz.lk .need .nr { display: flex; align-items: center; gap: 8px; }
dialog.kz.lk .need .rl { width: 3.5em; font-weight: 700; font-size: 13px; color: #3d4a5c; }
dialog.kz.lk .need .o { font-size: 13px; color: #3d4a5c; margin-left: 6px; }
dialog.kz.lk .need select { width: 60px; height: 30px; }
dialog.kz.lk .oa { margin-bottom: 4px; }
dialog.kz.lk .oa .x { border: 0; background: transparent; color: #7b8aa6; padding: 0 6px; font-size: 16px; }
dialog.kz.lk .pl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 52px 52px 64px 22px; gap: 4px; margin-bottom: 4px; align-items: center; }   /* v1250：行ごとに列の幅がずれないよう、ボタンの列は固定の幅 */
dialog.kz.lk .pl > button { width: 100%; padding: 4px 0; }
dialog.kz.lk .pl > button.x { width: auto; }
/* v1250：未定で入力できない OA日は「年/月/日」を出さない */
dialog.kz.lk .oa input[type=date]:disabled { color: transparent; }
dialog.kz.lk .oa input[type=date]:disabled::-webkit-datetime-edit, dialog.kz.lk .oa input[type=date]:disabled::-webkit-datetime-edit-fields-wrapper { visibility: hidden; }
dialog.kz.lk .pl input { width: 100%; min-width: 0; }
dialog.kz.lk .pl button { padding: 4px 8px; }
dialog.kz.lk .chips { margin-bottom: 4px; }
dialog.kz.lk .chips:empty { display: none; }
dialog.kz.lk .files .f { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
dialog.kz.lk .files .f a { color: #1d4ed8; overflow-wrap: anywhere; }
dialog.kz.lk .files .x, dialog.kz.lk .pl .x { border: 0; background: transparent; color: #7b8aa6; padding: 0 6px; font-size: 16px; }
html.hs3-mfit dialog.kz.lk .fr { grid-template-columns: 1fr; }
html.hs3-mfit dialog.kz.lk .pl { grid-template-columns: 52px 52px 64px 1fr; }
html.hs3-mfit dialog.kz.lk .pl input[data-k=name], html.hs3-mfit dialog.kz.lk .pl input[data-k=addr] { grid-column: 1 / -1; }
/* 設定の小画面（固定行・定期ロケ・枠・Excel取込） */
dialog.kz.wide { width: min(760px, calc(100vw - 24px)); }
.rows .r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid #edf0f4; }
.rows .r input[type=text] { flex: 1 1 140px; min-width: 0; }
.rows .r input[type=date] { width: 140px; }
.rows .r .mv { padding: 2px 8px; }
.rows .r .x { border: 0; background: transparent; color: #7b8aa6; font-size: 16px; padding: 0 6px; }
.rows .r.line { border-bottom: 3px solid #4b5563; }
.dows { display: inline-flex; gap: 2px; }
.dows button { padding: 3px 6px; font-size: 12px; background: #fff; color: #3d4a5c; border-color: #cfd6df; min-width: 26px; }
.dows button.on { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.replist .r { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.replist .r .sub { grid-column: 1; }
.replist .r .bs { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 6px; }
.imp table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp th, .imp td { border-bottom: 1px solid #edf0f4; padding: 4px 6px; text-align: left; vertical-align: middle; }
.imp th { background: #f4f6f9; font-size: 12px; }
.imp td select { max-width: 260px; height: 30px; font-size: 13px; }
.imp .grp { font-weight: 700; margin: 14px 0 4px; }
.imp .old { color: #9aa4b1; text-decoration: line-through; }
/* ロケ担当表（週） */
table.tw { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 900px; }
table.tw th, table.tw td { border-right: 1px solid #e3e8ee; border-bottom: 1px solid #e3e8ee; vertical-align: top; padding: 3px 4px; }
table.tw thead th { background: #fff; color: #3d4a5c; font-size: 13px; height: 34px; border-bottom: 2px solid #4b5563; vertical-align: middle; position: sticky; top: 0; z-index: 2; }
table.tw thead th.sat { color: #1d4ed8; } table.tw thead th.sun { color: #c62828; }
table.tw th.wk, table.tw td.wk { width: 130px; background: #fff; text-align: left; font-size: 13px; font-weight: 700; color: #3d4a5c; position: sticky; left: 0; z-index: 1; }
table.tw thead th.wk { z-index: 3; }
table.tw thead th.today::before { content: "●"; color: #E4007F; font-size: 10px; margin-right: 2px; vertical-align: 1px; }   /* v1396（549）：今日は列の色を変えず、見出しに ● */
table.tw tr.line td { border-bottom: 3px solid #4b5563; }
table.tw td.c { height: 52px; }
.twwrap { overflow: auto; background: var(--panel); border: 1px solid #cfd6df; border-radius: 6px; }
.drawer { position: sticky; bottom: 0; z-index: 30; background: #fff; border: 1px solid #cfd6df; border-radius: 8px 8px 0 0; box-shadow: 0 -6px 18px rgba(15,31,58,.12); margin-top: 10px; }
.drawer .dhd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.drawer .dbd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 8px 10px; max-height: 150px; overflow: auto; }
.drawer .dbd .col > .dl { font-size: 11px; color: #6b7785; font-weight: 700; margin-bottom: 2px; }
.drawer.closed .dbd { display: none; }
html.hs3-mfit .drawer .dbd { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); max-height: 30vh; }
.pwk { font-size: 11px; color: #6b7785; font-weight: 700; margin-top: 6px; }
/* 割り振りの小画面 */
.asg .role { border-top: 1px solid #edf0f4; padding: 8px 0; }
.asg .role .rh { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.asg .role .rh select { width: 56px; height: 28px; }
.asg .slot { display: flex; gap: 6px; margin-bottom: 4px; }
.asg .slot select { flex: 1 1 auto; min-width: 0; }
.asg .slot input { flex: 1 1 120px; min-width: 0; }
.warn { background: #fff7e0; border: 1px solid #f5d27a; color: #6b4e00; border-radius: 6px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; white-space: pre-wrap; }
/* 業務委託先管理 */
.sw { display: inline-block; min-width: 54px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 8px; border: 1px solid rgba(0,0,0,.08); }
.colors { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.colors input[type=color] { width: 44px; height: 30px; padding: 0 2px; border: 1px solid #cfd6df; border-radius: 4px; background: #fff; }
/* ロケ伝票（ロケ取材連絡表）。v1258：「ロケ取材連絡表 - 定型.docx」の形（A4 縦・寸法は Word の表と同じ・書体は端末の丸ゴシック） */
.denw { overflow: auto; padding: 4px 14px 16px; box-sizing: border-box; }
.den { box-sizing: border-box; background: #fff; width: 210mm; height: 297mm; margin: 0 auto; padding: 11mm 14.5mm 0; border: 1px solid #cfd6df; box-shadow: 0 1px 4px rgba(0,0,0,.08); color: #000;
  font-family: "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", sans-serif; font-size: 12pt; line-height: 1.25; }
.den .t1 { display: flex; align-items: baseline; justify-content: space-between; }
.den .t1 .ttl { font-size: 28pt; line-height: 1.2; }
.den .t1 .dt { font-size: 12pt; padding-right: 4mm; }
.den .t2 { margin-top: 5mm; font-size: 20pt; }
.den .t2 .ul { display: inline-flex; align-items: baseline; gap: 5mm; min-width: 140mm; border-bottom: 1px solid #000; padding-bottom: 1px; }
.den .t2 .pn { font-weight: 700; min-width: 3em; }
.den .b1, .den .b2 { display: grid; grid-template-columns: 88.7mm 4.7mm 87.4mm; }
.den .b1 { margin-top: 8mm; height: 63.3mm; }
.den .bx { box-sizing: border-box; border: 1px solid #000; overflow: hidden; }
.den .b1 .bx { display: flex; flex-direction: column; justify-content: space-evenly; padding: 1mm 2mm 3mm; }
.den .r { display: flex; align-items: flex-end; gap: .5em; border-bottom: 1px solid #000; height: 8.2mm; box-sizing: border-box; }
.den .r .l { flex: 0 0 auto; font-size: 14pt; line-height: 1.25; }
.den .r .v { flex: 1 1 auto; min-width: 0; max-height: 100%; overflow: hidden; font-size: 14pt; line-height: 1.2; white-space: pre-wrap; overflow-wrap: anywhere; }
.den .r .v.car { overflow: visible; }
.den .r .v.car .o { border: 1px solid #000; border-radius: 50%; padding: 0 3px; }
.den .hd { display: grid; grid-template-columns: 88.7mm 4.7mm 87.4mm; margin-top: 7mm; margin-bottom: 1.5mm; font-size: 12pt; text-align: center; }
.den .b2 { height: 129.5mm; }
.den .b2 .sch, .den .b2 .rc { height: 129.5mm; }
.den .b2 .rc { display: flex; flex-direction: column; }
.den .b2 .cont { height: 77.4mm; border-bottom: 0; }
.den .b2 .eq { height: 52.1mm; display: flex; flex-direction: column; padding: 1mm 2mm 1.5mm; }
.den .b2 .eq .r { height: 9mm; flex: 0 0 auto; }
.den .b2 .eq .r .l, .den .b2 .eq .r .v { font-size: 12pt; }
.den .tx { box-sizing: border-box; height: 100%; padding: 2mm 2.5mm; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12pt; line-height: 1.35; }
.den .ver { text-align: right; font-size: 11pt; margin-top: 1mm; padding-right: 4mm; }
.den [contenteditable=true] { background: #fffde7; outline: 1px dashed #c9b400; outline-offset: -1px; min-height: 1.2em; }
/* スマホ：枠を縦に並べる（印刷・PDF は A4 の形） */
.den.stack { width: auto; height: auto; padding: 12px; font-size: 14px; }
.den.stack .t1 .ttl { font-size: 20px; }
.den.stack .t1 .dt, .den.stack .ver { font-size: 12px; padding-right: 0; }
.den.stack .t2 { font-size: 16px; margin-top: 8px; }
.den.stack .t2 .ul { min-width: 0; flex-wrap: wrap; gap: 4px 10px; }
.den.stack .b1, .den.stack .b2, .den.stack .hd { display: block; height: auto; }
.den.stack .gap { display: none; }
.den.stack .b1 { margin-top: 12px; }
.den.stack .bx { height: auto !important; padding: 4px 8px 8px; }
.den.stack .b1 .bx + .gap + .bx, .den.stack .b2 .rc { margin-top: 8px; }
.den.stack .r { height: auto; min-height: 30px; padding-top: 6px; }
.den.stack .r .l, .den.stack .r .v, .den.stack .b2 .eq .r .l, .den.stack .b2 .eq .r .v { font-size: 14px; }
.den.stack .r .v { max-height: none; }
.den.stack .hd { display: none; }
.den.stack .b2 .sch::before, .den.stack .b2 .cont::before { display: block; font-size: 13px; font-weight: 700; color: #3d4a5c; padding: 2px 0 4px; }
.den.stack .b2 .sch::before { content: "スケジュール"; }
.den.stack .b2 .cont::before { content: "取材内容"; }
.den.stack .b2 .sch, .den.stack .b2 .rc { height: auto; }
.den.stack .b2 .cont { border-bottom: 1px solid #000; min-height: 60px; }
.den.stack .b2 .eq { margin-top: 8px; }
.den.stack .tx { height: auto; padding: 0; font-size: 14px; min-height: 40px; }
@page { size: A4 portrait; margin: 0; }
@media print {
  header, .bar, .noprint, .toast { display: none !important; }
  body { background: #fff; margin: 0; } main { padding: 0 !important; margin: 0 !important; }
  .denw { padding: 0; overflow: visible; }
  .den { border: 0; box-shadow: none; zoom: 1 !important; margin: 0; }
  .den [contenteditable] { background: transparent; outline: 0; }
}
/* v1250：割り振りの小画面の「うち発注」・発注の欄 */
.asg .role .rh .sub { font-weight: 400; }
.asg .slot .ot { flex: 0 0 auto; align-self: center; font-size: 11px; font-weight: 700; color: #9a5b00; background: #fff7e0; border: 1px solid #f5d27a; border-radius: 8px; padding: 1px 6px; }
/* v1251：複数日のロケの期間・複数日のチェック・担当ディレクターの行・番組とコーナー名の選択欄の幅・固定行の設定を 1 行に */
.lc .rg { display: inline-block; font-size: 10.5px; font-weight: 700; color: #1e40af; background: #e8efff; border-radius: 8px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
dialog.kz.lk label.chk.off { opacity: .45; }
dialog.kz.lk #lEndW { display: inline-flex; align-items: center; gap: 6px; }
dialog.kz.lk #lEndW[hidden] { display: none; }
dialog.kz.lk .dirrow input[type=text] { flex: 1 1 140px; }
dialog.kz.lk .dirrow .lbl2 { margin-left: 4px; }
html:not(.hs3-mfit) dialog.kz.lk #lProg, html:not(.hs3-mfit) dialog.kz.lk #lCorner { flex: 0 0 260px; width: 260px; min-width: 0; max-width: 260px; }
html.hs3-mfit dialog.kz.lk #lProg, html.hs3-mfit dialog.kz.lk #lCorner { flex: 1 1 100%; width: 100%; min-width: 0; }
html.hs3-mfit dialog.kz.lk .dirrow input[type=text] { flex: 1 1 100%; }
html.hs3-mfit dialog.kz.lk .dirrow .lbl2 { margin-left: 0; }
dialog.kz.wide#dlgFixed { width: min(880px, calc(100vw - 24px)); }
html:not(.hs3-mfit) #fxRows .r { display: grid; grid-template-columns: minmax(100px, 1fr) auto 140px auto 140px auto auto auto; gap: 6px; flex-wrap: nowrap; }
html:not(.hs3-mfit) #fxRows .r input[type=date] { width: 140px; }
html.hs3-mfit #fxRows .r input[type=text] { flex: 1 1 100%; }
/* v1252：ロケ日の 2 行・担当ディレクターと TEL の幅・出演者の札と「＋」・取材先（地図のアイコンは住所の欄の右端）・「＋」の丸いボタン・カードの右クリックのメニュー */
dialog.kz.lk #lDayOpt { margin-bottom: 4px; }
dialog.kz.lk .dayin input[type=date]:disabled { color: transparent; background: #f1f3f6; }
dialog.kz.lk .dayin input[type=date]:disabled::-webkit-datetime-edit, dialog.kz.lk .dayin input[type=date]:disabled::-webkit-datetime-edit-fields-wrapper { visibility: hidden; }
html:not(.hs3-mfit) dialog.kz.lk .dirrow input[type=text] { flex: 0 0 135px; width: 135px; }
dialog.kz.lk .castw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 34px; }
dialog.kz.lk .castw .chips { margin: 0; }
dialog.kz.lk button.plus { width: 30px; height: 30px; min-width: 0; padding: 0; border-radius: 50%; font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
dialog.kz.lk button.plus[hidden] { display: none; }
dialog.kz.lk .plr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 30px 64px 22px; gap: 4px; margin-bottom: 4px; align-items: center; }
dialog.kz.lk .plr input { width: 100%; min-width: 0; }
dialog.kz.lk .plr > button[data-pmst] { padding: 4px 0; width: 100%; }
dialog.kz.lk .plr .x { border: 0; background: transparent; color: #7b8aa6; padding: 0 6px; font-size: 16px; }
dialog.kz.lk .addrw { position: relative; display: block; min-width: 0; }
dialog.kz.lk .addrw input { padding-right: 32px; }
dialog.kz.lk .addrw .mapi { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #1d4ed8; display: inline-flex; align-items: center; justify-content: center; }
dialog.kz.lk .addrw .mapi:hover { background: #eef3ff; border-radius: 4px; }
html.hs3-mfit dialog.kz.lk .plr { grid-template-columns: 1fr 30px 64px 22px; }
html.hs3-mfit dialog.kz.lk .plr input[data-k=name] { grid-column: 1 / -1; }
.out-menu.lkcm { position: fixed; z-index: 1000; }
/* v1253：ロケ日の「未定」を離す・項目名の横の選ぶアイコン・モダンな「＋」・ロケ時間・技術スタッフ 2 列（PC）・スケジュールの行 */
dialog.kz.lk #lDayOpt label.chk:last-child { margin-left: 22px; }
dialog.kz.lk .fr > label.pk { display: flex; align-items: center; gap: 4px; }
dialog.kz.lk .fr > label.pk.top { align-items: flex-start; }
dialog.kz.lk button.pick { width: 24px; height: 24px; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: #eef3ff; color: #1d4ed8; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: -2px; }
dialog.kz.lk button.pick:hover { background: #1d4ed8; color: #fff; }
dialog.kz.lk .castw { min-height: 30px; }
dialog.kz.lk button.plus { width: 28px; height: 28px; border: 0; background: #eef3ff; color: #1d4ed8; box-shadow: none; transition: background .12s, color .12s; }
dialog.kz.lk button.plus:hover:not(:disabled) { background: #1d4ed8; color: #fff; }
dialog.kz.lk button.plus:disabled, dialog.kz.lk button.plus:disabled:hover { background: #f1f3f6; color: #c4cad3; border: 0; }
dialog.kz.lk .plr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 28px 22px; }
html.hs3-mfit dialog.kz.lk .plr { grid-template-columns: 1fr 28px 22px; }
dialog.kz.lk .lbl3 { font-size: 13px; color: #3d4a5c; }
html:not(.hs3-mfit) dialog.kz.lk .need { display: grid; grid-template-columns: auto auto; column-gap: 28px; row-gap: 4px; justify-content: start; }
dialog.kz.lk .schr { display: grid; grid-template-columns: 72px minmax(0, 1fr) 22px; gap: 4px; margin-bottom: 4px; align-items: center; }
dialog.kz.lk .schr input { width: 100%; min-width: 0; }
dialog.kz.lk .schr .x { border: 0; background: transparent; color: #7b8aa6; padding: 0 6px; font-size: 16px; }
dialog.kz.lk button.addt { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #eef3ff; color: #1d4ed8; border-radius: 16px; padding: 5px 12px 5px 10px; font-size: 12.5px; }
dialog.kz.lk button.addt:hover { background: #1d4ed8; color: #fff; }
/* v1253：項目名にアイコンが付いても折り返さない・技術スタッフの 2 列で「うち発注」を折り返さない */
dialog.kz.lk { width: min(740px, calc(100vw - 24px)); }
html:not(.hs3-mfit) dialog.kz.lk .fr { grid-template-columns: 10em 1fr; }
dialog.kz.lk .fr > label.pk { white-space: nowrap; }
dialog.kz.lk .need .o { white-space: nowrap; margin-left: 2px; }
dialog.kz.lk .need .rl { width: 3.4em; white-space: nowrap; }
dialog.kz.lk .need select { width: 56px; }
html:not(.hs3-mfit) dialog.kz.lk .need { column-gap: 24px; }
/* v1254：ロケ日の項目名を「単日・複数日」の高さに・出演者の入力欄（札と名前を打つ場所を 1 つの枠に） */
dialog.kz.lk #lkEdit .fr > label.dayl { padding-top: 2px; }
dialog.kz.lk .castw { border: 1px solid #cfd6df; border-radius: 4px; background: #fff; padding: 3px 6px; min-height: 34px; cursor: text; gap: 4px; }
dialog.kz.lk .castw:focus-within { border-color: #93b4f5; }
dialog.kz.lk .castw .chip { padding: 1px 2px 1px 8px; font-size: 12.5px; }
dialog.kz.lk .castw input#lCastIn { flex: 1 1 120px; min-width: 80px; border: 0; height: 26px; padding: 0 2px; background: transparent; }
dialog.kz.lk .castw input#lCastIn:focus { outline: none; }
/* v1255：取材内容（太字・赤字）・ワイヤレス〇波・一括業務委託の未定 */
dialog.kz.lk .rte { min-height: 70px; max-height: 240px; overflow: auto; border: 1px solid #cfd6df; border-radius: 4px; padding: 6px 8px; font-size: 14px; line-height: 1.55; background: #fff; overflow-wrap: anywhere; }
dialog.kz.lk .rte:focus { outline: none; border-color: #93b4f5; }
dialog.kz.lk .rtebar { display: flex; gap: 4px; margin-top: 4px; }
dialog.kz.lk .rtebar button { width: 30px; height: 26px; padding: 0; font-size: 13px; background: #fff; border-color: #cfd6df; color: #1f2933; }
dialog.kz.lk .rtebar button.red { color: #d00000; font-weight: 700; }
dialog.kz.lk .rtebar button:hover { background: #eef3ff; }
.red, .rte font[color="#d00000"] { color: #d00000; }
dialog.kz.lk .dt input.num[type=text] { width: 48px; flex: 0 0 48px; text-align: right; }
dialog.kz.lk .lbl3.wl { margin-left: 18px; }
dialog.kz.lk .dt.wloff .lbl3, dialog.kz.lk .dt.wloff input.num { opacity: .45; }
.lc .vtbd { display: inline-block; font-size: 10.5px; font-weight: 700; color: #9a5b00; background: #fff7e0; border: 1px solid #f5d27a; border-radius: 8px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.den .red { color: #d00000; }
/* v1256：一括業務委託の行の高さを固定・取材内容の書式（下線・色の塗り・大きさ） */
dialog.kz.lk .dt.venrow { min-height: 34px; }
dialog.kz.lk .rtebar { align-items: center; }
dialog.kz.lk .rtebar .sep { width: 1px; height: 18px; background: #dde3ea; margin: 0 4px; }
dialog.kz.lk .rtebar button.on { border-color: #1d4ed8; background: #eef3ff; box-shadow: inset 0 0 0 1px #1d4ed8; }
dialog.kz.lk .rtebar button.clr { width: 30px; min-width: 0; }
dialog.kz.lk .rtebar button.clr i { display: block; width: 14px; height: 14px; border-radius: 3px; margin: 0 auto; }
dialog.kz.lk .rtebar button.sz { font-weight: 700; color: #1f2933; }
dialog.kz.lk .rtebar button.sz span { line-height: 1; }
.big, .rte font[size="5"] { font-size: 1.3em; }
.den .big { font-size: 1.3em; }

/* v1257：機材予約のカメラの種別・LiveU、備考（追加機材等） */
dialog.kz.lk .dt select#lCam { min-width: 0; width: 76px; height: 30px; flex: 0 0 auto; }
dialog.kz.lk .dt .kzg { display: inline-flex; align-items: center; gap: 6px; }
dialog.kz.lk .dt label.chk.lu { margin-left: 18px; }
dialog.kz.lk .dt.wloff select#lCam, dialog.kz.lk .dt.wloff label.chk.lu { opacity: .45; }
dialog.kz.lk .fr > label .lsub { font-size: 11px; font-weight: normal; color: #5b6575; }
/* v1258：車両（ロケ時間の行の右。スマホは次の行） */
dialog.kz.lk .dt.ltm .carg { display: inline-flex; align-items: center; gap: 6px; margin-left: 18px; }
dialog.kz.lk .dt.ltm .carg .lbl2 { margin-left: 0; }
dialog.kz.lk .dt.ltm select#lCar { min-width: 0; width: 120px; height: 30px; flex: 0 0 auto; }
html.hs3-mfit dialog.kz.lk .dt.ltm .carg { flex: 0 0 100%; margin-left: 0; }
.den.stack .r { align-items: flex-start; }
.den .r .v.car .o { padding: 0 5px; }

/* v1259：ロケ伝票の改修（㊽ 中身の左をそろえる・㊾ A4 の下まで・備考の欄・51 拡大・縮小） */
.den .b1 .bx:first-child .r .l { width: 3em; }
.den .b1 .bx:last-child .r .l, .den .b2 .eq .r .l { width: 4em; }
.den .b2, .den .b2 .sch, .den .b2 .rc { height: 157mm; }
.den .b2 .cont { height: 95mm; }
.den .b2 .eq { height: auto; flex: 1 1 auto; min-height: 0; }
.den .b2 .eq .nth { flex: 0 0 auto; font-size: 12pt; line-height: 1.25; padding-top: 3mm; }
.den .b2 .eq .tx.nt { flex: 1 1 auto; height: auto; min-height: 0; padding: 1mm 0 0; }
.den.stack .b2 .eq .tx.nt { min-height: 40px; }
.den.stack .r .l { width: auto !important; min-width: 4em; }
.lk-denpyo .rp-zoom { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(15,31,58,.92); border-radius: 999px; box-shadow: 0 6px 20px rgba(15,31,58,.3); transition: opacity .25s, transform .25s; }
.lk-denpyo .rp-zoom.idle { opacity: 0; transform: translateX(-50%) translateY(12px); pointer-events: none; }
.lk-denpyo .rp-zoom button { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: none; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; min-width: 0; }
.lk-denpyo .rp-zoom button:hover { background: rgba(255,255,255,.15); }
.lk-denpyo .rp-zoom button:disabled { opacity: .35; cursor: default; background: transparent; }
.lk-denpyo .rp-zoom button.pct { width: auto; min-width: 52px; border-radius: 6px; font-size: 12.5px; font-weight: 700; padding: 0 6px; font-variant-numeric: tabular-nums; }
.lk-denpyo .rp-zoom input[type=range] { width: 200px; accent-color: #60a5fa; cursor: pointer; height: auto; padding: 0; border: 0; }
.lk-denpyo .zoom-fab { display: none; }
@media all { .lk-denpyo .zoom-fab { display: inline-flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; padding: 0; border: none; border-radius: 50%; background: rgba(15,31,58,.88); color: #fff; box-shadow: 0 6px 20px rgba(15,31,58,.3); cursor: pointer; z-index: 30; min-width: 0; } }
.lk-denpyo .rp-zoom:not(.idle) + .zoom-fab { display: none; }
.lk-denpyo.den-stack .rp-zoom, .lk-denpyo.den-stack .zoom-fab { display: none !important; }
@media print {
  .denw { height: auto !important; padding: 0 !important; overflow: visible !important; }
  .rp-zoom, .zoom-fab { display: none !important; }
}
.den .r .v.car { white-space: nowrap; font-size: 12.5pt; }
/* v1261：スマホのロケ予定表・ロケ担当表（ロケ機材予約のスマホと同じ形：週の表示・月〜日の日付のボタン・選んだ日だけ） */
.lkdays { margin: 0 0 8px; }
.pdays.one { grid-template-columns: 1fr; }
.pdays.one .pday { padding: 0 8px 8px; }
.pdays.one .pday .pdh { font-size: 14px; }
.pdays.one .pday .pdh .hol { font-size: 11px; font-weight: 500; color: #c62828; }
.pdays.one .pday .pdh .add { padding: 0 10px; height: 28px; font-size: 13px; }
.pdays.one .none { color: var(--muted); font-size: 13px; padding: 6px 2px; }
b.ym.wkbtn { cursor: pointer; font-size: 15px; white-space: nowrap; }
b.ym.wkbtn::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: middle; width: 10px; height: 6px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #6b7785; }   /* v1368（467） */


/* v1269：ロケの小画面（89 取材先は 1 つの欄・92 スケジュールの「＋」・95 GoPro・98 備考の項目名を 1 行・99 ロケ台本の項目名）と ロケ伝票（85〜97） */
dialog.kz.lk input.plone { width: 260px; max-width: 100%; }
html.hs3-mfit dialog.kz.lk input.plone { width: 100%; }
dialog.kz.lk .schr { grid-template-columns: 72px minmax(0, 1fr) 28px 22px; }
dialog.kz.lk .dt .kzg.gp { margin-left: 0; }
dialog.kz.lk .fr > label.note1 { white-space: nowrap; }
html.hs3-mfit dialog.kz.lk .dt .kzg .lbl3.wl { margin-left: 10px; }
.lk-yotei .lc .rg { display: none; }
/* v1269（85）：番組名・コーナー名は長体で 1 行（見出しの「番組名」も 1 行） */
.den .t2 .ul { max-width: 100%; box-sizing: border-box; }
.den .t2 .ul > .l { flex: 0 0 auto; white-space: nowrap; }
.den .t2 .pns { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.den .t2 .pnin { display: inline-block; white-space: nowrap; transform-origin: left center; }
.den .t2 .pn { display: inline-block; vertical-align: baseline; white-space: nowrap; min-width: 0; }
.den .t2 .pn + .pn { margin-left: 5mm; }
.den.stack .t2 .pns, .den.stack .t2 .pnin, .den.stack .t2 .pn { white-space: normal; display: inline; }
/* v1269（90）：社発時間・終了予定は右寄せで桁をそろえ、項目名との間を全角 2 文字分ほど空ける */
.den .r .v.tm { flex: 0 0 5.2ch; margin-left: 2em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.den.stack .r .v.tm { flex: 0 0 5.2ch; margin-left: .5em; }
/* v1269（93）：スケジュール＝時間（右寄せ）｜内容（長体で 1 行）。時間のない行も時間の列を空ける */
.den .sch2 .sl { display: flex; align-items: baseline; gap: .6em; min-height: 1.35em; }
.den .sch2 .st { flex: 0 0 5.2ch; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.den .sch2 .sx { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.den .sch2 .sxi { display: inline-block; white-space: pre; transform-origin: left center; overflow: hidden; vertical-align: top; }
.den.stack .sch2 .sx, .den.stack .sch2 .sxi { white-space: pre-wrap; }
/* v1269（96）：備考は 1 行目だけ左端から、2 行目からは 1 文字下げる（97）見出しの「備考」に下線 */
.den .b2 .eq .tx.nt { padding-left: 1em; text-indent: 0; }
.den .b2 .eq .nth { text-decoration: underline; text-underline-offset: 2px; }
.den .t2 .pn { overflow: hidden; vertical-align: bottom; }
.den .t2 .pn[contenteditable=true] { overflow: visible; }
/* v1270（101）：時間の列の幅は数字の幅（ch）で決める（書体で数字の幅が違っても「10:00」が入り、分の右端がそろう） */
/* v1270（103）：希望機材の 3 行（映像機材・音声機材・照明機材） */
dialog.kz.lk .kzw { display: flex; flex-direction: column; gap: 6px; }
dialog.kz.lk .kzw .dt { flex-wrap: wrap; gap: 6px; }
dialog.kz.lk .kzw .kzl { font-size: 13px; font-weight: 700; color: #3d4a5c; min-width: 5.5em; }
dialog.kz.lk .kzw .kzg .lbl3.wl { margin-left: 12px; }
html.hs3-mfit dialog.kz.lk .kzw .kzl { min-width: 0; }
html.hs3-mfit dialog.kz.lk .kzw .kzg .lbl3.wl { margin-left: 0; }
/* v1271（106）スケジュールの時間の列は、2 けたの時があれば 4.6ch・なければ 3.6ch（分の右端はそろえたまま左に寄せる） */
.den .sch2 .st { flex-basis: 3.6ch; }
.den .sch2.h2 .st { flex-basis: 4.6ch; }
/* v1271（107）左の枠の項目名と中身の間を全角 1 文字分ほど広げる（110）右の枠は項目名のあと 1 文字分ほど。時刻はそこから（「18:00」の幅で右寄せ） */
.den .b1 .bx:first-child .r .l { width: 4em; }
.den .b1 .bx:last-child .r .l { width: 4.5em; }
.den .r .v.tm { flex: 0 0 3.6ch; margin-left: 0; }
.den .b1 .bx.h2 .r .v.tm { flex-basis: 4.6ch; }
.den.stack .r .v.tm { margin-left: 0; }
/* v1271（109）右上の日付の下に（時刻）を少し小さく。右下の ver. はなくした */
.den .t1 { align-items: flex-end; }
.den .t1 .dt { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.den .t1 .dt .dtm { font-size: 10pt; }
.den.stack .t1 .dt .dtm { font-size: 11px; }
/* v1271（111）ver. をなくした分（約 5mm）、スケジュールと取材内容の枠を伸ばす */
.den .b2, .den .b2 .sch, .den .b2 .rc { height: 162mm; }
.den .b2 .cont { height: 100mm; }
/* v1272（112）右上の日付と時刻は右寄せ（113）時刻の「:」の左右に少し余裕（文字の 1 割ずつ。時間の列もその分広げる） */
.den .t1 .dt { align-items: flex-end; }
.den .cl { margin: 0 .1em; }
.den .sch2 .st { flex-basis: calc(3.6ch + .2em); }
.den .sch2.h2 .st { flex-basis: calc(4.6ch + .2em); }
.den .r .v.tm { flex-basis: calc(3.6ch + .2em); }
.den .b1 .bx.h2 .r .v.tm { flex-basis: calc(4.6ch + .2em); }
/* v1274（119）ロケ伝票のスケジュールは左に詰め、上の枠の項目名と左端をそろえる（時間の列はいちばん長い時間の幅〔grid の max-content〕） */
.den .tx.sch2 { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .6em; align-content: start; padding-left: 2mm; }
.den .sch2 .sl { display: contents; }
.den .sch2 .st { text-align: right; }
.den .sch2 .sx { min-width: 0; }
.den.stack .tx.sch2 { padding-left: 0; }
/* v1274（120）伝票の枠のスクロールをページに伝えない */
.lk-denpyo .denw { overscroll-behavior: contain; }
/* v1274（121）見るだけのスケジュールは「時間｜内容」の 2 列（122）希望機材はまとまりで折り返す（123）希望機材の 3 行の高さと間隔をそろえる */
dialog.kz.lk .vsch { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1em; }
dialog.kz.lk .vsch .t { text-align: right; font-variant-numeric: tabular-nums; }
dialog.kz.lk .vsch .x { overflow-wrap: anywhere; white-space: pre-wrap; }
dialog.kz.lk .vv .nw { white-space: nowrap; }
dialog.kz.lk .kzw { gap: 6px; }
dialog.kz.lk .kzw .dt { min-height: 34px; align-items: center; }
dialog.kz.lk .kzw .dt label.chk { min-height: 30px; }
/* v1315（246・248・249）：LiveU中継の枠（1 つ・上詰め）と「＋」、貼り付け先の選択 */
table.cal7 tr.fx td { vertical-align: top; }
table.cal7 tr.fx td .addlv { display: block; visibility: hidden; margin: 2px 0 0 auto; padding: 0 7px; font-size: 13px; line-height: 18px; height: 20px; }
table.cal7 tr.fx td:hover .addlv { visibility: visible; }
@media (hover: none) { table.cal7 tr.fx td .addlv { visibility: visible; } }
.pastesel { outline: 2px dashed #1d4ed8; outline-offset: -2px; }
.plv .lvh { display: block; font-size: 11.5px; font-weight: 700; color: #6b7785; margin: 2px 0; }
.plv .addlv { padding: 0 10px; height: 26px; font-size: 13px; margin-top: 2px; }
.lkcm button.del { color: var(--danger, #c62828); border-top: 1px solid #e3e8ee; margin-top: 4px; }   /* v1316（252）：削除はいちばん下に離して */
/* v1318（255）：その月に入らない日（グレー）のマスは中の横線なし */
table.cal7 tr.cd td.out, table.cal7 tr.fx td.out, table.cal7 tr.nt td.out { border-top-color: transparent; }

/* v1369（474）：ロケ予定表（PC）の日付の右の「備考」ボタン。備考のある日はいつも（薄い黄）・ない日はマウスを置いたときだけ。マウスを置くと中身を吹き出しで
   v1370（475）：吹き出しはその日のマスの左から・マスの幅で折り返す（.dn を基準に） */
table.cal7 .dn { position: relative; }
table.cal7 .dn .nbtn { margin-left: 6px; padding: 0 6px; height: 18px; line-height: 16px; font-size: 11px; font-weight: 600; border-radius: 4px; border: 1px solid #d6c27a; background: #fffbe8; color: #6b4e00; visibility: hidden; cursor: pointer; }
table.cal7 td:hover .dn .nbtn, table.cal7 .dn .nbtn.has { visibility: visible; }
@media (hover: none) { table.cal7 .dn .nbtn { visibility: visible; } }
table.cal7 .dn .nbtn:not(.has) { border-color: #cfd6df; background: #fff; color: #6b7785; }
table.cal7 .dn .nbtn[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: -2px; right: -2px; top: calc(100% + 8px); z-index: 50; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; font-size: 12px; font-weight: 400; line-height: 1.5; color: #1f2933; background: #fff; border: 1px solid #cfd6df; border-radius: 6px; box-shadow: 0 6px 18px rgba(15,31,58,.18); padding: 6px 8px; pointer-events: none; }
table.cal7 .dn .nbtn[data-tip]:hover::before { content: ""; position: absolute; left: 30px; top: calc(100% + 2px); z-index: 51; width: 12px; height: 7px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); pointer-events: none; }

/* v1370（476）：ロケ伝票の追加資料 */
#btnFiles .fcnt { font-weight: 700; margin-left: 2px; }
dialog.kz#dlgFiles { width: min(560px, calc(100vw - 24px)); }
#dlgFiles .flist { display: flex; flex-direction: column; gap: 6px; }
#dlgFiles .fr1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid #e3e8ee; border-radius: 6px; }
#dlgFiles .fk { flex: none; font-size: 12px; font-weight: 700; color: #1e40af; background: #e8efff; border-radius: 4px; padding: 1px 8px; }
#dlgFiles .fn { flex: 1 1 10em; min-width: 0; overflow-wrap: anywhere; color: #1d4ed8; }
#dlgFiles .fm { font-size: 11.5px; color: #6b7785; }
#dlgFiles .fx { flex: none; width: 26px; height: 26px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; color: #b42318; border-color: #f2b8b5; background: #fff; }   /* v1372（482）：× */
#dlgFiles .none { color: #6b7785; font-size: 13px; }
#dlgFiles .fnew { margin-top: 12px; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 6px; background: #f7f9fc; }
#dlgFiles .fpk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#dlgFiles .fnm { font-size: 13px; overflow-wrap: anywhere; }
#dlgFiles .fbt { display: flex; gap: 8px; margin-top: 8px; }
/* v1372（482）：追加資料の「内容」とファイルを 1 行に（内容の欄は短く） */
#dlgFiles .fone { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#dlgFiles .fone > label { font-size: 13px; font-weight: 600; color: #3d4a5c; flex: none; }
#dlgFiles .fone > input { width: 9em; flex: 0 1 9em; min-width: 6em; }
#dlgFiles #fPick { display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; line-height: 0; }   /* v1395（544 案A）：「ファイルを選ぶ」はフォルダのアイコンだけ */
#dlgFiles .fnew .fnm { margin-top: 6px; }
#dlgFiles .fnew .fnm:empty { display: none; }
/* v1390（536・537）：ピンクの人（html.tp-pink。ライト・ダークとも）は、飾りの薄い青（札・行・枠）と紺・青の文字をグレーに。ダークは dark.js がこのグレーを暗い色に置き換える。完全に取り除くときはこのまとまりを消す */
html.tp-pink:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5):not(#_p6) .lc .rg { background: #f2f2f2 !important; border-color: #c4c4c4 !important; color: #444 !important; }
html.tp-pink:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5):not(#_p6) #dlgFiles .fk { background: #f2f2f2 !important; border-color: #c4c4c4 !important; color: #444 !important; }
/* v1396（548）：業務委託先管理のスマホのカード：色の見本はいつも右上、会社名・略称・期間・備考は左にそろえる（略称のある行だけ見本が左下にずれていた） */
html.hs3-mfit table.kz.vd td.nm { grid-column: 1 / span 2; grid-row: 1; }
html.hs3-mfit table.kz.vd td.swc { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
html.hs3-mfit table.kz.vd td.x { grid-column: 1 / span 3; }
html.hs3-mfit body.reordering table.kz.vd td.swc { display: none; }
html.hs3-mfit body.reordering table.kz.vd td.x { grid-column: 1 / span 2; }
/* v1396（550）：週の表示の長体（yotei.html の fitWk。左を基準に縮めて、縮めた分は右の余白を詰める） */
b.ym .ymi { display: inline-block; white-space: nowrap; transform-origin: left center; }
b.ym.fitw { min-width: var(--fitw) !important; }
/* v1396（549 案B）：スマホの日付のボタン：今日は数字の下に ●（選んでいる日は白い ●）。オレンジの枠はやめる（印は ● だけ） */
.lkdays button.today { position: relative; border-color: var(--line, #cfd6df); }
.lkdays button.today.on { border-color: var(--primary, #1d4ed8); }
.lkdays button.today::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #E4007F; }
