/* 職員の当番表 */
.st-head { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 10px; }
@media (max-width: 760px) { .st-head { grid-template-columns: 1fr 1fr; } .st-head > :first-child { grid-column: 1 / -1; } }
.st-toolbar { align-items: center; }
.st-summary { display: grid; gap: 8px; margin: 12px 0 14px; }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.st-tile { --c: var(--ok); position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); padding: 10px 12px 10px 16px; display: grid; gap: 2px; }
.st-tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.st-tile.warn { --c: var(--warn); } .st-tile.bad { --c: var(--bad); }
.st-tile span { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.st-tile b { font-size: 26px; line-height: 1.1; font-family: var(--head); }
.st-tile b small { font-size: 13px; color: var(--ink2); margin-left: 2px; }
.st-fair { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 14px; }
.st-fair summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.st-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 22px; margin-top: 10px; }
.st-barrow { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.2em; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.st-barrow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-barrow .nm small { color: var(--ink3); }
.st-barrow .bar { position: relative; display: flex; height: 14px; border-radius: 4px; background: var(--bg2); overflow: visible; }
.st-barrow .bar i { display: block; height: 100%; }
.st-barrow .bar i:first-child { border-radius: 4px 0 0 4px; }
.st-barrow .bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .55; border-radius: 1px; }
.st-barrow b { text-align: right; font-variant-numeric: tabular-nums; }
.st-barrow b.warn { color: var(--warn); }
.st-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--ink2); }
.st-legend span { display: inline-flex; align-items: center; gap: 5px; }
.st-legend i, .st-table .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.st-months { flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.st-table { font-size: 13.5px; }
.st-table th { white-space: nowrap; }
.st-table th .dot { margin-right: 5px; vertical-align: -1px; }
.st-table th small { margin-left: 4px; font-weight: 400; color: var(--ink3); font-size: 11px; }
.st-table td.dt { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; width: 6.5em; }
.st-table tr.wk td { border-top: 2px solid var(--line); }
.st-table tr.off td { background: var(--bg2); }
.st-table td.na { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-soft) 6px 7px); }
.st-table td.cell { cursor: pointer; }
.st-table td.cell:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.st-name { display: inline-block; margin: 1px 4px 1px 0; padding: 2px 8px; border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--c) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); }
.st-name.empty { background: color-mix(in srgb, var(--bad) 12%, var(--card)); border-color: var(--bad); color: var(--bad); }
.st-name.ng { outline: 2px solid var(--bad); }
.st-name.cs { outline: 2px dashed var(--warn); }
.st-name.fx::after { content: "固"; margin-left: 4px; font-size: 10px; color: var(--ink3); }
.st-ctable td.n { text-align: right; font-variant-numeric: tabular-nums; }
.st-ctable td.b { font-weight: 800; }
.st-ctable td.warn { color: var(--warn); font-weight: 800; }
.st-duties { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 12px; }
.st-duty { display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; background: var(--card); padding: 12px 14px; min-width: 0; }
.st-duty .btn { justify-self: start; }
.st-duty .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.st-duty .chip, .st-ng .chip { padding: 3px 9px; font-size: 12.5px; }
.st-color { padding: 2px; height: 38px; }
.st-stable .input { min-height: 34px; padding: 4px 7px; font-size: 14px; }
.st-ng { display: flex; flex-wrap: nowrap; gap: 3px; }
.st-w4 { width: 70px; } .st-w5 { width: 120px; } .st-w8 { width: 130px; } .st-w12 { width: 180px; }
.st-off { gap: 18px; }
.st-off h3 { margin: 0; font-size: 15px; }
.st-off .btn { justify-self: start; }
.st-offrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.st-offrow.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
@media (max-width: 520px) { .st-offrow { grid-template-columns: 1fr 1fr auto; } .st-offrow > :nth-child(3) { grid-column: 1 / 3; } }
