@charset "UTF-8";
/* げんば 第1期 / css/print.css  ── 印刷のときだけ効く（パソコンからでもスマホからでも同じ）
 * index.html で media="print" を付けて読む。
 *
 * 予定表は A4 横1枚に収める。
 *   1か月の予定の数から、文字の大きさ（--pfs）と札の行数（2行／1行）を app.js の fitPrint() が決め、
 *   カレンダーに付ける。ここの数字（行の高さ 1.25・すき間）を変えたら、fitPrint() の数字も同じに直す。
 * 白黒で刷っても担当が分かるように、札の頭に担当の名前を文字で出す。
 */

@page{size:A4 landscape;margin:7mm}
html,body{background:#fff!important}
body{min-height:0;color:#000;font-size:8pt;line-height:1.3;-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* 画面の操作の部品は刷らない */
.splash,.hdr,nav,.mockbar,.bar,.verbar,.todo,.tabs,.fab,.toast,.sheet,.loading,.addbtn,.agenda,.shint,.noprint,#login,#noaccess{display:none!important}
main{width:auto;max-width:none;margin:0;padding:0}
section{animation:none}
h2{margin:0 0 1mm;padding:0;color:#000;font-size:13pt;letter-spacing:.02em}
h2::before{display:none}
.sub{margin:0 0 2mm;padding:0;color:#333;font-size:8pt}
.panel{overflow:visible;border:0;border-radius:0;box-shadow:none}

/* ---------------- 予定表 ---------------- */
#plan > h2,#plan > .sub{display:none}
.printhead{
  display:flex;align-items:baseline;gap:5mm;
  height:8mm;margin:0 0 1.5mm;padding-bottom:1mm;overflow:hidden;
  color:#222;font-size:8pt;white-space:nowrap;
  border-bottom:.5mm solid var(--navy);
}
.printhead .pt{color:var(--navy-deep);font-family:var(--num);font-size:14pt;font-weight:700;letter-spacing:.04em}
.printhead .pi{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
.printhead .lg{display:flex;gap:3.5mm;margin-left:auto}
.printhead .lg i{width:3mm;height:3mm;margin-right:1mm;border-radius:.6mm}
.printhead .pw{color:var(--warn);font-weight:800}

table.cal{
  display:table!important;width:100%;height:auto;
  table-layout:fixed;border-collapse:collapse;border-spacing:0;
  background:#fff;border:.3mm solid #888;border-radius:0;box-shadow:none;
}
table.cal th{height:5mm;padding:0;color:#222;background:#eeeeee;border:.25mm solid #999;font-size:8pt;line-height:1;letter-spacing:.3em}
table.cal th.sun{color:var(--sun);background:#f7e6e8}
table.cal th.sat{color:var(--sat);background:#e6e9f5}
table.cal td{
  height:auto;padding:.7mm 1mm;overflow:hidden;
  background:#fff;border:.25mm solid #999;
  font-size:var(--pfs,7pt);line-height:1.25;
  break-inside:avoid;
}
table.cal td.out{background:#f0f0f0}
table.cal td.hol{background:#fdf0f0}
table.cal td.sun .dnum,table.cal td.hol .dnum{color:var(--sun)}
table.cal td.sat .dnum{color:var(--sat)}
.hn{margin-left:1.2mm;font-size:.85em;font-weight:800}
table.cal tr{break-inside:avoid}
table.cal tbody tr{height:var(--prh,30mm)}   /* 週ごとの高さは app.js の fitPrint() が決める */
.dnum{margin:0 0 .4mm;color:#000;font-size:var(--pfs,7pt);line-height:1.25;font-weight:700}

/* 札：2行（1行目＝店、2行目＝時刻・担当・状態）。はみ出す字は切る（行の数が変わると1枚に収まらなくなるため） */
.ev{
  margin:0 0 .5mm;padding:.2mm .6mm .2mm 1mm;overflow:hidden;
  color:#000;background:#fff!important;
  border-left:1mm solid var(--vc,#777);border-radius:0;box-shadow:none!important;transform:none!important;
  font-size:var(--pfs,7pt);line-height:1.25;white-space:nowrap;
}
.ev .nm{display:block;overflow:hidden;color:#000;text-overflow:ellipsis;font-weight:800}
.ev .tm{color:#222;font-weight:600}
.ev .nd{margin-left:.5mm;font-size:.85em}
.ev .ac{display:inline-block;margin-left:1mm;padding:0 .6mm;color:#000;border:.2mm solid #666;border-radius:.6mm;font-size:.72em;font-weight:800;line-height:1.15}
.ev .st{margin-left:1mm;padding:0 .6mm;color:#000;background:none!important;border:.2mm solid #666;border-radius:.6mm;font-size:.82em;line-height:1.15}
.ev .by{display:none}
.ev.cancelled{opacity:1;color:#666}
.ev.cancelled .nm{color:#666}

/* 予定が多い月：札を1行にまとめる（店・はじめの時刻）。店の名前を いちばん先に読めるようにし、
   おわりの時刻と担当の名前は出さない（担当は札の左の色と、頭の凡例で分かる） */
table.cal.p1 .ev{display:flex;align-items:baseline;gap:.8mm}
table.cal.p1 .ev .nm{display:block;min-width:0;flex:1 1 auto}
table.cal.p1 .ev .tm{flex:none}
table.cal.p1 .ev .t2,table.cal.p1 .ev .ac{display:none}
table.cal.p1 .ev .st{flex:none;margin-left:0}

/* ---------------- 管理表・ズレ確認・記録（Ctrl+P で刷ったとき） ---------------- */
table.grid{width:100%;font-size:6.8pt;white-space:normal;border:.25mm solid #999}
table.grid th,table.grid td{position:static!important;padding:.5mm 1mm;border:.2mm solid #bbb;box-shadow:none!important}
table.grid th{color:#000;background:#eee!important}
table.grid thead{display:table-header-group}
table.grid tfoot{display:table-row-group}
table.grid tr{break-inside:avoid}
table.grid td.why{min-width:0}
.scroll{overflow:visible!important}
.pill{padding:0 1mm;border:.2mm solid currentColor;font-size:6.5pt}
.hint{font-size:7pt}
