/* Compact, six-week duty timeline and portrait bench for managers */
#managementDutyPlan{min-width:0}
.duty-plan-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.duty-plan-heading h2{font-size:25px;margin:4px 0}
.duty-plan-heading p{max-width:620px;line-height:1.5}
.duty-plan-pill{font-size:11px;font-weight:900;padding:7px 11px;border-radius:20px;background:#dcf8e5;color:#167142}
.duty-plan-timeline{display:flex;flex-direction:column;gap:10px}
.duty-plan-week{display:grid;grid-template-columns:minmax(140px,180px) minmax(0,1fr);align-items:center;gap:12px;padding:13px 15px;border:1px solid #dde4df;border-radius:16px;background:#fff;min-width:0}
.duty-plan-week.is-current{border:2px solid #43c77e;background:#f0fbf4;box-shadow:0 5px 18px #278b4a14}
.duty-plan-week-time{display:flex;flex-direction:column;gap:4px}
.duty-plan-week-index{font-size:11px;color:#23995a;font-weight:950;letter-spacing:1px}
.duty-plan-week-time strong{font-size:15px}
.duty-plan-week-time small{font-size:11px;color:#758779}
.duty-plan-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.duty-plan-assignee{display:flex;align-items:center;gap:10px;min-width:0;padding:7px 9px;border-radius:12px;background:#f5f7f5;border:1px solid #e2eae4}
.duty-plan-assignee.selected{border-color:#26b869;background:#eafded}
.duty-plan-avatar{display:flex;align-items:end;justify-content:center;width:48px;height:58px;flex:0 0 48px;overflow:visible}
.duty-plan-avatar img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.duty-plan-avatar-fallback{display:grid;place-items:center;align-self:end;width:42px;height:42px;border-radius:50%;background:#e2f0e6;color:#2a7750;font-size:13px;font-weight:900}
.duty-plan-person-name{min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px;font-weight:800}
.duty-plan-change{border:1px solid #b6dcc5;background:#e5f6eb;color:#236f43;font-size:11px;font-weight:800;border-radius:9px;padding:8px;cursor:pointer;white-space:nowrap}
.duty-plan-change:hover:not(:disabled){background:#c9f5d8}
.duty-plan-change:disabled{opacity:.5;cursor:not-allowed}
.duty-plan-bench-panel{margin-top:18px;padding:17px;border:1px solid #dce7df;border-radius:16px;background:#f9fcfa}
.duty-plan-bench-panel h3{margin:0 0 5px;font-size:17px}
.duty-plan-bench-panel p{margin:0 0 15px;font-size:12px;color:#65806d;line-height:1.5}
.duty-plan-bench{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.duty-plan-candidate{display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px 4px;border-radius:12px;background:#fff;border:1px solid #d7e1d9;color:inherit;cursor:pointer;min-width:0;transition:background .12s,border-color .12s}
.duty-plan-candidate .duty-plan-avatar{width:56px;height:67px;flex-basis:auto}
.duty-plan-candidate span:last-child{font-size:11px;line-height:1.2;font-weight:800;text-align:center;overflow-wrap:anywhere}
.duty-plan-candidate.selected{background:#e0fbe6;border:2px solid #30ba6c}
.duty-plan-candidate:hover:not(:disabled){background:#ebf8ef}
.duty-plan-candidate:disabled{opacity:.49;cursor:default}
.duty-plan-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}
.duty-plan-actions .buttons{display:flex;gap:7px}
.duty-plan-preview{font-size:12px;font-weight:750;color:#3c8256}
#dutyPlanMessage{font-size:12px;min-height:20px;margin:10px 0 0;color:#3d865a}
html[data-theme="dark"] .duty-plan-week{background:#282c2a;border-color:#414c43}
html[data-theme="dark"] .duty-plan-week.is-current{background:#223c2b;border-color:#43c77e}
html[data-theme="dark"] .duty-plan-assignee{background:#242b27;border-color:#424f47}
html[data-theme="dark"] .duty-plan-assignee.selected{background:#23442f;border-color:#43c77e}
html[data-theme="dark"] .duty-plan-bench-panel{background:#272d29;border-color:#425448}
html[data-theme="dark"] .duty-plan-candidate{background:#242d28;border-color:#4b5c50}
html[data-theme="dark"] .duty-plan-candidate.selected{background:#244e36;border-color:#43c77e}
html[data-theme="dark"] .duty-plan-change{background:#315d42;border-color:#47895e;color:#dcffe8}
html[data-theme="dark"] .duty-plan-week-time small,html[data-theme="dark"] .duty-plan-bench-panel p{color:#b4c6b7}
@media(max-width:1000px){.duty-plan-week{grid-template-columns:minmax(100px,145px) 1fr}.duty-plan-assignee{flex-wrap:wrap}.duty-plan-bench{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.duty-plan-week{grid-template-columns:1fr;gap:8px}.duty-plan-week-time{flex-direction:row;align-items:center;gap:10px}.duty-plan-week-time small{margin-left:auto}.duty-plan-members{gap:6px}.duty-plan-assignee{padding:6px}.duty-plan-avatar{width:40px;height:50px;flex-basis:40px}.duty-plan-person-name{font-size:11px}.duty-plan-change{width:100%}.duty-plan-bench{grid-template-columns:repeat(3,minmax(0,1fr))}}
