/**
 * My Account - Quote Requests Styling
 * Frontend styles for the My Quotes page in WooCommerce My Account
 */

/* Main Wrapper */
.aicoso-rfq-my-quotes-wrapper {
    margin: 20px 0;
}

.aicoso-rfq-my-quotes-wrapper h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Table Styling */
.aicoso-rfq-quotes-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.aicoso-rfq-quotes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aicoso-rfq-quotes-table thead th {
    background: #f7f7f7;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aicoso-rfq-quotes-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.aicoso-rfq-quotes-table tbody tr:hover {
    background: #f9f9f9;
}

/* Status Badges */
.aicoso-rfq-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.aicoso-rfq-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.aicoso-rfq-status-badge.status-sent {
    background: #d1ecf1;
    color: #0c5460;
}

.aicoso-rfq-status-badge.status-viewed {
    background: #e2e3e5;
    color: #383d41;
}

.aicoso-rfq-status-badge.status-accepted {
    background: #d4edda;
    color: #155724;
}

.aicoso-rfq-status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.aicoso-rfq-status-badge.status-expired {
    background: #e2e3e5;
    color: #6c757d;
}

/* Action Buttons */
.aicoso-rfq-quotes-table .quote-actions {
    white-space: nowrap;
}

.aicoso-rfq-quotes-table .quote-actions .button {
    margin: 0 4px 4px 0;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
}

.aicoso-rfq-preview-btn {
    background: #0073aa;
    color: #fff;
    border: none;
}

.aicoso-rfq-preview-btn:hover {
    background: #005a87;
    color: #fff;
}

.aicoso-rfq-download-btn {
    background: #28a745;
    color: #fff;
    border: none;
}

.aicoso-rfq-download-btn:hover {
    background: #218838;
    color: #fff;
}

.aicoso-rfq-preview-btn:disabled,
.aicoso-rfq-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty State */
.aicoso-rfq-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.aicoso-rfq-empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.aicoso-rfq-empty-state .button {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.aicoso-rfq-empty-state .button:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .aicoso-rfq-quotes-table {
        border: 0;
    }

    .aicoso-rfq-quotes-table thead {
        display: none;
    }

    .aicoso-rfq-quotes-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .aicoso-rfq-quotes-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    .aicoso-rfq-quotes-table tbody td:last-child {
        border-bottom: none;
    }

    .aicoso-rfq-quotes-table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #555;
        font-size: 13px;
        text-align: left;
    }

    .aicoso-rfq-quotes-table .quote-actions {
        flex-direction: column;
        width: 100%;
    }

    .aicoso-rfq-quotes-table .quote-actions .button {
        width: 100%;
        margin: 4px 0;
        text-align: center;
    }
}