/* Compact delegation controls; compatible with the site CSP. */
button.delegation-button{font-size:12px;padding:6px 10px;line-height:1.35;min-height:30px;width:auto;max-width:100%;margin:8px 8px 6px 0;border-radius:6px}
form.delegation-action{margin:0 0 12px}
form.delegation-action select{max-width:240px;font-size:13px;padding:7px 9px}

.workspace>header{height:auto;min-height:100px}
.account-context .account-permissions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:5px;font-size:12px}
.account-permissions .access-status{display:inline-block;border:1px solid #cedfd9;border-radius:12px;padding:2px 8px;background:#f4faf6;color:#126c60;font-size:11px;font-weight:600}
@media(max-width:760px){.account-context .account-permissions{justify-content:flex-start}}

.cost-treatment{border:0;margin:0;padding:0;min-width:0}
.cost-treatment legend{font-size:13px;font-weight:600;margin-bottom:7px}
.cost-treatment-tabs{display:flex;gap:0;border:1px solid #b8cec6;border-radius:8px;overflow:hidden;width:fit-content}
.cost-treatment-tabs label{position:relative;margin:0;cursor:pointer}
.cost-treatment-tabs input{position:absolute;opacity:0;width:1px;height:1px}
.cost-treatment-tabs span{display:block;padding:10px 16px;background:#f3f8f5;color:#225c4b;font-size:14px}
.cost-treatment-tabs input:checked+span{background:#126c60;color:white;font-weight:600}
.cost-treatment-tabs input:focus-visible+span{outline:3px solid #d3a844;outline-offset:-3px}
.entry-form label[hidden]{display:none}

/* Compact segmented treatment control, aligned to the other inputs. */
.cost-treatment{align-self:start}
.cost-treatment legend{padding:0;color:var(--muted);font-weight:600;line-height:1.5;margin:0 0 7px}
.cost-treatment-tabs{display:flex;width:100%;max-width:320px;padding:3px;gap:3px;border:1px solid #dfe7e5;border-radius:9px;background:#eef3f0;overflow:visible}
.cost-treatment-tabs label{display:block;flex:1;min-width:0;margin:0;line-height:1.4}
.cost-treatment-tabs input{position:absolute;opacity:0;width:1px;min-width:0;height:1px;min-height:0;margin:0;padding:0;border:0}
.cost-treatment-tabs span{display:flex;align-items:center;justify-content:center;min-height:32px;padding:6px 9px;border-radius:6px;font-size:12px;line-height:1.4;font-weight:600;background:transparent;color:#64776e;white-space:nowrap}
.cost-treatment-tabs input:checked+span{background:white;color:#126c60;box-shadow:0 1px 4px #18334520}
.cost-treatment-tabs label:hover span{color:#126c60}
.cost-category-hint{display:block;font-size:11px;line-height:1.4;font-weight:400;color:#126c60;margin-top:5px}
