/* /tools/kaigo-shift（シフト表の枠）の面だけの見た目。色・線・余白は変数から。表の広い枠は表の領域の中で横に動かす（ページの幅は広げない） */
.bc.ds #ks-kinds{border:0;padding:0;margin:var(--ds-space-item) 0 0}
.bc.ds #ks-kinds legend{font-weight:700;padding:0 0 var(--bc-space-2)}
.bc.ds #ks-kinds-list{display:flex;flex-wrap:wrap;gap:var(--bc-space-2) var(--bc-space-4)}
.bc.ds #ks-kinds-list .bc-field{margin:0}

.bc.ds .ks-frame .bc-table-wrap{max-width:100%;overflow-x:auto}
.bc.ds .ks-table{width:100%;min-width:56rem;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.bc.ds .ks-table caption{caption-side:top;text-align:left;font-weight:700;padding-bottom:var(--bc-space-2)}
.bc.ds .ks-table th,.bc.ds .ks-table td{border:1px solid var(--bc-border);padding:0;text-align:center;vertical-align:middle}
.bc.ds .ks-table thead th{background:var(--bc-surface);font-weight:600;font-size:var(--ds-text-small);line-height:1.3;padding:var(--bc-space-1) 0}
.bc.ds .ks-table .ks-no{width:3rem}
.bc.ds .ks-table .ks-name{width:7rem}
.bc.ds .ks-table tbody th.ks-no{background:var(--bc-surface);font-weight:600}
.bc.ds .ks-table tbody td{height:var(--bc-target)}
.bc.ds .ks-table .ks-h{vertical-align:top}
.bc.ds .ks-table .ks-h span{display:inline-block;writing-mode:vertical-rl;font-weight:400;line-height:1.2;padding:var(--bc-space-1) 0}
.bc.ds .ks-table th.is-sat,.bc.ds .ks-table td.is-sat{background:var(--bc-sat-bg,var(--bc-surface));color:var(--bc-sat)}
.bc.ds .ks-table th.is-sun,.bc.ds .ks-table td.is-sun{background:var(--bc-sun-bg,var(--bc-surface));color:var(--bc-sun)}
.bc.ds .ks-table td.is-sat,.bc.ds .ks-table td.is-sun{color:inherit}
.bc.ds .ks-more{margin:var(--bc-space-2) 0 0}
.bc.ds .ks-hol{margin-top:var(--bc-space-2)}
.bc.ds .ks-legend{display:flex;flex-wrap:wrap;gap:var(--bc-space-2) var(--bc-space-4);list-style:none;margin:0;padding:0}
.bc.ds .ks-legend li{display:inline-flex;align-items:center;gap:var(--bc-space-2)}
.bc.ds .ks-sym{display:inline-flex;align-items:center;justify-content:center;min-width:1.75rem;height:1.75rem;border:1px solid var(--bc-border);border-radius:var(--bc-radius-input);font-weight:700;background:var(--bc-surface)}

/* 早見表: 入れた月の行を強調 */
.bc.ds #hayami tr.is-mine th,.bc.ds #hayami tr.is-mine td{background:var(--bc-current-bg)}
.bc.ds #hayami td strong{color:var(--bc-brand)}

/* 月の格子: 4 週間の窓を交互に色分け（1 つ目・3 つ目は ds の is-run、2 つ目は is-win2） */
.bc.ds .ds-monthgrid__month td.is-win2{background:var(--bc-good-bg);box-shadow:inset 0 -3px 0 var(--bc-good-text)}
.bc.ds .ds-monthgrid__key--win2{--ds-mg:var(--bc-good-bg)}
.bc.ds .ds-monthgrid__key--win2::before{box-shadow:inset 0 -3px 0 var(--bc-good-text)}

/* 枠は A4 横の紙 1 枚に収める。印刷では畳んだ行も全部出し、操作の部品は出さない */
@media print{
 @page{size:A4 landscape;margin:10mm}
 .bc.ds .ks-table{min-width:0;font-size:9pt}
 .bc.ds .ks-table tbody td{height:7mm}
 .bc.ds .ks-table tr[data-ks-extra][hidden]{display:table-row!important}
 .bc.ds .ks-more{display:none!important}
 .bc.ds .ks-frame .bc-table-wrap{overflow:visible;max-height:none}
}
