.estimatePricingEditor h4 {
  margin: 24px 0 8px;
}
.estimatePricingEditor .estimatePricingLine {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  gap: 14px;
}
.estimatePricingLine legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 6px;
}
.estimatePricingLine .estimateLineName,
.estimatePackageDetails,
.estimateLineFooter {
  grid-column: 1/-1;
}
.estimatePricingLine label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.estimatePricingLine input,
.estimatePricingLine select,
.estimatePricingLine textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
}
.estimatePricingLine textarea {
  resize: vertical;
}
.estimateFlatHelp {
  margin: auto 0;
  color: #677061;
  font-size: 13px;
}
.estimateLineFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  flex-wrap: wrap;
}
.estimateGuestCount {
  font-size: 12px;
  padding: 7px !important;
  align-self: flex-start;
}
.estimateAddActions {
  flex-wrap: wrap;
  gap: 8px;
}
.estimateTotalSummary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8f3;
  white-space: pre-line;
  line-height: 1.8;
  margin: 20px 0;
  font-weight: 650;
}
.estimatePricingTable th:first-child {
  width: 44%;
}
.estimatePricingTable th:nth-child(2) {
  width: 34%;
}
.estimatePricingTable th:last-child {
  width: 22%;
}
.estimatePricingTable td {
  vertical-align: top;
}
.estimatePricingTable td:last-child {
  text-align: right;
}
.estimatePricingLabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #576344;
}
.estimateIncluded {
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 8px 0 0;
  font-weight: 400;
}
.estimatePricingTable td span {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .estimatePricingEditor .estimatePricingLine {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .estimateFlatHelp {
    margin: 0;
  }
  .estimatePricingTable {
    font-size: 12px;
  }
  .estimatePricingTable td,
  .estimatePricingTable th {
    padding: 9px 4px;
  }
  .estimateIncluded {
    font-size: 12px;
  }
}
@media print {
  .estimatePricingTable {
    table-layout: fixed;
    width: 100%;
  }
  .estimatePricingTable tr {
    break-inside: avoid;
  }
  .estimateIncluded {
    white-space: pre-wrap;
  }
}
/* Estimate and invoice workspace. */
.invoiceSummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.invoiceSummary > div {
  padding: 20px;
  border: 1px solid var(--line, #e6ddd5);
  border-radius: 16px;
  background: var(--card, #fff);
}
.invoiceSummary span {
  display: block;
  color: var(--muted, #6b6962);
  font-size: 13px;
  margin-bottom: 6px;
}
.invoiceSummary strong {
  display: block;
  font-size: 26px;
}
.invoiceFilters {
  margin: 18px 0;
}
.invoiceCard .sectionHead {
  gap: 12px;
}
.invoiceBalance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e6ddd5);
}
.invoiceOverdue {
  background: #fff0e5;
  color: #8c3b18;
}
.invoiceCard .actions {
  flex-wrap: wrap;
}
.estimatePricingEditor input[type='date'] {
  max-width: 100%;
}
@media (max-width: 600px) {
  .invoiceSummary {
    gap: 8px;
  }
  .invoiceSummary > div {
    padding: 12px;
  }
  .invoiceSummary strong {
    font-size: 20px;
  }
  .invoiceSummary span {
    font-size: 12px;
  }
  .invoicePage > .pageHead {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .invoicePage > .pageHead > .actions {
    display: flex;
    flex-wrap: nowrap;
  }
  .invoicePage > .pageHead > .actions .btn {
    flex: 1;
  }
  .invoiceSummary strong {
    overflow-wrap: anywhere;
  }
}
@media print {
  .invoiceFilters,
  .invoiceSummary,
  .invoiceCard .actions {
    display: none !important;
  }
}
