/* 画面の共通のスタイル。画面のモックアップの common.css をもとにする。 */
/* 画面仕様書「1. すべての画面に共通する決まり」：画面の幅を前提とせず、窓の大きさに合わせて並びと一覧の大きさを変える。文字は本文 16・表の中 15・補助の説明 14 ピクセル（14 ピクセルより小さい文字は使わない）。 */
/* 配色は決定記録 2026-10-11「画面の文字の大きさと配色」：上の帯 #1a5b66（白い文字）、見出し #deebf7（黒い文字）、お知らせの見出し #ffff00、入力の誤り #c00000、地はごく薄い青 #f2f6fa（入力欄と表のマスは白）。決定記録 2026-10-11「画面の地の色」「画面の地の色と立体の枠、画面の大きさへの合わせ方」。一覧の行は交互の色にしない（決定記録 2026-10-12「一覧の行の交互の色と、収穫出荷計画の日曜の列・選んでいる作業日の色」）。押せるボタンは Windows の青 #0067c0（白い文字）とし、表の見出しに浮き出た縁を付ける（決定記録 2026-11-30「押せるボタンを Windows の青にすること」）。 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  color: #222;
  background: #f2f6fa;
}
a { color: #1a5b66; }

/* 帯とメニュー */
.head {
  background: #1a5b66; color: #fff;
  padding: 8px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
}
.head .sys { font-weight: bold; font-size: 18px; }
.head .user { margin-left: auto; font-size: 15px; }
.head .user button { margin-left: 8px; }
.menu {
  background: #deebf7; border-bottom: 2px solid #1a5b66;
  display: flex; flex-wrap: wrap; padding: 0 8px;
}
.menu a {
  position: relative;
  padding: 8px 14px; font-size: 15px; text-decoration: none; color: #000;
  border-right: 1px solid #9bb7d4;
}
.menu a:hover { background: #fff; }
.menu a.on { background: #fff; font-weight: bold; box-shadow: inset 0 -3px 0 #1a5b66; }
.menu a .count {
  position: absolute; top: 1px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #1a5b66; color: #fff;
  font-size: 14px; line-height: 18px; text-align: center; font-weight: bold;
}

/* 本文 */
.body { padding: 12px; }
h1 { font-size: 20px; margin: 0 0 6px; padding: 2px 0 4px 10px; border-left: 6px solid #1a5b66; border-bottom: 1px solid #9bb7d4; }
.sub { font-size: 14px; color: #444; margin: 0 0 12px; }
.panel { position: relative; background: #f2f6fa; border: 1px solid #a0a0a0; box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #fff; padding: 14px 10px 8px; margin: 12px 0 10px; }
.panel > h2 { position: absolute; top: -11px; left: 10px; font-size: 15px; line-height: 20px; margin: 0; padding: 0 6px; background: #f2f6fa; color: #1a5b66; }

/* 絞り込み */
.filter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.filter .f { display: flex; flex-direction: column; gap: 3px; }
.filter label { font-size: 14px; color: #444; }
input, select, textarea { font: inherit; padding: 3px 5px; border: 1px solid #767676; background: #fff; }
input:not([type="radio"], [type="checkbox"]), select, textarea { border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #404040; }
input:focus, select:focus, textarea:focus { outline: 2px solid #1a5b66; outline-offset: 0; }
/* フォーカスの枠は、入力欄（文字を打つ欄・選択の欄）だけに出す。ボタン・ラジオボタン・チェックボックス・リンクには、キーボードで移ったときも出さない（画面での確認で出た直す項目 No.21） */
input[type="radio"]:focus, input[type="checkbox"]:focus, button:focus, a:focus { outline: none; }
/* 押せるボタンは Windows の青の地に白い文字とし、主なボタン（button.main）もほかのボタンと同じ書式とする。押せないボタンは薄い灰の地に灰の文字とし、ポインターが当たっても変えない（決定記録 2026-11-30「押せるボタンを Windows の青にすること」「主なボタンに黒の外枠を付けないこと」「主なボタンをほかのボタンと同じ書式にすること」） */
button {
  font: inherit; font-size: 15px; padding: 4px 12px; color: #fff;
  border: 1px solid rgba(0,0,0,.55); background: #0067c0; cursor: pointer;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.35), inset -1px -1px 0 rgba(0,0,0,.35);
}
button:hover { background: #005a9e; }
button:active { background: #004a80; box-shadow: inset 1px 1px 0 rgba(0,0,0,.35), inset -1px -1px 0 rgba(255,255,255,.35); }
button:disabled { color: #6e6e6e; background: #eeeeee; border-color: #a0a0a0; box-shadow: inset 1px 1px 0 #fff; cursor: not-allowed; }
/* 上の帯のログアウトは、灰の立体のボタンのままとする */
.head .user button { color: #000; border-color: #767676; background: #d9e2ec; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 1px 1px 0 #404040; }
.head .user button:hover { background: #e0ddd6; }
.head .user button:active { box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; }
.right { margin-left: auto; }

/* お知らせ（画面の上の帯） */
.notice {
  border: 1px solid #767676; border-left: 6px solid #1a5b66; background: #fff;
  padding: 8px 10px; margin-bottom: 10px; font-size: 15px;
}
.notice .ttl { display: inline-block; font-size: 16px; font-weight: bold; color: #000; background: #ffff00; padding: 1px 8px; margin-bottom: 6px; }
.notice .dsc { color: #333; margin-bottom: 10px; }
.notice .act { display: flex; gap: 8px; }
/* 帯に一文を出したときに、帯の地を一時的に薄い黄色にして知らせる（web/js/common/api.js の showBand） */
.notice.notice-flash { animation: notice-flash 1.5s ease-out; }
@keyframes notice-flash { from { background: #ffff99; } to { background: #fff; } }
@media (prefers-reduced-motion: reduce) { .notice.notice-flash { animation: none; } }

/* 入力の誤り（欄のすぐ下の一文） */
.field-error { margin: 4px 0 0; font-size: 14px; font-weight: bold; color: #c00000; }

/* 表 */
table { border-collapse: collapse; background: #fff; font-size: 15px; border: 2px solid; border-color: #808080 #fff #fff #808080; }
th, td { border: 1px solid #a6a6a6; padding: 3px 6px; white-space: nowrap; }
th { background: #deebf7; font-weight: normal; color: #000; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #8fa3b5; }
td.num, th.num { text-align: right; }
td.ctr, th.ctr { text-align: center; }
th.two { text-align: center; }
/* 表の見出しは、すべて中央寄せにそろえる。中身のマスの寄せは変えない（画面での確認で出た直す項目 No.7） */
thead th, thead th.num { text-align: center; }
td.wrap { white-space: normal; }
table.top td, table.top th { vertical-align: top; }
.scroll { overflow: auto; max-height: max(360px, calc(100vh - 230px)); border: 2px solid; border-color: #808080 #fff #fff #808080; }
.scroll table, .clip table, .cal table { border: 0; }
.scroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #8fa3b5; }
/* 横に送っても止まる列は、右端に線を描く（罫線は止まる列と一緒に動かないため。練習の後に直す項目 No.2） */
.scroll .fix { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: inset -1px 0 0 #a6a6a6; }
.scroll thead .fix { z-index: 3; background: #deebf7; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #8fa3b5; }

/* 見込みと実績 */
.est { color: #4d4d4d; }
.fixv { font-weight: bold; }
.mark { display: inline-block; border: 1px solid #666; padding: 0 4px; font-size: 14px; }
.mark.jisseki { background: #333; color: #fff; border-color: #333; }
.mark.mikomi { background: #fff; }
.warn td, td.warn, .scroll tbody tr.warn > .fix { background: #d9d9d9; }
.zero { color: #767676; }

/* ポップアップウィンドウ（ダイアログ）：画面の中央に、幅を決めて出す。文字は本文と同じ大きさとし、余白を広げる。後ろの画面は暗くする（画面での確認で出た直す項目 No.11） */
.dlg {
  border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #f2f6fa; padding: 16px 20px; font-size: 16px;
  box-shadow: inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,.2); max-width: 820px; margin-bottom: 10px;
}
.dlg > h2 { font-size: 17px; margin: -16px -20px 16px; padding: 6px 20px; background: #1a5b66; color: #fff; }
.dlg .foot { margin-top: 20px; display: flex; gap: 8px; justify-content: flex-end; }
.dlg .foot.return { align-items: center; }
.dlg .foot.return .cell { width: 8em; padding: 4px 6px; }
.dlg .foot.return .dlgnote { margin: 0; }
.dlg .foot.return button { white-space: nowrap; }
.dlgnote { font-size: 16px; color: #222; margin: 0 0 12px; }
dialog.dlg { margin: auto; width: 480px; max-width: calc(100vw - 32px); }
/* 表のあるポップアップウィンドウは、表の幅に合わせて広げる。480px より狭くしない */
dialog.dlg:has(table) { width: fit-content; min-width: min(480px, calc(100vw - 32px)); }
dialog.dlg > p { margin: 0; }
dialog.dlg::backdrop { background: rgba(0,0,0,.3); }
/* 「保存しました」（web/js/common/api.js の showSavedMessage）：ボタンのすぐ左に、緑の線のチェックの印・本文の色の一文・灰色の時刻を 1 行で出し、2 秒で消す（画面での確認で出た直す項目 No.20） */
.saved-msg { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 15px; color: #222; white-space: nowrap; vertical-align: middle; animation: saved-fade 2s forwards; }
.saved-msg svg { width: 16px; height: 16px; flex: none; color: #2e7d32; }
.saved-msg .tm { font-size: 14px; color: #595959; }
@keyframes saved-fade { 0% { opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .saved-msg { animation: none; } }

/* 入力の並び */
.form { display: grid; grid-template-columns: 180px 1fr 180px 1fr; gap: 6px 10px; align-items: center; }
.form label { font-size: 15px; color: #444; }
.form .full { grid-column: 2 / 5; }
.form.stack { grid-template-columns: 12em 1fr; max-width: 640px; }
.form.stack .full { grid-column: 2; }

/* ログイン（メニューの無い画面） */
.auth { max-width: 520px; margin: 40px auto 0; }
.auth .form.stack { max-width: none; }
.auth .act { margin-top: 14px; display: flex; justify-content: flex-end; }
.auth .auth-note { margin: 12px 0 0; }

/* 見出しで切り替えるまとまり（マスタ・その他） */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: -1px; }
.tabs a {
  padding: 6px 16px; font-size: 15px; text-decoration: none; color: #000;
  border: 1px solid; border-color: #fff #808080 #808080 #fff; background: #deebf7;
}
.tabs a:hover { background: #fff; }
.tabs a.on { background: #f2f6fa; border-top: 3px solid #1a5b66; border-bottom-color: #f2f6fa; font-weight: bold; }
.tabbody { overflow-x: auto; border: 2px solid; border-color: #fff #808080 #808080 #fff; background: #f2f6fa; padding: 8px; }

/* 見出しで切り替えるまとまりの中の、一覧の上の操作の並び */
.tabbody > .filter { margin-bottom: 8px; }
/* 表は、入れ物（.scroll。web/js/common/table_scroll.js が入れる）の幅いっぱいに広げる。窓より横に長いときは縮めずに、入れ物の中で横にスクロールする */
.scroll > table { width: 100%; }
/* 表を左右に送るボタン（web/js/common/table_scroll.js）：表が窓より横に長いときだけ、表のすぐ上の右端に出す */
.tnav { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 4px; }
.tnav[hidden] { display: none; }
.tnav button { padding: 1px 10px; font-size: 14px; }
.hwrap .tnav { margin: 0; }
/* 生産計画（PRD-01）：左の No.・品目の 2 列を固定する。固定した列の地は、無効にした行の灰色に合わせる */
table.prd-plan > * > tr > :nth-child(1) { position: sticky; left: 0; z-index: 1; width: 56px; min-width: 56px; max-width: 56px; }
table.prd-plan > * > tr > :nth-child(2) { position: sticky; left: 56px; z-index: 1; }
table.prd-plan > tbody > tr > :is(:nth-child(1), :nth-child(2)) { background: #fff; }
table.prd-plan > tbody > tr.off > :is(:nth-child(1), :nth-child(2)) { background: #d9d9d9; }
/* 生産計画（PRD-01）：ほかの作付と矛盾がある作付の行（web/js/prd-01.js の class conflict）は地を薄い橙にする。お知らせの印（td.warn の灰色）の付いた欄は灰色のままとする（画面での確認で出た直す項目 No.5・No.6） */
table.prd-plan > tbody > tr.conflict > td:not(.warn) { background: #fde5cc; }
table.prd-plan > thead > tr > :is(:nth-child(1), :nth-child(2)) { z-index: 3; }
table.prd-plan td input.datepick { width: 6em; }
/* 利用者管理（ETC-02）：役割を選ぶ丸の並びと、無効にした利用者の行 */
.choices { display: flex; gap: 12px; }
tr.off td, .scroll tbody tr.off > .fix { color: #595959; background: #d9d9d9; }
/* 日付を選ぶ欄とカレンダー（web/js/common/calendar.js。画面のモックアップの ETC-04） */
input.datepick { width: 9.8em; cursor: pointer; }
.cal {
  position: absolute; z-index: 30; background: #fff;
  border: 2px solid #1a5b66; box-shadow: 4px 4px 0 rgba(0,0,0,.2);
  padding: 8px; font-size: 14px;
}
.cal .bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal .bar b { flex: 1; text-align: center; font-size: 15px; }
.cal .bar button { padding: 2px 8px; font-size: 14px; }
.cal table { border-collapse: collapse; }
.cal th, .cal td {
  width: 32px; height: 28px; text-align: center; border: 0; padding: 0;
  background: transparent; font-weight: normal; color: #222;
}
.cal th { color: #555; font-size: 14px; box-shadow: none; }
.cal td { cursor: pointer; }
.cal td:hover { background: #deebf7; }
.cal td.on { background: #1a5b66; color: #fff; font-weight: bold; }
.cal td.out { color: #767676; }
.cal td.disabled { color: #bbb; background: transparent; cursor: not-allowed; }
.cal .foot { margin-top: 6px; text-align: right; }
.cal .foot button { padding: 2px 8px; font-size: 14px; }
/* 操作記録（ETC-04）：一覧の高さ */
.scroll.log { max-height: max(300px, calc(100vh - 290px)); }
/* 納品先一覧（MST-01）：一覧の高さと、操作のボタンの間のすき間 */
.scroll.list { max-height: max(300px, calc(100vh - 290px)); }
.gap { display: inline-block; width: 18px; }
/* マスタの登録・変更（MST-02・MST-04）：入力の並びの中の補助の説明、まとまりの上の補助の説明、出荷曜日パターンの並び */
.form .sub { margin: 0; }
.panel > p.sub { margin: 0 0 10px; }
.weekdays label { margin-right: 14px; }

/* 品目 登録・変更（MST-06）・標準栽培日数（MST-11）：参考の値の横のボタン、その下の補助の説明、ポップアップウィンドウの一覧の高さ */
button.side { margin-left: 8px; }
.form .sub.block { display: block; margin-top: 4px; }
.scroll.dlg-list { max-height: 360px; }
.scroll.dlg-list table { width: 100%; }
/* 標準栽培日数（MST-11）：区分の区切りの欄、日数のマスとその下の最頻値、ポップアップウィンドウの品目の選択 */
td.period input { width: 4.2em; }
td.days { vertical-align: top; }
td.days input { width: 3.2em; text-align: right; }
td.days .actn { display: block; font-size: 14px; color: #595959; margin-top: 2px; }
/* 標準栽培日数（MST-11）の表は、幅を中身に合わせて左に寄せ、時期の区分の列と品目の列の幅を決める（画面での確認で出た直す項目 No.1）。表を囲む枠も表の幅に合わせ、品目の列は一律 11em とする（同 No.19） */
.scroll.grow-wrap { width: fit-content; max-width: 100%; }
.scroll > table.grow-days { width: auto; }
table.grow-days thead th.fix { width: 13em; min-width: 13em; }
table.grow-days thead th[data-item-id] { width: 11em; min-width: 11em; white-space: normal; }
/* 標準栽培日数（MST-11）の「栽培日数(実績)の確認」：幅を 640px に決めて説明を折り返し、品目の行と表のあいだを 10px あけ、表を幅いっぱいにする（画面での確認で出た直す項目 No.22） */
dialog.dlg.actual { width: 640px; max-width: calc(100vw - 32px); }
dialog.dlg.actual > p.grow-pick { margin: 0 0 10px; }
/* 説明の一文と品目の選択の行のあいだも 10px あける（画面での確認で出た直す項目 No.30） */
dialog.dlg.actual > p.dlgnote { margin: 0 0 10px; }
.grow-pick { font-size: 15px; margin: 0 0 10px; }
.grow-pick label { margin-right: 8px; color: #444; }
.grow-pick .sub { margin: 0 0 0 10px; }
/* 生産計画（PRD-01）・作付の追加（PRD-02）：絞り込みの期間、一覧の中の日付と枚数の欄、保存の前の確認の並び */
.filter .range { font-size: 14px; color: #444; padding-bottom: 6px; }
td input.datepick { width: 7.4em; }
td input.numin { width: 5.2em; text-align: right; }
.notice ul { margin: 6px 0 0 1.2em; padding: 0; }
/* お知らせの箇条（web/js/common/notice_list.js）：「ほか N 件を表示」で開いたときは 10 行の高さまでとし、超える分は帯の中でスクロールする（練習の後に直す項目 No.5・No.13） */
.notice ul.notice-list li { line-height: 1.5; }
.notice ul.notice-list.open { max-height: 15em; overflow-y: auto; }
.notice .notice-more { margin-top: 4px; padding: 1px 10px; font-size: 14px; }
/* お知らせの帯の 1 行目「お知らせ N 件 ▼」。押すと帯が開く（web/js/common/notice_list.js。画面での確認で出た直す項目 No.12） */
.notice .notice-head { padding: 0; border: 0; background: none; box-shadow: none; font-size: 16px; font-weight: bold; color: #000; }
.notice .notice-head:hover { background: none; text-decoration: underline; }
/* 生産計画（PRD-01）：「生産計画を出力」のポップアップウィンドウ。カレンダー（.cal の z-index 30）が上に出るよう、画面に重ねる層の z-index は 20 とする */
.overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.overlay[hidden] { display: none; }
.overlay .dlg { margin: 0; width: 480px; max-width: calc(100vw - 32px); }
.form .hint { grid-column: 2; font-size: 14px; color: #444; }
.form .stages { display: flex; gap: 16px; flex-wrap: wrap; }
.form .stages label { color: #222; }
/* ベッド管理（BED-01）：サイクルのマス、未定のマス、見出しの 2 段、整備日数の表示（画面のモックアップの BED-01） */
.bed td { vertical-align: top; min-width: 196px; cursor: pointer; }
.bed td.num { min-width: 0; cursor: default; }
.bed td.empty { background: #fafafa; color: #595959; text-align: center; cursor: default; }
.bed td.vacant { padding-top: 18px; }
.bed td dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 2px 6px; font-size: 14px; }
.bed dt { color: #555; }
.bed dd { margin: 0; text-align: right; }
.bed td .cyc-st { width: 100%; display: block; margin-bottom: 6px; text-align: left; }
.bed td .as-actual { padding: 8px 0 4px; }
.bed thead th { vertical-align: middle; }
.bed thead .cyc-group { text-align: center; font-size: 14px; line-height: 20px; letter-spacing: 0.35em; padding: 4px 8px 3px; border-bottom-color: #ddd; }
.bed thead .cyc { text-align: center; font-weight: bold; padding: 3px 8px 5px; }
.bed thead tr:nth-child(2) th { top: 28px; }
.filter .days { padding: 4px 0; }
.scroll.bed-list { max-height: max(360px, calc(100vh - 200px)); }
/* 収穫出荷計画（SHP-01）：品目×日付の表、左に固定する 2 列と 2 段の見出し、表の上に残す帯（表を左右に送るボタンと表示中の範囲）（画面のモックアップの SHP-01） */
.filter label.check { font-size: 15px; color: #222; }
.plan { border-collapse: separate; border-spacing: 0; }
.plan th, .plan td { padding: 2px 6px; border: 0; border-right: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6; }
.plan td.v { text-align: right; min-width: 76px; line-height: 1.35; }
.plan td.v .e { display: block; color: #595959; font-size: 14px; }
.plan td.v .k { display: block; font-weight: bold; }
.plan td.v .w { display: block; color: #595959; font-size: 14px; }
.plan td.v .zero { color: #767676; font-weight: normal; }
.plan td.v.alt { background: #f6e3b8; }
.plan thead th { position: sticky; z-index: 4; }
.plan thead tr:first-child th { top: 0; }
.plan thead th.ctr { font-size: 14px; padding: 2px 4px; white-space: nowrap; }
.plan .c1 { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 110px; max-width: 110px; white-space: normal; }
.plan .c2 { position: sticky; left: 110px; z-index: 1; background: #fff; min-width: 214px; max-width: 214px; }
.plan thead .c1, .plan thead .c2 { z-index: 5; background: #deebf7; }
.plan tbody .c2.kubun { background: #f2f2f2; color: #444; font-size: 14px; }
.plan tbody .c2.dest { font-size: 14px; white-space: normal; }
.plan tbody .c2.dest .sp { color: #595959; }
.plan tbody tr.top td, .plan tbody tr.top th { border-top: 2px solid #767676; }
.plan td.cyc { border-left: 2px solid #767676; }
.plan td.v.plus { background: #d4e6f7; }
.tabletop { position: sticky; top: 0; z-index: 7; background: #f2f6fa; }
.hwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f2f6fa; border: 1px solid #a6a6a6; border-bottom: 0; padding: 3px 8px; }
.hwrap .rng { margin-left: auto; min-width: 206px; text-align: right; font-size: 14px; color: #444; white-space: nowrap; }
.clip { overflow: hidden; border: 1px solid #a6a6a6; background: #fff; }
.shp-scroll { overflow: auto; overscroll-behavior-x: contain; }
/* 表に出す行が無いときに、表の枠の中に出す一文（web/js/shp-01.js の NO_ITEMS。画面での確認で出た直す項目 No.9） */
.clip .empty-box { margin: 0; padding: 40px 16px; text-align: center; font-size: 18px; color: #444; }
/* 収穫出荷計画（SHP-01）：収穫量・受注の確定の帯、マスに直接入力する欄、選んでいるマス・作業日、確定済みの作業日、色の凡例 */
.actbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; background: #f2f6fa; border: 1px solid #a6a6a6; border-bottom: 0; padding: 7px 10px; }
.actbar .lb { font-size: 14px; color: #444; }
.actbar .right { display: flex; gap: 8px; }
.cell { font: inherit; color: inherit; width: 100%; text-align: right; border: 1px solid #ddd; background: #fff; padding: 0 3px; line-height: 1.25; }
.cell::placeholder { color: #bbb; }
.cell:hover { border-color: #999; }
.cell:focus { border-color: #1a5b66; outline: 2px solid #1a5b66; outline-offset: -2px; }
.cell[readonly] { border-color: transparent; background: transparent; }
.plan td.qsel { outline: 2px solid #1a4b8c; outline-offset: -2px; }
.plan thead th.fixd { background: #d5ecd4; }
.plan thead th .fx { margin-left: 3px; font-size: 14px; color: #2e6b2e; font-weight: bold; }
/* 選んでいる作業日の見出しは、地の色を変えずに、上段と下段の 2 段を合わせて濃い色の太い枠で囲む（画面での確認で出た直す項目 No.10） */
.plan thead th.pick.pick-top { box-shadow: inset 3px 0 0 #1a4b8c, inset -3px 0 0 #1a4b8c, inset 0 3px 0 #1a4b8c; }
.plan thead th.pick.pick-bottom { box-shadow: inset 3px 0 0 #1a4b8c, inset -3px 0 0 #1a4b8c, inset 0 -3px 0 #1a4b8c; }
.plan thead th.ctr[data-date] { cursor: pointer; }
.plan thead th.ctr[data-date]:hover { text-decoration: underline; }
.hwrap .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; }
.hwrap .legend .sw { display: inline-block; width: 12px; height: 12px; border: 1px solid #bbb; vertical-align: -2px; margin-right: 3px; }
.hwrap .legend .sw.pick { width: 8px; height: 8px; border: 3px solid #1a4b8c; background: #fff; }
.hwrap .legend .sw.fixd { background: #d5ecd4; }
.hwrap .legend .sw.alt { background: #f6e3b8; }
.hwrap .legend .sw.plus { background: #d4e6f7; }
.plan td.v.alt:hover { background: #f6e3b8; }
.plan td.v.plus:hover { background: #d4e6f7; }
.plan .c2.kubun .hint { display: block; font-size: 14px; color: #595959; }
/* 収穫出荷計画（SHP-01）の配色（画面のモックアップの SHP-01 の「配色」）。生産計画（PRD-01）も .plan を使うため、SHP-01 の表（#shp-plan）と表の上の帯（#shp-top）で絞る */
#shp-plan input.cell { border: 1px solid #cdd8df; box-shadow: none; }
#shp-plan input.cell:hover { border-color: #8fa5b0; }
#shp-plan input.cell:focus { border-color: #1a5b66; outline: 2px solid #1a5b66; outline-offset: -2px; }
#shp-plan input.cell[readonly] { border-color: transparent; background: transparent; }
#shp-plan th, #shp-plan td { border-right-color: #c3ced6; border-bottom-color: #c3ced6; }
#shp-plan tbody .c2.kubun { background: #edf2f5; }
#shp-plan tbody tr.top td, #shp-plan tbody tr.top th { border-top-color: #5f7c88; }
#shp-plan td.cyc { border-left-color: #5f7c88; }
/* 選んでいる作業日（pick）は、地の色を変えずに太い枠で囲むため、確定済みの作業日を選んだときは確定済みの緑（fixd）の地に枠が付く（練習の後に直す項目 No.29、画面での確認で出た直す項目 No.10） */
#shp-plan thead th.fixd { background: #dcebe3; }
#shp-plan thead th .fx { color: #2f6b5b; }
#shp-plan td.v.alt { background: #f5e6d3; }
#shp-plan td.v.plus { background: #d9ecef; }
#shp-plan td.qsel { outline-color: #1a5b66; }
#shp-top .legend .sw { border-color: #a9b6be; }
#shp-top .legend .sw.pick { border-color: #1a4b8c; background: #fff; }
#shp-top .legend .sw.fixd { background: #dcebe3; }
#shp-top .legend .sw.alt { background: #f5e6d3; }
#shp-top .legend .sw.plus { background: #d9ecef; }
/* 収穫出荷計画（SHP-01）：前日残のマス（マイナスの赤字、上書きの欄、処分区分の g 数）、当日納品の印、セルのメモの印と全文、品目のメモの行、当日納品の案内、メモのポップアップウィンドウ（画面のモックアップの SHP-01）。
   当日納品の印とセルのメモの印は、左に固定した 2 列の下へスクロールしたときに上に出ないよう、数量のマスの中で重ねる */
#shp-plan td.neg .cell { color: #c00; }
#shp-plan td.neg .cell::placeholder { color: #c00; opacity: .75; }
#shp-plan .c2.kubun .hint { font-size: 12px; color: #666; }
#shp-plan td.v.disp { background: #ebe3f0; }
#shp-plan .zen::placeholder { color: #999; font-weight: normal; }
#shp-plan .dispg { display: block; margin: 0 0 1px auto; padding: 0; border: 0; background: none; color: #5e4a78; font-size: 12px; font-weight: bold; text-decoration: underline; cursor: pointer; white-space: nowrap; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 1px 1px 0 #404040; }
#shp-plan td.qcell { position: relative; z-index: 0; }
#shp-plan .toujitsu { position: absolute; left: 1px; top: 1px; z-index: 1; padding: 0 2px; background: #1a5b66; color: #fff; font-size: 11px; font-weight: bold; line-height: 1.3; }
#shp-plan .cmemo { position: absolute; right: 0; top: 0; z-index: 1; width: 0; height: 0; padding: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent #c00 transparent transparent; background: none; cursor: pointer; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 1px 1px 0 #404040; }
#shp-plan td.imemo { text-align: left; white-space: normal; word-break: break-all; max-width: 76px; font-size: 13px; color: #222; cursor: pointer; }
#shp-plan td.imemo:hover { background: #eef3f8; }
#shp-top .legend .sw.disp { background: #ebe3f0; }
#shp-top .legend .neg { color: #c00; }
#shp-top .legend .toujitsu { padding: 0 2px; background: #1a5b66; color: #fff; }
#shp-top .legend .cmemo { color: #c00; }
#shp-memo-tip { position: fixed; z-index: 50; max-width: 260px; padding: 4px 8px; border: 1px solid #999; background: #fffbe0; font-size: 14px; }
#sameMsg { margin: 0; padding: 2px 8px; font-size: 14px; color: #c00; background: #f2f6fa; border-left: 1px solid #a6a6a6; border-right: 1px solid #a6a6a6; }
#sameMsg:empty { display: none; }
#shp-memo-dialog { width: 520px; max-width: calc(100vw - 32px); }
#shp-memo-input { width: 100%; box-sizing: border-box; padding: 4px 6px; }
/* 処理が 1 秒を超えても終わらないあいだの砂時計のカーソル（web/js/common/busy.js の withBusy。収穫出荷計画 SHP-01 の保存などと、帳票と CSV の出力のボタンで使う） */
body.busy, body.busy * { cursor: wait !important; }
/* 作業表（WRK-01）：品目の列は幅を決め、余った幅をメモの列に回す。メモの欄は納品先のまとまりの行数ぶんのマスいっぱいに広げる */
table.ship { table-layout: fixed; width: 100%; min-width: 1180px; }
table.ship col:nth-child(1) { width: 42px; }
table.ship col:nth-child(2) { width: 200px; }
table.ship col:nth-child(3) { width: 110px; }
table.ship col:nth-child(4) { width: 96px; }
table.ship col:nth-child(5) { width: 76px; }
table.ship col:nth-child(6) { width: 76px; }
table.ship col:nth-child(7) { width: 66px; }
table.ship col:nth-child(8) { width: 84px; }
table.ship col:nth-child(9) { width: 100px; }
table.ship td { overflow: hidden; text-overflow: ellipsis; }
tr.dest th { background: #f2f2f2; text-align: left; font-weight: bold; }
tr.dest th.ctr { text-align: center; font-weight: normal; vertical-align: middle; }
td.note { position: relative; padding: 3px; }
td.note textarea { position: absolute; top: 3px; right: 3px; bottom: 3px; left: 3px; font: inherit; font-size: 15px; color: inherit; line-height: 1.4; resize: none; border: 1px solid #ddd; background: #fff; padding: 2px 4px; }
td.note textarea:hover { border-color: #999; }
td.note textarea:focus { border-color: #1a5b66; outline: 2px solid #1a5b66; outline-offset: -2px; }
/* 作業表（WRK-01）の納品書の内容の確認のポップアップウィンドウ：幅を広く取り、何通目か・納品先と納品日・送料の有無・合計を並べる */
dialog.dlg.wide { width: 980px; max-width: calc(100vw - 48px); max-height: 90vh; overflow: auto; }
.dlg.wide table { width: 100%; }
.dlg .lines { max-height: 360px; overflow: auto; margin-bottom: 8px; }
/* ポップアップウィンドウの中の小見出し（納品書 DLV-01 の「変更前（発行済み）」「変更後（発行する内容）」、請求書発行 BIL-01 の「変更前（発行済み）」「変更後」。画面での確認で出た直す項目 No.23・No.24） */
.dlg h3.sec { font-size: 16px; margin: 14px 0 6px; color: #1a5b66; }
/* 請求書発行（BIL-01）の差異のポップアップウィンドウ：差異のある金額の行（tr.chg）を太字・赤にする（web/js/bil-01.js。画面での確認で出た直す項目 No.15） */
.dlg tr.chg > td { font-weight: bold; color: #b3261e; }
/* 変更前と変更後を上下に並べて比べる表（DLV-01 の table.cmp-dlv、BIL-01 の table.cmp-bil）：2 つの表の列の幅をそろえる（画面での確認で出た直す項目 No.23・No.24） */
.dlg table.cmp-dlv, .dlg table.cmp-bil { width: 100%; table-layout: fixed; }
.dlg table.cmp-dlv th:nth-child(1) { width: 40%; }
.dlg table.cmp-dlv th:nth-child(2), .dlg table.cmp-dlv th:nth-child(3), .dlg table.cmp-dlv th:nth-child(4) { width: 14%; }
.dlg table.cmp-dlv th:nth-child(5) { width: 18%; }
.dlg table.cmp-bil th:nth-child(1) { width: 11%; }
.dlg table.cmp-bil th:nth-child(2) { width: 14%; }
.dlg table.cmp-bil th:nth-child(3) { width: 21%; }
.dlg table.cmp-bil th:nth-child(4) { width: 22%; }
.dlg table.cmp-bil th:nth-child(5), .dlg table.cmp-bil th:nth-child(7) { width: 8%; }
.dlg table.cmp-bil th:nth-child(6) { width: 7%; }
.dlg table.cmp-bil th:nth-child(8) { width: 9%; }
.dlg table.cmp-dlv td, .dlg table.cmp-bil td { overflow-wrap: anywhere; }
.dlg table.cmp-bil td.none { text-align: center; color: #595959; }
.dlg .pager { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.dlg .pager b { min-width: 5em; text-align: center; }
.dlg .slip-meta { font-size: 15px; margin: 0 0 10px; }
.dlg .slip-meta span { margin-right: 14px; }
.dlg .ship-pick { font-size: 15px; margin: 0 0 10px; }
.dlg .ship-pick label { margin-right: 8px; color: #444; }
.dlg .slip-tot { margin: 6px 0 0; font-size: 15px; }
.dlg .slip-tot b { margin-right: 14px; }
/* データ照会（INQ-01）：タブの中の絞り込みと表のあいだ（画面のモックアップの INQ-01） */
.tabbody [data-panel] > .filter { margin-bottom: 12px; }
/* お知らせ（COM-03）：お知らせが無いときの 1 行、月の予定のカレンダー、選んだ日の予定（画面のモックアップの COM-03） */
.none { background: #fff; border: 1px solid #a6a6a6; padding: 20px; color: #444; margin-bottom: 14px; }
.cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-bar .mon { flex: 1; text-align: center; font-size: 17px; }
.legend { font-size: 14px; color: #444; margin: 0 0 8px; }
.legend span { margin-right: 12px; }
table.monthcal { width: 100%; table-layout: fixed; }
table.monthcal th { text-align: center; font-size: 14px; padding: 4px; }
table.monthcal td { height: 112px; vertical-align: top; padding: 3px 4px 2px; cursor: pointer; background: #fff; }
table.monthcal td.out { background: #fafafa; color: #767676; }
table.monthcal td.today { box-shadow: inset 0 0 0 2px #1a5b66; }
table.monthcal td.on { background: #deebf7; }
table.monthcal .n { display: block; font-size: 14px; font-weight: bold; margin-bottom: 2px; }
table.monthcal td.out .n { font-weight: normal; }
table.monthcal a.chip { display: block; font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; text-decoration: none; }
table.monthcal a.chip:hover { text-decoration: underline; background: #deebf7; }
table.monthcal a.chip.done { color: #767676; }
table.monthcal .more { font-size: 14px; color: #555; }
.daybox { margin-top: 12px; }
.daybox h2 { font-size: 16px; margin: 0 0 8px; padding: 6px 10px; background: #deebf7; border-bottom: 1px solid #9bb7d4; }
.daybox table { width: 100%; }
.daybox tr.evrow { cursor: pointer; }
.daybox tr.evrow:hover td { background: #deebf7; }
.daybox a.ev { color: inherit; text-decoration: none; }
.daybox a.ev:hover { text-decoration: underline; }
.empty-day { color: #444; padding: 8px 0; }
/* データ取込（IMP-01）：反映のボタンの並びと表のあいだ（画面のモックアップの IMP-01） */
.filter.bar { margin-bottom: 12px; }
/* 画面の幅が 1,200 ピクセルより狭いとき：入力の並びを 2 列（項目名と欄）にする */
@media (max-width: 1199px) {
  .form { grid-template-columns: 180px 1fr; }
  .form .full { grid-column: 2; }
}
/* 画面の幅が 700 ピクセルより狭いとき：項目名を欄の上に置く */
@media (max-width: 699px) {
  .form, .form.stack { grid-template-columns: 1fr; }
  .form .full, .form.stack .full, .form .hint { grid-column: 1; }
}
