/* v0.9.36: reversible cost-card folds in the existing amber/neutral palette. */
.cost36-card {min-width:0;max-width:100%;}
.cost36-body {min-width:0;max-width:100%;}
.cost36-body[hidden] {display:none!important;}
.cost36-header {cursor:pointer;min-width:0;}
.cost36-toggle {display:inline-flex;align-items:baseline;gap:8px;min-width:0;max-width:100%;margin:0;padding:3px 0;background:transparent;border:0;border-radius:4px;box-shadow:none;color:inherit;font:inherit;text-align:left;cursor:pointer;line-height:1.5;white-space:normal;}
.cost36-toggle .cost36-title {min-width:0;overflow-wrap:anywhere;font-weight:750;}
.cost36-toggle .cost36-chevron {flex:0 0 auto;color:#b67a12;font-size:14px;}
.cost36-toggle .cost36-toggle-hint {flex:0 0 auto;font-size:11px;font-weight:400;color:#796640;}
.cost36-toggle:hover .cost36-title {color:#95610b;}
.cost36-toggle:focus-visible {outline:2px solid #b67a12;outline-offset:3px;}
.cost36-header .cost36-meta {flex:1 1 100%;min-width:0;width:100%;font-size:12px;line-height:1.6;color:#756b58;overflow-wrap:anywhere;}
.cost36-card.cost36-collapsed > .cost36-header {margin-bottom:0;padding-bottom:0;border-bottom:0;}
.cost30-type.cost36-collapsed > .cost36-header {padding:12px 15px;border-radius:10px;}
.cost36-toolbar {display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;margin:0 0 8px;}
.cost36-toolbar .button {min-width:0;white-space:normal;overflow-wrap:anywhere;}
.cost36-card .project-infra-title-row {flex-wrap:wrap;gap:6px;}
.cost36-card .project-infra-object-heading {min-width:0;flex:1 1 auto;}
.cost36-card .project-detail-object-header>div {min-width:0;flex:1 1 auto;}
.cost36-card .project-infra-object-actions {flex-wrap:wrap;}
@media(max-width:1120px) {
  .cost36-toggle {flex-wrap:wrap;column-gap:6px;row-gap:0;}
  .cost36-toggle .cost36-title {flex:1 1 160px;}
  .cost36-toggle .cost36-toggle-hint {margin-left:18px;}
  .cost36-toolbar {justify-content:flex-start;}
}
@media print {
  .cost36-body[hidden] {display:block!important;}
  .cost36-toolbar,.cost36-toggle-hint,.cost36-chevron {display:none!important;}
}
/* Fit the ACTUAL work area (including an open variant sidebar), not only the viewport. */
@container cost30 (max-width:1000px) {
  .cost36-body .infra-compensation-row {grid-template-columns:repeat(2,minmax(0,1fr));}
  .cost36-body .infra-compensation-row > small {grid-column:1 / -1;}
}
@container cost30 (max-width:640px) {
  .cost36-body .infra-compensation-row {grid-template-columns:minmax(0,1fr);}
  .cost36-body .infra-compensation-row > * {grid-column:1!important;}
}
#projectCostSpecializedEditor .setting-card-heading > button {flex:0 0 auto;}
