/****************************************************
 * RFQ PORTAL GLOBAL STYLES — FLEX + MOBILE
 ****************************************************/

.rfq-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rfq-header {
    margin-bottom: 25px;
}

.rfq-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Table desktop */
.rfq-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.rfq-table th,
.rfq-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.rfq-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/******* Inputs *******/
.rfq-input,
.rfq-select,
.rfq-textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.rfq-textarea {
    min-height: 40px;
}

/******* Buttons *******/
.rfq-btn {
    background: #005bbb;
    border: none;
    padding: 10px 16px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.rfq-btn-secondary {
    background: #555;
}

/****************************************************
 * 🔥 MOBILE VERSION — TABLE BECOMES CARDS
 ****************************************************/
@media (max-width: 900px) {

    .rfq-table,
    .rfq-table thead,
    .rfq-table tbody,
    .rfq-table th,
    .rfq-table td,
    .rfq-table tr {
        display: block;
        width: 100%;
    }

    .rfq-table tr {
        background: #fff;
        margin-bottom: 18px;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .rfq-table td {
        border: none;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .rfq-table td::before {
        content: attr(data-label);
        font-weight: 600;
        flex-basis: 40%;
        color: #333;
    }

    .rfq-table th {
        display: none; /* hide table header */
    }
}


/* Mobile card-like fallback */
@media (max-width: 768px) {
    .uk-table td,
    .uk-table th {
        white-space: normal !important;
        word-break: break-word;
    }

    .uk-table td input,
    .uk-table td select,
    .uk-table td textarea {
        font-size: 14px;
    }
}
