.rfq-page {
    background: #f4f6f9;
    padding-bottom: 30px;
}

.rfq-topbar,
.rfq-card,
.rfq-workflow {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef1f5;
}

.rfq-topbar {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rfq-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.rfq-actions {
    display: flex;
    gap: 8px;
}

.rfq-actions .btn {
    min-width: 110px;
    border-radius: 8px;
    font-weight: 600;
}

.rfq-card {
    margin-top: 18px;
    padding: 22px;
}

.section-title {
    color: #4f46e5;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rfq-page label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.rfq-page .form-control,
.rfq-page .form-select {
    height: 40px;
    border-radius: 8px;
    border-color: #d9e0ea;
    font-size: 14px;
}

.rfq-page textarea.form-control {
    height: auto;
}

.rfq-table-wrap {
    overflow-x: auto;
}

.rfq-table {
    min-width: 1350px;
    font-size: 13px;
}

#suppliers-table {
    min-width: 1050px;
}

.rfq-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
    white-space: nowrap;
}

.rfq-table td {
    vertical-align: middle;
}

.rfq-table .form-control,
.rfq-table .form-select {
    height: 36px;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid transparent;
}

.status-DRAFT {
    background: #e9eef6;
    color: #64748b;
    border-color: #cbd5e1;
}

.status-SENT {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-CLOSED {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

.rfq-summary {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 12px;
    align-items: center;
}

.summary-title {
    font-weight: 600;
    color: #475569;
}

.summary-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
}

.summary-box small {
    display: block;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-box strong {
    font-size: 18px;
}

.summary-box.total {
    background: #e8f8ee;
    color: #15803d;
}

.rfq-workflow {
    margin-top: 18px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 160px 1fr 220px;
    align-items: center;
    gap: 20px;
}

.workflow-title {
    color: #2563eb;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workflow-steps {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wf-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 600;
}

.wf-step.active {
    color: #2563eb;
}

.wf-step.done {
    color: #16a34a;
}

.wf-line {
    height: 1px;
    flex: 1;
    min-width: 38px;
    border-top: 2px dotted #cbd5e1;
}

.select2-container--default .select2-selection--single {
    height: 36px;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    font-size: 13px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
}

@media (max-width: 992px) {
    .rfq-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .rfq-actions {
        flex-wrap: wrap;
    }

    .rfq-summary {
        grid-template-columns: 1fr 1fr;
    }

    .rfq-workflow {
        grid-template-columns: 1fr;
    }
}

#lines-table td:has(.item-select) {
    min-width: 340px;
}

.erp-item-option-main {
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.erp-item-option-meta {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}

.select2-container--default .select2-results__option--highlighted .erp-item-option-main,
.select2-container--default .select2-results__option--highlighted .erp-item-option-meta {
    color: #fff;
}
