/* ページ専用（plan）。共通は app.css。11/17 1ページ1エージェントで作り直し
   先生 1. 計画：日程と対象（見本B）・受け入れ先の一覧の取込（見本C）・生徒の名簿（見本D）・起案用の資料の印刷（F13） */

.pl-page { display: block; }
.pl-h { margin: 0 0 12px; font-size: var(--fs-17); font-weight: 600; color: var(--label); }
.pl-sub, .pl-note { margin: 0; font-size: var(--fs-13); color: var(--label2); }
.pl-err { margin: 0; font-size: var(--fs-13); font-weight: 600; color: var(--bad); }
/* 済んだ知らせ：左の色線・淡い塗りはやめ、上下の罫線と緑の字だけ（11/18 Apple S） */
.pl-result { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-15); color: var(--good); }
.pl-have { margin: 0 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-15); color: var(--good); }
.pl-have a, .pl-result a, .pl-err a, .pl-note a { color: var(--brand-text); }
.pl-file { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; font-size: var(--fs-15); color: var(--label); }

/* ── 日程と対象（2列。狭い所は1列） ── */
.pl-form { display: flex; flex-direction: column; gap: 24px; }
.pl-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1200px) { .pl-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.pl-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pl-col .k-tl { max-width: none; }
.pl-pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.pl-pair-i { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); color: var(--label2); }
.pl-pair-to { padding-bottom: 12px; font-size: var(--fs-15); color: var(--label2); }
.pl-pair .k-tl-date { width: 180px; }
.pl-eval { margin: 0; font-size: var(--fs-15); color: var(--label); }
.k-tl-i.is-error .pl-pair .k-tl-date:invalid, .k-tl-i.is-error .k-tl-date { border: 2px solid var(--bad); padding-left: 12px; }

/* 後ろの日付をずらすか */
/* 左の色線・淡い塗りはやめ、上に濃い罫線（今やることと同じ形）。オレンジは使わない（11/18 Apple S） */
.pl-ask { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 2px solid var(--ink); }
.pl-ask p { margin: 0; font-size: var(--fs-15); color: var(--label); }
.pl-ask-a { display: flex; flex-wrap: wrap; gap: 8px; }

/* 学年・学科のチェック */
.pl-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-check { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl); padding: 0 16px 0 12px; border: 1px solid var(--line-strong); background: var(--bg); font-size: var(--fs-15); color: var(--label); cursor: pointer; }
.pl-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.pl-check:has(input:checked) { border-color: var(--brand); color: var(--brand-text); font-weight: 600; }
.pl-check:has(input:focus-visible) { outline: var(--focus-ring); outline-offset: 2px; }
.pl-check input:focus-visible { outline: 0; }
.pl-purpose { width: 100%; min-height: 120px; padding: 8px 12px; line-height: 1.7; resize: vertical; }

/* 下の帯：説明と、起案用の資料・保存（取込：やめる・取り込む） */
.pl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.pl-foot-n { flex: 1 1 280px; margin: 0; font-size: var(--fs-13); color: var(--label2); }
.pl-foot-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 699px) {
  .pl-foot-a { width: 100%; flex-direction: column-reverse; }
  .pl-foot-a .k-btn { width: 100%; }
}

/* ── 貼り付け（小さなリンクから開く） ── */
.pl-paste { display: flex; flex-direction: column; gap: 8px; }
.pl-paste-l { font-size: var(--fs-15); font-weight: 600; color: var(--label); }
.pl-paste textarea { width: 100%; padding: 8px 12px; border-radius: 0; font-size: var(--fs-13); }
.pl-paste-a { display: flex; justify-content: flex-end; }

/* ── 受け入れ先の一覧（見本C） ── */
.pl-companies .split-body { gap: 16px; }
.pl-tbl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pl-tbl-h .pl-h { margin: 0; }
.pl-co-table .k-table td { padding-block: 8px; }
.pl-co-table .k-table td.num, .pl-co-table .k-table th.num { width: 48px; }
.pl-co-table .k-table td.act { width: 1%; white-space: nowrap; }
.pl-rowno { color: var(--label2); font-variant-numeric: tabular-nums; }
.pl-acts { display: inline-flex; gap: 12px; align-items: center; }
.pl-lack { display: block; font-size: var(--fs-13); font-weight: 600; color: var(--bad); }
.pl-note-l { display: block; }
.pl-off { font-size: var(--fs-13); color: var(--label2); }
.pl-cell-in { display: block; width: 100%; min-width: 120px; min-height: var(--ctl); padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 0; font-size: var(--fs-15); }
.pl-cell-in + .pl-cell-in { margin-top: 4px; }
.pl-cell-in:focus-visible { outline: var(--focus-ring); outline-offset: 0; }
/* スマホ：1社1段に */
@media (max-width: 699px) {
  .pl-co-table .k-table thead { display: none; }
  .pl-co-table .k-table, .pl-co-table .k-table tbody, .pl-co-table .k-table tr, .pl-co-table .k-table td { display: block; width: auto; }
  .pl-co-table .k-table tr { padding: 12px 12px; border-bottom: 1px solid var(--line); }
  .pl-co-table .k-table tbody td { height: auto; padding: 4px 0; border: 0; }
  .pl-co-table .k-table td.num { display: none; }
  .pl-co-table .k-table td:nth-child(2) { font-weight: 600; }
  .pl-co-table .k-table td.act { width: auto; padding-top: 4px; }
}

/* ── 生徒の名簿（見本D：①→②→③） ── */
.pl-roster .split-body { gap: 0; }
.pl-roster .k-steps { margin-bottom: 8px; }
.pl-step { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pl-step-h { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--fs-15); font-weight: 600; color: var(--label); }
.pl-step-n { font-size: var(--fs-17); line-height: 1.2; color: var(--label2); }
.pl-step.is-now .pl-step-n, .pl-step.is-now .pl-step-h { color: var(--brand-text); }
.pl-step.is-done .pl-step-n { color: var(--good); }
.pl-step.is-next .pl-step-h { color: var(--label2); }
.pl-step-b { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pl-lead { margin: 0; font-size: var(--fs-15); color: var(--label); }
.pl-ro-table { max-width: 560px; }
.pl-sel { width: 100%; max-width: 240px; min-height: var(--ctl); padding: 0 8px; border-radius: 0; }
.pl-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
@media (max-width: 699px) {
  .pl-step { grid-template-columns: minmax(0, 1fr); padding: 16px 0; }
  .pl-run .k-btn { width: 100%; }
  .pl-sel { max-width: none; }
}

/* ── 起案用の資料（F13）。画面には出さず、印刷だけ ── */
@media screen { .pl-print { display: none !important; } }
.letter .l-kian { display: flex; flex-direction: column; gap: 3mm; margin: 0 0 8mm; font-family: inherit; }
.letter .l-kian table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.letter .l-kian th, .letter .l-kian td { padding: 2mm 2.5mm; border: 1px solid var(--label); vertical-align: middle; line-height: 1.5; }
.letter .l-kian-t th { width: 6em; font-weight: 600; text-align: center; background: var(--fill); }
.letter .l-kian-t td { font-size: inherit; }
.letter .l-seal th { padding: 1mm; font-weight: 400; text-align: center; font-size: var(--fs-13); }
.letter .l-seal td { height: 18mm; }
.letter .l-seal .l-seal-l { width: 2.2em; padding: 1mm; font-weight: 600; writing-mode: vertical-rl; letter-spacing: .3em; background: var(--fill); }
.letter .l-dl dd { white-space: normal; }
@media print {
  .pl-print { display: block !important; }
  .letter .l-kian th, .letter .l-kian td { border-color: var(--label); }
  .letter .l-kian-t th, .letter .l-seal .l-seal-l { background: none; }
  .letter .l-seal th { font-size: 9pt; }
  .letter .l-kian { break-inside: avoid; }
  .letter .l-dl { break-inside: auto; }
  .letter .l-dl dt, .letter .l-dl dd { break-inside: avoid; }
}
/* 電話・担当者は折り返さない（PC・中くらいの幅） */
@media (min-width: 700px) { .pl-co-table .k-table td:nth-child(4), .pl-co-table .k-table td:nth-child(5) { white-space: nowrap; } }

/* ── 11/18 Apple S：時期の表の点を段の丸と同じ形に（四角い青の点をやめる） ── */
.pl-page .k-tl-dot { border-radius: 50%; }

/* ── 11/18 Apple S：ホーム・巡回の予定表（app.css の .cal-ev の色の左帯を、枠と字の色に置き換える）
   実施＝主色の枠、返事待ち＝点線の枠と灰の字、巡回（確定）＝緑の字と枠、巡回の返事待ち＝緑の点線の枠と灰の字。塗りはしない。 */
.cal-ev { padding: 0 4px; border: 1px solid var(--brand); border-left-width: 1px; background: none; color: var(--brand-text); }
.cal-ev.cal-wait { border: 1px dashed var(--line-strong); background: none; color: var(--label2); }
.cal-ev.cal-visit { border: 1px solid var(--good); background: none; color: var(--good); }
.cal-ev.cal-vwait { border: 1px dashed var(--good); background: none; color: var(--label2); }
.cal-today { background: none; }
.cal-today .cal-d { color: var(--brand-text); font-weight: 600; }
.cal-grid td .cal-ev + .cal-ev { margin-top: 4px; }
