/* V73.8.55 task drawer parity - Gantt task editor */
.drawer-backdrop{background:rgba(9,22,15,.34)!important;backdrop-filter:saturate(.92)}
.drawer.task-detail-drawer{width:min(930px,54vw);min-width:720px;border-left:1px solid #dfe8e2;box-shadow:-18px 0 60px rgba(12,31,24,.12);overflow:hidden}
.task-detail-drawer .drawer-head{padding:10px 14px 9px;border-bottom:1px solid #e5ece7;background:#fff;align-items:center;min-height:54px}
.task-detail-drawer .drawer-head h2{font-size:15px;line-height:1.15;letter-spacing:-.01em;font-weight:800}
.task-detail-drawer .drawer-head p{font-size:10px;color:#617168;margin-top:3px}
.task-availability{display:flex;align-items:flex-start;gap:9px;margin:8px 12px 0;padding:9px 10px;border:1px solid #cfe0d5;border-radius:9px;background:#f8fcf9;color:#244a35}
.task-availability .availability-icon{width:29px;height:29px;display:grid;place-items:center;border:1px solid #a9c6b3;border-radius:8px;background:#fff;font-weight:800;flex:0 0 auto}
.task-availability b{display:block;font-size:11px}.task-availability span{display:block;color:#6d7c74;font-size:9px;margin-top:2px}
.drawer-tabs{display:flex;gap:2px;padding:7px 10px 0;border-bottom:1px solid #e5ece7;background:#fafcfb;overflow-x:auto;white-space:nowrap}
.drawer-tab{border:0!important;background:transparent!important;min-height:34px!important;padding:7px 10px!important;border-radius:7px 7px 0 0!important;font-size:10px!important;color:#617168!important;position:relative}
.drawer-tab.active{color:#126d40!important;font-weight:800;background:#fff!important}.drawer-tab.active:after{content:'';position:absolute;left:10px;right:10px;bottom:-1px;height:2px;background:#157142;border-radius:2px}
.drawer-tab .history-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#1c8a50;margin-left:5px;vertical-align:middle}
.task-detail-drawer .drawer-body{padding:0!important;overflow:auto;overscroll-behavior:contain;background:#fff}
.drawer-execution-dock{padding:9px 12px 11px;border-bottom:1px solid #e1e9e4;background:#fbfdfc;position:sticky;top:0;z-index:4}
.drawer-execution-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.drawer-execution-head b{text-transform:uppercase;font-size:9px;letter-spacing:.055em;color:#446453}.drawer-execution-head span{font-size:8px;color:#738078}
.drawer-execution-fields{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(310px,1.45fr);gap:12px;align-items:end}.drawer-execution-fields .field{margin:0}
.progress-inline-label{display:flex!important;align-items:center;gap:8px}.progress-value-badge{display:inline-flex;min-width:43px;justify-content:center;border-radius:999px;padding:2px 8px;background:#edf7f0;color:#157142;font-weight:800;font-size:10px}
.progress-editor{display:grid;grid-template-columns:1fr 68px;gap:7px;align-items:center}.progress-editor input[type=range]{width:100%;accent-color:#157142}.progress-editor input[type=number]{text-align:left}
.drawer-panes{min-height:450px}.drawer-pane{display:none;padding:14px 14px 22px}.drawer-pane.active{display:block}
.drawer-overview{display:grid;grid-template-columns:1.35fr .65fr;gap:10px;margin-bottom:12px;padding:12px;border:1px solid #e4ebe6;border-radius:10px;background:#fbfdfc}.drawer-overview small,.drawer-overview-stat small{display:block;text-transform:uppercase;font-size:8px;letter-spacing:.05em;color:#7d8a83;font-weight:800}.drawer-overview b{display:block;font-size:13px;margin-top:3px}.drawer-overview-meta{color:#65746d;font-size:9px;margin-top:4px}.drawer-overview-stats{display:flex;justify-content:flex-end;gap:9px}.drawer-overview-stat{min-width:76px;border-left:1px solid #e5ece7;padding-left:10px}.drawer-overview-stat b{font-size:15px}
.task-detail-drawer .field{margin-bottom:11px}.task-detail-drawer .field label{font-size:9px;letter-spacing:.035em;text-transform:uppercase;font-weight:800;color:#5e6e66}.task-detail-drawer .field input,.task-detail-drawer .field select,.task-detail-drawer .field textarea{background:#fff}.task-detail-drawer .field input:disabled,.task-detail-drawer .field select:disabled,.task-detail-drawer .field textarea:disabled{background:#f7f9f8;color:#75827c;opacity:1}
.task-detail-drawer textarea{min-height:76px;resize:vertical}.drawer-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.drawer-form-grid .span-2{grid-column:1/-1}.field-hint{font-size:9px;color:#77847e;margin-top:4px;line-height:1.35}
.hierarchy-box{border:1px solid #e3ebe5;background:#fafcfb;border-radius:10px;padding:11px;margin-bottom:12px}.hierarchy-title{font-weight:800;font-size:11px;margin-bottom:8px}.reorder-strip{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.reorder-strip .btn{height:30px;min-height:30px;font-size:9px;padding:4px 8px}
.schedule-grid{display:grid;grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr) 94px;gap:8px}.duration-grid{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:8px;max-width:430px}
.task-color-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:36px}.task-color-control input[type=color]{width:46px;height:34px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff}.task-color-swatches{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.task-color-swatch{width:25px!important;height:25px!important;min-width:25px!important;padding:0!important;border-radius:7px!important;background:var(--swatch)!important;border:1px solid rgba(16,40,26,.16)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.38)}.task-color-swatch.active{outline:2px solid #173e29;outline-offset:2px}.task-color-default{height:30px!important;min-height:30px!important;font-size:9px!important}
.task-shape-control{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.task-shape-btn{height:34px!important;min-height:34px!important;padding:4px 9px!important;border-radius:8px!important;font-size:9px!important}.task-shape-btn.active{border-color:#176b40!important;background:#edf7f0!important;color:#12653b!important;box-shadow:inset 0 0 0 1px rgba(21,113,66,.12)}.task-shape-icon{width:16px;height:16px;display:inline-block;flex:0 0 16px;background:#557b68}.task-shape-icon.bar{width:20px;height:8px;border-radius:4px}.task-shape-icon.diamond{width:12px;height:12px;transform:rotate(45deg);border-radius:2px}.task-shape-icon.circle{width:13px;height:13px;border-radius:50%}.task-shape-icon.triangle{width:15px;height:15px;clip-path:polygon(50% 5%,96% 92%,4% 92%)}
.dependency-trigger{width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid #d7e2db;background:#fff;border-radius:8px;padding:8px 10px}.dependency-trigger-main{display:flex;align-items:center;gap:8px}.dependency-count{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#eaf5ee;color:#157142;font-weight:800;font-size:9px}.dependency-panel{margin-top:8px;border:1px solid #dfe8e2;border-radius:10px;background:#fff;overflow:hidden}.dependency-panel[hidden]{display:none}.dependency-panel-head{display:flex;gap:7px;padding:8px;border-bottom:1px solid #e7ede9}.dependency-panel-head input{flex:1}.dependency-options{max-height:330px;overflow:auto}.dependency-option{display:grid;grid-template-columns:30px 96px 1fr 78px;gap:7px;align-items:center;padding:7px 9px;border-bottom:1px solid #eef2ef;font-size:10px}.dependency-option:last-child{border-bottom:0}.dependency-option:hover{background:#fafcfb}.dependency-option .dep-title{font-weight:700}.dependency-option .dep-meta{font-size:8px;color:#7b8781;margin-top:2px}.dependency-summary{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.dependency-chip{display:inline-flex;align-items:center;gap:5px;font-size:9px;border:1px solid #cfe0d5;background:#f3f8f5;color:#355348;border-radius:999px;padding:3px 7px}
.evidence-note{padding:8px 10px;border-radius:8px;background:#f6f9f7;color:#627068;font-size:9px;margin-bottom:12px}.evidence-section{padding:4px 0 14px}.evidence-section+.evidence-section{border-top:1px solid #e6ece8;padding-top:13px}.evidence-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.evidence-section-head h3{font-size:12px;margin:0}.evidence-upload-btn{position:relative;overflow:hidden}.evidence-upload-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.evidence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.evidence-card{border:1px solid #e1e8e3;border-radius:9px;padding:8px;background:#fff}.evidence-card .evidence-preview{height:112px}.evidence-card .evidence-name{font-size:10px;font-weight:800;margin-top:5px;overflow-wrap:anywhere}.evidence-card .evidence-meta{font-size:8px;color:#77847e;margin-top:2px}.evidence-actions{display:flex;gap:5px;margin-top:6px}
.history-list{display:flex;flex-direction:column;gap:8px}.task-history-item{border:1px solid #e1e8e3;border-radius:9px;padding:9px 10px;background:#fff}.task-history-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.task-history-head b{font-size:10px}.task-history-head time{font-size:8px;color:#7a8780}.task-history-reason{font-size:9px;color:#66756d;margin-top:4px}.task-history-diff{margin-top:7px;display:grid;gap:4px}.task-history-diff-row{display:grid;grid-template-columns:130px 1fr;gap:7px;font-size:8px;padding-top:4px;border-top:1px dashed #e6ece8}.task-history-diff-row strong{color:#52635a}.task-history-diff-row span{color:#6d7b74;overflow-wrap:anywhere}.task-history-actions{margin-top:7px;display:flex;justify-content:flex-end}
.task-detail-drawer .drawer-footer{display:block;padding:0;background:#fff;border-top:1px solid #dfe8e2;box-shadow:0 -8px 20px rgba(17,45,29,.04)}.task-nav-strip{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,.7fr) minmax(120px,1fr) 72px;gap:8px;padding:8px 12px;border-bottom:1px solid #e7ede9;align-items:center}.task-nav-strip button{justify-content:center;height:32px;min-height:32px;font-size:9px}.task-nav-meta{text-align:center}.task-nav-meta b{display:block;font-size:9px}.task-nav-meta span{display:block;font-size:8px;color:#7a8780;margin-top:1px}.task-footer-actions{display:flex;justify-content:flex-end;gap:7px;padding:8px 12px;flex-wrap:wrap}.task-footer-actions .btn{height:34px;min-height:34px;font-size:10px}.task-footer-actions .spacer{flex:1}.task-edit-primary{min-width:118px;justify-content:center}
.gantt-bar{--task-color:#157142;background:var(--task-color)!important;overflow:visible}.gantt-bar.subtask{background:var(--task-color)!important}.gantt-bar .fill{border-radius:inherit;overflow:hidden}.gantt-task-marker{position:absolute;left:-7px;top:50%;width:13px;height:13px;transform:translateY(-50%);background:var(--task-color);border:2px solid #fff;box-shadow:0 0 0 1px var(--task-color),0 1px 3px rgba(12,31,24,.16);z-index:5;pointer-events:none}.gantt-task-marker.diamond{transform:translateY(-50%) rotate(45deg);border-radius:2px}.gantt-task-marker.circle{border-radius:50%}.gantt-task-marker.triangle{width:15px;height:15px;clip-path:polygon(50% 0,100% 100%,0 100%);border:0;box-shadow:none;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgba(12,31,24,.2))}.gantt-bar.milestone.custom-shape{transform:none!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;width:14px!important}.gantt-bar.milestone.custom-shape .gantt-task-marker{left:1px}.gantt-dependency-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}.gantt-dependency-layer path{fill:none;stroke:#7e9287;stroke-width:1.15;vector-effect:non-scaling-stroke;opacity:.82}.gantt-row .gantt-bar{z-index:3}
@media(max-width:1280px){.drawer.task-detail-drawer{width:min(820px,62vw);min-width:650px}}
@media(max-width:920px){.drawer.task-detail-drawer{width:100vw;min-width:0}.drawer-execution-fields{grid-template-columns:1fr}.schedule-grid{grid-template-columns:1fr 92px}.drawer-overview{grid-template-columns:1fr}.drawer-overview-stats{justify-content:flex-start}.task-nav-strip{grid-template-columns:1fr 1fr}.task-nav-meta{order:-1;grid-column:1/-1}.task-nav-strip .task-nav-exit{grid-column:2}.evidence-list{grid-template-columns:1fr}}
@media(max-width:560px){.drawer-pane{padding:10px 10px 18px}.drawer-form-grid{grid-template-columns:1fr}.drawer-form-grid .span-2{grid-column:auto}.duration-grid{grid-template-columns:1fr 100px}.task-shape-btn{flex:1 1 calc(50% - 6px);justify-content:center!important;min-width:120px}.dependency-option{grid-template-columns:28px 70px 1fr}.dependency-option select{grid-column:2/-1;width:100%}.task-footer-actions .spacer{display:none}.task-footer-actions .btn{flex:1 1 42%}}
