.sd-panel{min-width:0;margin-bottom:16px}
.sd-panel h2{font-size:17px;margin:0 0 5px}
.sd-panel h2 small{font-weight:400;font-size:12px;margin-left:8px;color:#64748b;display:inline-block}
.sd-panel>.toolbar{align-items:center;margin-bottom:12px}
.sd-panel>.toolbar>div:first-child{min-width:0}
.sd-panel>.toolbar>.actions{align-items:center}
.sd-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px 0;color:#64748b}
.sd-filter>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;flex:0 1 310px;min-width:0;max-width:100%;margin:0;font-size:13px;white-space:nowrap}
.sd-filter select{min-width:0;width:100%;max-width:100%;margin:0}
.sd-filter>small{line-height:1.6}
.sd-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px}
.sd-count{display:flex;flex-direction:column;min-width:0;min-height:96px;margin:0;padding:13px 16px;border-radius:10px;background:#f1f5f9;border:1px solid #e2e8f0}
.sd-count strong{display:block;font-size:29px;margin-top:auto;padding-top:4px;line-height:1.25}
.sd-count strong span{font-size:12px;font-weight:400;margin-left:6px}
.sd-count.sd-work{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.sd-count.sd-rest{background:#f0fdfa;border-color:#99f6e4;color:#115e59}
.sd-count.sd-leave{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.sd-panel>details.sd-leave{margin-top:14px}
.sd-panel>details.sd-leave summary{cursor:pointer;font-size:13px;font-weight:600}
.sd-names{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto;margin-top:10px}
.sd-names>span{display:flex;gap:10px;align-items:center;padding:7px 10px;background:#f8fafc;border-radius:7px;border:1px solid #e2e8f0;font-size:13px}
.sd-names small{color:#64748b}
.sd-status{margin:12px 0 0;padding-top:10px;border-top:1px solid #e2e8f0;font-size:12px;color:#64748b}
.sd-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.sd-day{border:1px solid #e2e8f0;border-radius:9px;min-width:0;min-height:113px;margin:0;padding:12px 9px;display:flex;flex-direction:column;gap:9px;font-size:12px;overflow-wrap:anywhere}
.sd-day>b{font-size:15px}
.sd-day>small{color:#64748b}
.sd-day.sd-work{background:#eff6ff}
.sd-day.sd-rest{background:#f0fdfa}
.sd-day.sd-leave{background:#fff7ed}
.sd-day.sd-today{outline:2px solid #2563eb;outline-offset:-1px}
.sd-schedule-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0}
.sd-entry-list{max-height:60vh;overflow:auto}
.sd-entry{display:grid;grid-template-columns:100px 100px 1fr 1fr 65px;gap:8px;align-items:center;border-bottom:1px solid #e2e8f0;padding:12px 0}
.sd-entry label{font-size:12px}
.sd-entry input,.sd-entry select{min-width:0;width:100%}
.sd-entry .checkrow input{width:auto}
.sd-entry .sd-note{grid-column:2/-1}
.sd-entry strong{font-size:12px}
.sd-role-batch{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin:12px 0}
.sd-role-batch label{min-width:180px;margin:0}
@media(max-width:1000px){.sd-week{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){
 .sd-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sd-week{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sd-filter{align-items:stretch;flex-direction:column;gap:6px}
 .sd-filter>label{flex:none;width:100%;max-width:100%}
 .sd-entry{grid-template-columns:1fr 1fr}
 .sd-entry>strong{grid-column:1/-1}
 .sd-entry .sd-note{grid-column:1/-1}
 .sd-panel .toolbar{flex-wrap:wrap;gap:10px}
}
