.quote-name {
    display: grid;
    gap: 0.125rem;
}

.quote-text {
    white-space: pre-line;
}

.quote-logo {
    display: block;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
    background: var(--color-surface);
}

.quote-line__name {
    font-weight: 600;
}

.quote-line__total {
    display: grid;
    gap: 0.125rem;
    align-self: end;
    text-align: right;
}

.quote-line__modules,
.quote-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.quote-line__modules > legend {
    margin-bottom: 0.375rem;
}

.quote-totals {
    display: grid;
    gap: 0.375rem;
    max-width: 26rem;
    margin: 0 0 0 auto;
}

.quote-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.quote-totals dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.quote-totals__grand {
    padding-top: 0.375rem;
    border-top: 1px solid var(--color-line);
    font-weight: 600;
}

.quote-rates {
    margin: 0.75rem 0 0;
    text-align: right;
}

.quote-plan {
    margin: 0;
    padding: 0;
    list-style: none;
}

.data-table .data-table__number,
.data-table__number {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.data-table td.data-table__number::before {
    white-space: normal;
}

.quote-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.quote-break {
    overflow-wrap: anywhere;
}

.quote-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.quote-file__input:focus-visible + .quote-file__button {
    box-shadow: var(--ring);
}

.check--radio .check__box {
    border-radius: 50%;
}

.check--radio .check__input:checked + .check__box {
    box-shadow: inset 0 0 0 0.25rem var(--color-surface);
}

.quote-row-open {
    display: grid;
    gap: 0.125rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.quote-row-open:hover .quote-line__name,
.quote-row-open:hover > span:first-child {
    text-decoration: underline;
}

.quote-row-open:focus-visible {
    border-radius: var(--radius);
    box-shadow: var(--ring);
    outline: none;
}

.quote-clip {
    display: -webkit-box;
    max-width: 42rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: pre-line;
}

td.quote-clip {
    display: table-cell;
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-lines-table tr.is-removed td {
    color: var(--color-muted, inherit);
    text-decoration: line-through;
}

[data-slot-row][hidden] {
    display: none;
}

.quote-field-errors {
    display: grid;
    gap: 0.25rem;
}

.quote-field-errors:not(:has(.field__error)) {
    display: none;
}

.card--flush > .quote-field-errors {
    padding: 0.75rem 1.25rem;
}

.quote-lines-foot {
    display: grid;
    gap: 0.75rem;
}

.quote-add-pending {
    margin: 0;
}

.quote-card-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-rate-status__value {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.quote-delivery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-dialog-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
}

.quote-dialog-section > h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

@media (max-width: 40rem) {
    td.quote-clip {
        display: block;
        max-width: none;
        white-space: normal;
    }

    .quote-line__total {
        text-align: left;
    }
}
