.planner-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.planner-tools input,.planner-tools select{padding:10px 12px;border:1px solid #abc9da;border-radius:8px;font:14px system-ui;background:white;color:#163d53}.planner-summary{font:14px system-ui;color:#42677c}.planner-scroll{overflow:auto;max-height:650px;border:1px solid #adcada;border-radius:12px;background:white}.planner-grid{width:max-content;min-width:100%}.planner-row{display:flex;border-bottom:1px solid #d9e7ee;min-height:88px}.planner-label{width:280px;min-width:280px;position:sticky;left:0;background:white;z-index:3;border-right:1px solid #c7dce7;padding:12px 16px;box-sizing:border-box}.planner-label strong{display:block;font-size:15px;color:#183f55}.planner-label small{display:block;font-size:13px;color:#597182;margin-top:5px}.planner-label button{border:0;background:none;color:#126887;padding:4px 0;cursor:pointer;font:13px system-ui}.planner-label input[type=color]{width:22px;height:22px;padding:0;border:0;vertical-align:middle;margin-right:6px}.planner-track{position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent 47px,#dfebf1 47px,#dfebf1 48px);height:88px;flex:none}.planner-weekend{position:absolute;top:0;bottom:0;background:#e9f0f5;pointer-events:none}.planner-bar{position:absolute;top:30px;height:32px;border-radius:6px;cursor:grab;touch-action:none;color:white;display:flex;align-items:center;min-width:24px;box-shadow:0 2px 4px #173c5520;z-index:1}.planner-bar:focus{outline:3px solid #1a7297;outline-offset:3px}.planner-bar.dragging{cursor:grabbing;opacity:.8;box-shadow:0 5px 18px #173c5540}.planner-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 12px;font:600 12px system-ui;pointer-events:none}.planner-handle{position:absolute;top:0;bottom:0;width:9px;cursor:ew-resize;background:#ffffff55;border:0;padding:0}.planner-handle.left{left:0;border-radius:6px 0 0 6px}.planner-handle.right{right:0;border-radius:0 6px 6px 0}.planner-head{position:sticky;top:0;z-index:5;background:#edf5fa;min-height:58px}.planner-head .planner-label{background:#edf5fa}.planner-day{width:48px;box-sizing:border-box;text-align:center;border-right:1px solid #d1e3ed;padding:10px 0;color:#274d62;font:12px system-ui}.planner-day strong{display:block;font-size:14px;margin-top:4px}.planner-empty{padding:24px;font-size:16px}.planner-status{min-height:22px;font:14px system-ui;color:#126887;margin:10px 0}.planner-help{font-size:14px;color:#526b7c}.contractor-section .schedule-scroll{display:none}@media print{.planner-scroll,.planner-tools,.planner-help,.planner-status{display:none}.contractor-section .schedule-scroll{display:block}}@media(max-width:650px){.planner-label{width:210px;min-width:210px}}

.planner-caption{position:absolute;top:-22px;left:0;max-width:100%;box-sizing:border-box;color:#183f55;padding:0;font-size:13px;line-height:18px}.planner-bar{box-shadow:none}.planner-handle{z-index:2}
/* Spacious planning workspace. */
body main{max-width:1920px;padding-left:24px;padding-right:24px}.contractor-section{margin-top:18px;margin-bottom:28px}.planner-scroll{max-height:74vh;min-height:300px}.planner-tools{position:sticky;top:0;z-index:8;background:#f8fafcf5;backdrop-filter:blur(10px);padding:12px 0;border-bottom:1px solid #d9e4ef}.planner-tools label{font-size:14px;display:flex;align-items:center;gap:7px}.planner-head{min-height:72px}.planner-head .planner-label{padding-top:20px}.planner-day{padding-top:23px;position:relative}.planner-week-label{position:absolute;top:4px;left:3px;white-space:nowrap;font-size:11px;font-weight:700;color:#42677e}.planner-label{width:310px;min-width:310px}.planner-label button{font-size:14px;line-height:1.4;text-align:left;font-weight:600;max-width:100%}.planner-label strong{font-size:15px}.planner-row{min-height:110px}.planner-track{height:110px;background-size:var(--planner-day,48px) 100%;background-image:linear-gradient(to right,transparent calc(100% - 1px),#dfebf1 calc(100% - 1px));background-repeat:repeat}.planner-bar{top:54px;height:24px}.planner-caption{top:-25px;font-size:14px}.planner-handle{width:12px;background:#ffffff80;border-left:1px solid #ffffff60;border-right:1px solid #ffffff60}.planner-ghost{position:absolute;top:54px;height:24px;border:2px dashed #607d98;border-radius:5px;background:#edf4fb80;color:#365672;font:11px system-ui;padding:3px 6px;pointer-events:none}.planner-drag-tip{position:fixed;z-index:9999;max-width:300px;padding:10px 14px;background:#183c56;color:white;border-radius:8px;box-shadow:0 5px 22px #183c5630;font-size:14px;pointer-events:none}.planner-drag-tip[hidden]{display:none}.planning-details{padding:18px;margin:20px 0}.planning-details>summary{cursor:pointer;font-weight:650;color:#1b4261;min-height:28px}.planning-details>.panel{margin-top:20px}.planner-help{margin:10px 0;font-size:14px}.planner-status:empty{display:none}.btn:disabled{opacity:.45;cursor:default}@media(max-width:700px){body main{padding-left:12px;padding-right:12px}.planner-label{width:220px;min-width:220px}.planner-tools{position:static}.planner-tools input{max-width:180px}.planner-scroll{max-height:70vh}.planning-details{padding:14px}}@media print{.planning-details{display:none}.planner-drag-tip{display:none}body main{padding:0}}
@media screen{.planner-legacy-week{display:none}}
/* Compact rows keep the weekly workload visible. */
.planner-row:not(.planner-head){min-height:60px}.planner-row:not(.planner-head) .planner-label{padding:5px 12px}.planner-label strong{font-size:14px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-label input[type=color]{width:15px;height:15px;margin-right:5px}.planner-label button{display:block;padding:1px 0;font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.planner-label small{margin-top:1px;font-size:12px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-track{height:60px}.planner-bar,.planner-ghost{top:32px;height:12px;border-radius:3px}.planner-caption{top:-21px;font-size:14px;line-height:18px}.planner-handle{top:-6px;bottom:-6px;background:transparent;border:0;width:12px}.planner-handle:after{content:'';position:absolute;top:6px;bottom:6px;left:4px;width:3px;background:#ffffffb0;border-radius:2px}.planner-ghost{padding:0;font-size:0;border-width:1px}.planner-head{min-height:62px}.planner-head .planner-label{padding:14px 12px}.planner-scroll{max-height:78vh}.planner-help{margin:6px 0;font-size:13px}.planner-status{margin:5px 0}
/* Captions remain clickable above compact bars. */
.planner-caption{pointer-events:auto;cursor:pointer}.dialogback.open{z-index:10000}
