/* RFQ / Samples BOM 表：桌面端保持表格，移动端改为卡片行 */
@media (max-width: 767.98px) {
    .bom-table-wrap.table-responsive {
        overflow-x: visible;
        -webkit-overflow-scrolling: auto;
    }

    .bom-table {
        border: 0;
        margin-bottom: 0;
    }

    .bom-table thead {
        display: none;
    }

    .bom-table tbody tr.bom-table__row {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #e3e9ef;
        border-radius: 0.375rem;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }

    .bom-table tbody tr.bom-table__row:last-child {
        margin-bottom: 0;
    }

    .bom-table tbody td {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border: 0;
        padding: 0.4rem 0;
    }

    .bom-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 5.5rem;
        max-width: 38%;
        font-size: 0.8125rem;
        line-height: 1.3;
        color: #6c757d;
        font-weight: 500;
    }

    .bom-table tbody td .form-control {
        flex: 1 1 auto;
        min-width: 0;
    }

    .bom-table tbody td.bom-table__actions {
        justify-content: flex-end;
        margin-top: 0.35rem;
        padding-top: 0.65rem;
        border-top: 1px solid #eef2f6;
    }

    .bom-table tbody td.bom-table__actions::before {
        display: none;
    }

    .bom-table-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: stretch;
        text-align: left !important;
        margin-right: 0 !important;
    }

    .bom-table-toolbar .btn {
        flex: 1 1 calc(50% - 0.25rem);
        margin: 0 !important;
    }
}
