/* Sale item equation should sit right after its product label. */
#sell-lines > tr.labor-item-row .labor-product-line > .calc-equation,
#sell-lines > tr.custom-calc-row > td.calc-equation {
  text-align: left !important;
  justify-self: start !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 4px !important;
  flex: 0 1 auto !important;
}

@media (min-width: 700px) {
  #sell-lines > tr.labor-item-row .labor-product-line > .calc-equation,
  #sell-lines > tr.custom-calc-row > td.calc-equation {
    white-space: nowrap;
  }
}

/* Improve contrast and put the total amount beside its label. */
#sell-lines > tr.labor-item-row > .labor-full-cell > .labor-breakdown {
  max-width: 100%;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid #e9e5da;
  border-radius: 8px;
  background: #f8f7f3;
  color: #3f4742;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

#sell-lines > tr.labor-item-row .labor-math > span {
  color: #48514b;
  font-size: 13px;
}

#sell-lines > tr.labor-item-row .labor-math > strong {
  display: flex !important;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid #e6e1d5;
  color: #252d28;
  font-size: 14px;
  line-height: 1.4;
}

#sell-lines > tr.labor-item-row .labor-math > strong > .result {
  display: inline !important;
  color: #202923;
  font-size: inherit;
  font-weight: 800;
}

@media (max-width: 420px) {
  #sell-lines > tr.labor-item-row > .labor-full-cell > .labor-breakdown {
    padding: 7px 8px;
    font-size: 12px;
  }
  #sell-lines > tr.labor-item-row .labor-math > span { font-size: 12px; }
}
