.quote-col-qty {
    width: 170px;
}

.quote-qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-qty-btn {
    min-width: 36px;
}

.quote-item-qty-input {
    width: 64px;
    text-align: center;
}

.quote-item-qty-input::-webkit-outer-spin-button,
.quote-item-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quote-item-qty-input[type=number] {
    -moz-appearance: textfield;
}

.quote-action-btn {
    white-space: nowrap;
}

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

@media (max-width: 767.98px) {
    #quoteBuilderApp .card-body {
        padding: 1.25rem !important;
    }

    .quote-mobile-table-wrap {
        overflow: visible;
    }

    .quote-item-table,
    .product-result-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .quote-item-table thead,
    .product-result-table thead {
        display: none;
    }

    .quote-item-table tbody,
    .product-result-table tbody {
        display: grid;
        gap: 12px;
    }

    .quote-item-table tr,
    .product-result-table tr {
        display: block;
        padding: 14px;
        border: 1px solid var(--wood-border);
        border-radius: 10px;
        background: #ffffff;
    }

    .quote-item-table td,
    .product-result-table td {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0;
        border: 0;
        text-align: right !important;
    }

    .quote-item-table td + td,
    .product-result-table td + td {
        border-top: 1px solid #edf0f2;
    }

    .quote-item-table td::before,
    .product-result-table td::before {
        flex: 0 0 auto;
        color: #6b7280;
        font-size: 0.85rem;
        font-weight: 600;
        content: attr(data-label);
    }

    .quote-item-table td[colspan],
    .product-result-table td[colspan] {
        display: block;
        text-align: center !important;
    }

    .quote-item-table td[colspan]::before,
    .product-result-table td[colspan]::before {
        display: none;
    }

    .quote-item-table .quote-card-description,
    .product-result-table .quote-card-description {
        display: block;
        padding-top: 0;
        text-align: left !important;
        font-weight: 600;
        line-height: 1.4;
    }

    .quote-item-table .quote-card-description::before,
    .product-result-table .quote-card-description::before {
        display: none;
    }

    .quote-item-table .quote-qty-control {
        justify-content: flex-end;
    }

    .quote-item-table .quote-card-action,
    .product-result-table .quote-card-action {
        padding-bottom: 0;
    }

    .product-result-table .quote-select-product,
    .quote-item-table .quote-remove-item {
        min-width: 120px;
    }

    #productSearchModal .modal-dialog {
        margin: 0.5rem;
    }

    #productSearchModal .modal-body {
        padding: 1rem;
    }

    #productSearchModal .modal-footer {
        display: none;
    }

    #product_search_button {
        min-width: 92px;
    }
}
