.project-resource-properties.project-resource-compact{border:0;padding:0;margin:0;min-width:0}
.project-node-resources{--resource-columns:minmax(160px,1fr) 88px 84px 72px 128px;font-size:12px;font-weight:400;letter-spacing:0}
.project-node-resources *{box-sizing:border-box;letter-spacing:0}
.project-node-resources .node-resources-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.project-node-resources .node-resources-toolbar strong{font-size:12px;font-weight:500}
.project-node-resources [data-resource-count]{color:var(--muted);font-size:11px}
.project-node-resources .node-resources-add-company{margin-left:auto;width:auto;display:inline-flex;align-items:center;gap:5px;border:0;color:var(--accent);font-size:12px;padding:4px 6px}
.project-node-resources .project-node-properties-auto{display:flex;align-items:center;gap:6px;margin:0 0 8px;font-size:11px;color:var(--muted)}
.project-node-resources .project-node-properties-auto input{width:13px;height:13px;min-height:0;margin:0;accent-color:var(--accent)}
.project-node-resources .project-node-company-list{max-height:none;overflow:visible}
.project-node-resources .node-resources-columns,.project-node-resources .project-node-company-row,.project-node-resources .node-resources-person{display:grid;grid-template-columns:var(--resource-columns);align-items:center;gap:8px;min-width:0;border-bottom:1px solid var(--line);padding:5px 4px}
.project-node-resources .node-resources-columns{color:var(--muted);font-size:11px;min-height:28px;padding-block:3px}
.project-node-resources [role=row]>[role=cell],.project-node-resources [role=row]>[role=columnheader]{min-width:0;text-align:right}
.project-node-resources [role=row]>[role=cell]:first-child,.project-node-resources [role=row]>[role=columnheader]:first-child{text-align:left}
.project-node-resources .project-node-company-row{margin:0;min-height:45px;background:color-mix(in srgb,var(--line) 25%,transparent)}
.project-node-resources .node-resources-name{display:flex;gap:3px;align-items:center;font-weight:500;overflow-wrap:anywhere}
.project-node-resources .node-resources-name>div{min-width:0;flex:1}
.project-node-resources .node-resources-name small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:1px}
.project-node-resources .node-resources-person{min-height:39px}
.project-node-resources .node-resources-person-name{padding-left:32px;overflow-wrap:anywhere;font-weight:400}
.project-node-resources .node-resources-team-role{display:block;margin-top:2px;font-size:11px;font-weight:400!important;line-height:1.35;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.project-node-resources .node-resources-number{font-size:12px;font-weight:400;font-variant-numeric:tabular-nums}
.project-node-resources .node-resources-ownership{color:var(--muted)}
.project-node-resources input[type=number]{width:76px;min-width:0;min-height:28px;height:28px;padding:3px 5px;border:1px solid var(--line);border-radius:4px;background:var(--panel);color:var(--text);font:inherit;font-size:12px;font-weight:400;text-align:right;font-variant-numeric:tabular-nums}
.project-node-resources .node-resources-person input{width:76px}
.project-node-resources input[readonly]{border-color:transparent;background:transparent}
.project-node-resources .project-node-company-tools,.project-node-resources .node-resources-person-tools{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:2px;min-width:0}
.project-node-resources button{width:28px;min-width:28px;height:28px;min-height:28px;padding:4px;border:0;border-radius:4px;background:transparent;color:var(--text);font:inherit}
.project-node-resources button:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 12%,var(--panel));color:var(--accent)}
.project-node-resources button svg{width:16px;height:16px;stroke-width:2}
.project-node-resources .node-resources-name>button{flex:none}
.project-node-resources button:disabled{opacity:.4;cursor:default}
.project-node-resources .node-resources-empty{padding:9px 36px;color:var(--muted);font-size:11px;border-bottom:1px solid var(--line)}
.project-node-resources .project-node-company-compose,.project-node-resources .node-resource-compose{display:flex;align-items:flex-end;gap:6px;flex-wrap:wrap;padding:10px;margin:10px 0;background:color-mix(in srgb,var(--line) 25%,transparent);border-left:2px solid var(--accent)}
.project-node-resources .project-node-company-compose[hidden],.project-node-resources .node-resource-compose[hidden]{display:none}
.project-node-resources .project-node-company-compose label,.project-node-resources .node-resource-compose label{display:grid;gap:4px;flex:1 1 150px;font-size:11px;color:var(--muted);min-width:0}
.project-node-resources .project-node-company-compose .project-node-company-percent{flex:0 0 90px}
.project-node-resources .node-resource-compose [data-resource-add]{width:auto;display:inline-flex;align-items:center;gap:5px;color:var(--accent);border:1px solid var(--line);padding-inline:8px}
.project-node-resources select{min-height:30px;padding:4px 6px}
.project-node-resources .node-resources-summary{display:flex;justify-content:flex-end;gap:8px 18px;flex-wrap:wrap;padding:10px 4px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.project-node-resources .node-resources-summary strong{font-weight:500;color:var(--text);margin-left:4px}
.project-node-resources .node-resources-summary .is-warning{color:var(--warning,#d29c38)}
.project-node-resources .project-node-company-status{font-size:11px;margin:7px 4px;font-weight:400}
.project-node-resources .project-node-company-status:empty{display:none}
.project-resource-estimate:has(~ .project-resource-compact){position:relative;display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;border:0;border-bottom:1px solid var(--line);padding:8px 4px 12px;margin:0 0 6px}
.project-resource-estimate:has(~ .project-resource-compact)>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.project-resource-estimate:has(~ .project-resource-compact)>label:not(.project-planning-toggle){display:flex;align-items:center;gap:8px;order:1}
.project-resource-estimate:has(~ .project-resource-compact) [name=resource_estimate]{width:86px;min-height:30px;height:30px;padding:4px 6px;font-size:12px;text-align:right}
.project-resource-estimate:has(~ .project-resource-compact) output{min-height:0;padding:0;border:0;background:none}
.project-resource-estimate:has(~ .project-resource-compact) .project-planning-toggle{display:flex;align-items:center;gap:6px;flex-basis:auto;order:2;margin:0 0 0 auto;font-size:11px}
.project-resource-estimate:has(~ .project-resource-compact) .project-planning-toggle input{width:13px;height:13px;min-height:0;margin:0;flex:none;accent-color:var(--accent)}
@media(max-width:700px){
 .project-node-resources{--resource-columns:minmax(90px,1fr) 68px 62px 54px 116px}
 .project-node-resources .node-resources-columns,.project-node-resources .project-node-company-row,.project-node-resources .node-resources-person{gap:4px}
 .project-node-resources input[type=number],.project-node-resources .node-resources-person input{width:60px}
}
@media(max-width:520px){
 .project-node-resources{--resource-columns:minmax(0,1fr) 52px 50px 58px}
 .project-node-resources [role=row]>:nth-child(2){display:none}
 .project-node-resources .node-resources-company>:nth-child(1){grid-column:1 / 4;grid-row:1}
 .project-node-resources .node-resources-company>.node-resources-ownership{display:flex;align-items:center;gap:3px;grid-column:1;grid-row:2;padding-left:0;font-size:11px}
 .project-node-resources .node-resources-company>.node-resources-ownership input{width:min(50px,calc(100% - 14px))}
 .project-node-resources .node-resources-company>.node-resources-ownership:after{content:'%'}
 .project-node-resources .node-resources-company>:nth-child(3){grid-column:2;grid-row:2}
 .project-node-resources .node-resources-company>:nth-child(4){grid-column:3;grid-row:2}
 .project-node-resources .node-resources-company>:nth-child(5){grid-column:4;grid-row:1 / 3}
 .project-node-resources .node-resources-name{align-items:flex-start;gap:1px}
 .project-node-resources .node-resources-name small{font-size:11px}
 .project-node-resources .node-resources-person-name{padding-left:10px;font-size:11px}
 .project-node-resources input[type=number],.project-node-resources .node-resources-person input{width:50px}
 .project-node-resources button{width:27px;min-width:27px}
 .project-node-resources .node-resources-summary{justify-content:flex-start;gap:6px 12px}
 .project-node-resources .node-resources-empty{padding-left:12px}
 .project-resource-estimate:has(~ .project-resource-compact){gap:8px}
 .project-resource-estimate:has(~ .project-resource-compact)>label:not(.project-planning-toggle){flex-wrap:wrap}
 .project-resource-estimate:has(~ .project-resource-compact) .project-planning-toggle{margin-left:0}
}
