/* Saved request lines. Same summary grid as a New request line after Save.
   Themes set --line, and the client stylesheet adds the display face. */
.estimate-readonly {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.estimate-readonly .estimate-line {
  border: 1px solid var(--line);
  padding: 14px;
}
.estimate-readonly .estimate-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy price"
    "copy actions";
  gap: 4px 16px;
  align-items: center;
}
.estimate-readonly .estimate-summary-copy { grid-area: copy; min-width: 0; }
.estimate-readonly .estimate-summary-copy strong {
  display: block;
  overflow-wrap: anywhere;
}
.estimate-readonly .estimate-summary p { margin: 0; }
.estimate-readonly .estimate-summary-meta,
.estimate-readonly .estimate-summary-desc { margin-top: 4px; }
.estimate-readonly .estimate-summary-meta { color: var(--muted, var(--stone)); }
.estimate-readonly .estimate-summary-desc {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  white-space: pre-wrap;
}
.estimate-readonly .estimate-price {
  grid-area: price;
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.estimate-readonly .estimate-total { margin: 0; }
@media (max-width: 640px) {
  .estimate-readonly .estimate-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "price";
  }
  .estimate-readonly .estimate-price { text-align: left; }
}
