.commercial-panel {display:grid;gap:1.1rem;min-width:0}
.commercial-section {display:grid;gap:.65rem;min-width:0}
.commercial-section h3 {margin:0;color:var(--text,#1d302b);font-size:1.05rem}
.commercial-section form {display:grid;gap:.65rem;min-width:0}
.commercial-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.55rem}
.commercial-section label,.commercial-fields label {display:grid;gap:.2rem;font-size:.8rem;min-width:0}
.commercial-section input,.commercial-section select,.commercial-fields input,.commercial-fields select {width:100%;min-width:0}
.commercial-section table {min-width:34rem}
.commercial-section td {vertical-align:top}
.commercial-section td small,.commercial-section td a,.commercial-documents small {display:block;color:var(--muted,#536a63);margin-top:.2rem}
.commercial-section td a {color:#185846}
.commercial-section td input,.commercial-section td select {min-width:7rem}
.commercial-section td label+label {margin-top:.35rem}
.commercial-section td details {margin-top:.34rem}
.commercial-price-fields {display:grid;grid-template-columns:1fr 1fr;gap:.32rem;margin-top:.35rem}
.commercial-price-fields label+label {margin-top:0!important}
.commercial-price-fields input {min-width:3.5rem!important}
.commercial-instruction {margin:0;color:var(--muted,#536a63);font-size:.85rem}
.commercial-footer {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.65rem}
.commercial-totals {background:#eff5f1;border-radius:.4rem;padding:.55rem .7rem;margin:0}
.commercial-totals div,.commercial-email div {display:grid;grid-template-columns:1fr auto;gap:.65rem;padding:.17rem 0}
.commercial-totals dd,.commercial-email dd {margin:0;font-weight:600;overflow-wrap:anywhere}
.commercial-documents article {display:flex;justify-content:space-between;align-items:center;gap:.65rem;padding:.5rem 0;border-bottom:1px solid #dce5df}
.commercial-dialog-actions {margin-top:.6rem}
.commercial-email div {grid-template-columns:4rem minmax(0,1fr)}
.commercial-email {margin:0}
@media(max-width:560px) {
  .commercial-section table {min-width:30rem}
  .commercial-documents article {align-items:start}
  .commercial-fields input,.commercial-fields select,.commercial-panel input,.commercial-panel select {font-size:16px}
}

.commercial-comparison-filter {display:grid;grid-template-columns:minmax(10rem,16rem) 1fr;align-items:end;gap:.7rem}
@media(max-width:560px) {.commercial-comparison-filter {grid-template-columns:1fr}}

.case-workspace .activity-content:has(.commercial-panel) {max-height:none;overflow:visible}
@media(min-width:1001px) {
  .case-workspace .record-columns:has(.commercial-panel) {
    grid-template-columns:minmax(205px,245px) minmax(0,1fr) minmax(175px,220px)
  }
}
