/* Modern Admin CSS for AICoSo RFQ Plugin */

/* ===== NOTIFICATION STYLES ===== */
.aicoso-rfq-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.aicoso-rfq-notification-success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.aicoso-rfq-notification-error {
    background-color: #dc3545;
    border-left: 4px solid #bd2130;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading spinner */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== GLOBAL SCALING FIX ===== */
/* Scale everything down to match 75% zoom appearance at 100% zoom */

/* ===== DASHBOARD LAYOUT ===== */

.aicoso-rfq-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    /* Ensure full viewport usage within WordPress admin constraints */
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}


.aicoso-rfq-dashboard-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    z-index: -1;
}

/* ===== SIDEBAR ===== */

.aicoso-rfq-sidebar {
    width: 224px;
    /* Reduced from 280px (280 * 0.80) */
    background: #ffffff;
    color: #1e293b;
    position: fixed;
    top: 26px;
    /* Reduced from 32px (32 * 0.80) */
    left: 128px;
    /* Reduced from 128px to eliminate extra space */
    height: calc(100vh - 26px);
    overflow-y: auto;
    z-index: 999;
    /* Below WordPress admin menu */
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.aicoso-rfq-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.aicoso-rfq-logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    letter-spacing: 0.5px;
}

.aicoso-rfq-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.aicoso-rfq-sidebar-nav li {
    margin: 0;
}

.aicoso-rfq-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-radius: 0 12px 12px 0;
    margin: 8px 16px;
    position: relative;
    font-weight: 500;
}

.aicoso-rfq-sidebar-nav a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    transform: translateX(2px);
    border-left-color: #667eea;
}

.aicoso-rfq-sidebar-nav li.active a {
    background: #667eea;
    color: white;
    border-left-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: translateX(0);
}

.aicoso-rfq-sidebar-nav .dashicons {
    margin-right: 16px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN CONTENT ===== */

.aicoso-rfq-main-content {
    flex: 1;
    margin-left: 175px;
    /* Reduced from 192px to align with moved sidebar (192 - 28) */
    margin-top: 26px;
    /* Reduced from 32px (32 * 0.80) */
    padding: 16px;
    /* Reduced from 20px (20 * 0.80) */
    min-height: calc(100vh - 26px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: calc(100% - 324px);
    /* Adjusted to align with repositioned sidebar (352 - 28) */
    overflow: visible !important;
}

/* ===== HEADER ===== */

.aicoso-rfq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    /* Reduced from 20px (20 * 0.80) */
    padding: 16px;
    /* Reduced from 20px (20 * 0.80) */
    background: white;
    border-radius: 10px;
    /* Reduced from 12px (12 * 0.80) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.aicoso-rfq-header-left h1 {
    margin: 0 0 10px 0;
    /* Reduced from 12px (12 * 0.80) */
    font-size: 29px;
    /* Reduced from 36px (36 * 0.80) */
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
}

.aicoso-rfq-header-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    /* Reduced from 18px (18 * 0.80) */
    font-weight: 400;
}

.aicoso-rfq-header-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.aicoso-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
    min-height: 35px;
    box-sizing: border-box;
}

.aicoso-rfq-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.aicoso-rfq-btn:hover::before {
    left: 100%;
}

.aicoso-rfq-btn-primary {
    background: #667eea !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px !important;
    border: none;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    min-height: 35px !important;
    box-sizing: border-box !important;
}

.aicoso-rfq-btn-primary:hover {
    background: #667eea !important;
    /* Maintain color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.aicoso-rfq-btn-secondary {
    background: white !important;
    color: #64748b !important;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    min-height: 35px !important;
    box-sizing: border-box !important;
}

.aicoso-rfq-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #667eea;
    color: #667eea !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.aicoso-rfq-btn-warning {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.aicoso-rfq-btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.aicoso-rfq-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===== STATISTICS CARDS ===== */

.aicoso-rfq-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Reduced from 250px (250 * 0.80) */
    gap: 16px;
    /* Reduced from 20px (20 * 0.80) */
    margin-bottom: 19px;
    /* Reduced from 24px (24 * 0.80) */
}

.aicoso-rfq-stat-card {
    background: white;
    border-radius: 13px;
    /* Reduced from 16px (16 * 0.80) */
    padding: 19px;
    /* Reduced from 24px (24 * 0.80) */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 13px;
    /* Reduced from 16px (16 * 0.80) */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0;
    /* Allow card to shrink properly */
}

.aicoso-rfq-stat-content {
    flex: 1;
    min-width: 0;
    /* Allow content to shrink and wrap properly */
    overflow: hidden;
}

.aicoso-rfq-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #667eea;
}

.aicoso-rfq-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-stat-icon {
    width: 51px;
    /* Reduced from 64px (64 * 0.80) */
    height: 51px;
    /* Reduced from 64px (64 * 0.80) */
    background: #667eea;
    border-radius: 13px;
    /* Reduced from 16px (16 * 0.80) */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    /* Prevent icon from shrinking when content is large */
}

.aicoso-rfq-stat-icon .dashicons {
    font-family: dashicons;
    font-size: 22px;
    /* Reduced from 28px (28 * 0.80) */
    width: 22px;
    /* Reduced from 28px (28 * 0.80) */
    height: 22px;
    /* Reduced from 28px (28 * 0.80) */
    color: white;
}

.aicoso-rfq-stat-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aicoso-rfq-stat-number {
    font-size: 24px;
    /* Reduced from 36px (36 * 0.67) */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    word-break: break-all;
    line-height: 1.2;
    min-width: 0;
    /* Allow content to shrink properly */
}

.aicoso-rfq-stat-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aicoso-rfq-stat-change.positive {
    color: #10b981;
}

.aicoso-rfq-stat-change.negative {
    color: #ef4444;
}

.aicoso-rfq-stat-change.positive::before {
    content: '↑';
}

.aicoso-rfq-stat-change.negative::before {
    content: '↓';
}

/* ===== CARDS ===== */

.aicoso-rfq-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.aicoso-rfq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.aicoso-rfq-card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.aicoso-rfq-card-content {
    padding: 20px;
}

.aicoso-rfq-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.aicoso-rfq-bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}



/* ===== TABLES ===== */

.aicoso-rfq-table-container {
    overflow-x: visible;
    /* Changed from auto - no horizontal scroll needed */
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    margin: 0;
}

.aicoso-rfq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    table-layout: fixed;
    /* Changed from auto to fixed for better column control */
    min-width: 100%;
    /* Remove minimum width constraint */
}

.aicoso-rfq-table th {
    text-align: left;
    padding: 14px 16px;
    /* Reduced from 16px 20px */
    background: #667eea;
    color: white;
    font-weight: 600;
    font-size: 11px;
    /* Reduced from 13px for better proportions */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aicoso-rfq-table td {
    padding: 14px 16px;
    /* Reduced from 16px 20px */
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
}

.aicoso-rfq-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

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

/* ===== RESPONSIVE COLUMN WIDTHS ===== */
/* Checkbox column */
.aicoso-rfq-table th.check-column,
.aicoso-rfq-table td:first-child {
    width: 40px;
    padding: 14px 8px;
    text-align: center;
}

/* Column width allocation for quote requests table */
.aicoso-rfq-table th:nth-child(2),
/* Customer */
.aicoso-rfq-table td:nth-child(2) {
    width: 22%;
    min-width: 170px;
    padding: 10px 12px;
    /* Slightly reduced padding for better fit */
}

.aicoso-rfq-table th:nth-child(3),
/* Email */
.aicoso-rfq-table td:nth-child(3) {
    width: 17%;
    min-width: 130px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aicoso-rfq-table th:nth-child(4),
/* Products */
.aicoso-rfq-table td:nth-child(4) {
    width: 9%;
    min-width: 75px;
    text-align: center;
}

.aicoso-rfq-table th:nth-child(5),
/* Total */
.aicoso-rfq-table td:nth-child(5) {
    width: 11%;
    min-width: 85px;
}

.aicoso-rfq-table th:nth-child(6),
/* Status */
.aicoso-rfq-table td:nth-child(6) {
    width: 13%;
    min-width: 110px;
    padding-left: 8px;
    padding-right: 8px;
}

.aicoso-rfq-table th:nth-child(7),
/* Date */
.aicoso-rfq-table td:nth-child(7) {
    width: 12%;
    min-width: 100px;
}

.aicoso-rfq-table th:nth-child(8),
/* Actions */
.aicoso-rfq-table td:nth-child(8) {
    width: 16%;
    min-width: 150px;
    text-align: center;
    padding-left: 8px;
    padding-right: 12px;
}

/* Reduce padding for more compact layout */
.aicoso-rfq-table th,
.aicoso-rfq-table td {
    padding: 12px 10px;
}

/* Dashboard-specific column widths (no checkbox column) */
/* Dashboard has: Customer, Email, Products, Total, Status, Date, Actions = 7 columns */
.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(1),
/* Customer */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(1) {
    width: 25%;
    min-width: 180px;
    padding: 10px 12px;
    /* Consistent with Quote Requests */
}

.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(2),
/* Email */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(2) {
    width: 18%;
    min-width: 140px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(3),
/* Products */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(3) {
    width: 10%;
    min-width: 80px;
    text-align: center;
}

.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(4),
/* Total */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(4) {
    width: 12%;
    min-width: 90px;
}

.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(5),
/* Status */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(5) {
    width: 13%;
    min-width: 110px;
    padding-left: 8px;
    padding-right: 8px;
}

.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(6),
/* Date */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(6) {
    width: 12%;
    min-width: 100px;
}

.aicoso-rfq-recent-section .aicoso-rfq-table th:nth-child(7),
/* Actions */
.aicoso-rfq-recent-section .aicoso-rfq-table td:nth-child(7) {
    width: 10%;
    min-width: 90px;
    text-align: center;
    padding-left: 8px;
    padding-right: 12px;
}

/* Optimize customer info for smaller space */
.aicoso-rfq-customer-info {
    gap: 10px;
}

.aicoso-rfq-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

/* Make email column responsive */
.aicoso-rfq-table td:nth-child(3) {
    font-size: 12px;
}


/* ===== CUSTOMER INFO ===== */

.aicoso-rfq-customer-info {
    display: flex;
    align-items: center;
    /* Vertically center items */
    gap: 12px;
    /* Better spacing between avatar and text */
    min-width: 0;
    /* Allow flexbox to shrink properly */
    flex: 1;
    max-width: 100%;
    /* Prevent overflow */
}

.aicoso-rfq-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1;
    /* Force 1:1 aspect ratio */
    overflow: hidden;
}

/* Add wrapper for customer text to enable proper truncation */
.aicoso-rfq-customer-info>div {
    min-width: 0;
    /* Critical for text truncation */
    flex: 1;
    overflow: hidden;
    /* Enable truncation */
    text-align: left;
    /* Force left alignment */
}

.aicoso-rfq-customer-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    /* Reduced spacing */
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    cursor: default;
    transition: color 0.2s ease;
    text-align: left;
    /* Explicitly left-align */
    line-height: 1.4;
    /* Better line height */
}

/* Hover effect for customer name to indicate tooltip */
.aicoso-rfq-customer-name:hover {
    color: #667eea;
    /* Highlight on hover */
}

.aicoso-rfq-customer-id {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: left;
    /* Explicitly left-align */
    line-height: 1.3;
    /* Better line height */
}

/* ===== BADGES ===== */

.aicoso-rfq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    /* Reduced from 8px 16px for more compact badges */
    border-radius: 20px;
    /* Slightly reduced for more compact look */
    font-size: 11px;
    /* Reduced from 13px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Slightly reduced */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Prevent badge text from wrapping */
    max-width: 100%;
    /* Ensure badge doesn't overflow its column */
}

.aicoso-rfq-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-badge.status-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.aicoso-rfq-badge.status-sent {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.aicoso-rfq-badge.status-accepted {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.aicoso-rfq-badge.status-rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.aicoso-rfq-badge.status-expired {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

/* ===== ACTIONS ===== */

.aicoso-rfq-actions {
    display: flex;
    gap: 8px;
    /* Reduced from 12px for more compact action buttons */
    justify-content: center;
    /* Center the action buttons */
}

.aicoso-rfq-action-btn {
    width: 36px;
    /* Reduced from 40px for better fit */
    height: 36px;
    /* Reduced from 40px for better fit */
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    /* Slightly reduced from 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent buttons from shrinking */
}

.aicoso-rfq-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #667eea;
    transition: left 0.3s;
    z-index: -1;
}

.aicoso-rfq-action-btn:hover::before {
    left: 0;
}

.aicoso-rfq-action-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.aicoso-rfq-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #64748b;
    transition: color 0.3s ease;
}

.aicoso-rfq-action-btn:hover .dashicons {
    color: white;
}

/* ===== FORM ELEMENTS ===== */

.aicoso-rfq-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 40px;
    line-height: 1.3;
    box-sizing: border-box;
}

.aicoso-rfq-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* ===== LINKS ===== */

.aicoso-rfq-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.aicoso-rfq-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.aicoso-rfq-link:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

.aicoso-rfq-link:hover::after {
    width: 100%;
}

/* ===== ID STYLING ===== */

.aicoso-rfq-id {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.aicoso-rfq-id:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== FILTERS SECTION ===== */

.aicoso-rfq-filters-section {
    margin-bottom: 32px;
}

.aicoso-rfq-filters-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.aicoso-rfq-filters-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-filters-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
    /* Reduced spacing between search and filters */
    margin-bottom: 8px;
}

.aicoso-rfq-search-box {
    width: 100%;
    position: relative;
}

.aicoso-rfq-second-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    /* Reduced from 24px for better fit */
    padding: 0;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
}

.aicoso-rfq-search-icon {
    position: absolute;
    left: 18px;
    /* Adjusted */
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    /* Changed to theme purple */
    z-index: 1;
    font-size: 18px;
    /* Slightly larger */
}

.aicoso-rfq-search-box input {
    width: 100%;
    padding: 14px 20px 14px 52px;
    /* Increased padding */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    /* More rounded */
    font-size: 14px;
    color: #475569;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 48px;
    /* Taller input */
    box-sizing: border-box;
}

.aicoso-rfq-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    /* Enhanced shadow */
    transform: translateY(-1px);
    background: #fefeff;
    /* Slight background change */
}

.aicoso-rfq-search-box input::placeholder {
    color: #94a3b8;
}

.aicoso-rfq-filter-controls {
    display: flex;
    gap: 12px;
    /* Increased from 8px */
    align-items: center;
    flex: 1;
}

/* Make filter selects modern and cohesive */
.aicoso-rfq-filter-controls .aicoso-rfq-select {
    padding: 10px 16px;
    /* Increased padding */
    font-size: 14px;
    /* Slightly larger */
    height: 44px;
    /* Increased height */
    min-width: 140px;
    /* Slightly wider */
    border-radius: 10px;
    /* More rounded */
    border: 2px solid #e2e8f0;
    box-sizing: border-box;
    line-height: 1.4;
    background: white;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.aicoso-rfq-filter-controls .aicoso-rfq-select:hover {
    border-color: #c7d2fe;
    /* Light purple border on hover */
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.08);
}

.aicoso-rfq-filter-controls .aicoso-rfq-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Make bulk action selects modern */
.aicoso-rfq-bulk-actions .aicoso-rfq-select {
    padding: 10px 16px;
    font-size: 14px;
    height: 44px;
    min-width: 160px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-sizing: border-box;
    line-height: 1.4;
    background: white;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.aicoso-rfq-bulk-actions .aicoso-rfq-select:hover {
    border-color: #c7d2fe;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.08);
}

.aicoso-rfq-bulk-actions .aicoso-rfq-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modern filter button */
.aicoso-rfq-filter-controls .aicoso-rfq-btn {
    padding: 10px 18px;
    font-size: 14px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.aicoso-rfq-filter-controls .aicoso-rfq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Modern bulk action apply button */
.aicoso-rfq-bulk-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.aicoso-rfq-bulk-actions .aicoso-rfq-btn {
    padding: 10px 20px;
    font-size: 14px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 90px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.aicoso-rfq-bulk-actions .aicoso-rfq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* ===== BULK ACTIONS SECTION ===== */

.aicoso-rfq-bulk-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.aicoso-rfq-bulk-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-bulk-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.aicoso-rfq-bulk-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aicoso-rfq-bulk-select label {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
}

.aicoso-rfq-bulk-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ===== PAGINATION SECTION ===== */

.aicoso-rfq-pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #f1f5f9;
}

.aicoso-rfq-pagination-info {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.aicoso-rfq-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aicoso-rfq-pagination-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    position: relative;
    overflow: hidden;
}

.aicoso-rfq-pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #667eea;
    transition: left 0.3s ease;
    z-index: -1;
}

.aicoso-rfq-pagination-btn:hover:not(:disabled)::before {
    left: 0;
}

.aicoso-rfq-pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.aicoso-rfq-pagination-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.aicoso-rfq-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.aicoso-rfq-pagination-dots {
    padding: 0 12px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 16px;
}

.aicoso-rfq-pagination-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===== CHECKBOX STYLING ===== */

.check-column {
    width: 56px;
}

.aicoso-rfq-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
}

.aicoso-rfq-table input[type="checkbox"]:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.aicoso-rfq-table input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.aicoso-rfq-table input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* ===== MODERN TABS ===== */

.aicoso-rfq-modern-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.aicoso-rfq-modern-tabs:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-tab-nav {
    display: flex;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    position: relative;
}

.aicoso-rfq-tab-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.aicoso-rfq-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 28px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.aicoso-rfq-tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

/* When hovering over any tab button, also apply hover effect to the entire modern-tabs container */
.aicoso-rfq-tab-btn:hover~.aicoso-rfq-tab-content,
.aicoso-rfq-tab-btn:hover~.aicoso-rfq-settings-section {
    background: rgba(102, 126, 234, 0.02);
}

/* Alternative approach: hover the container when any child tab button is hovered */
.aicoso-rfq-modern-tabs:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure hover propagates properly */
.aicoso-rfq-modern-tabs:hover .aicoso-rfq-tab-content {
    background: white;
}

.aicoso-rfq-tab-btn.active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.aicoso-rfq-tab-btn.active~.aicoso-rfq-tab-nav::after {
    transform: scaleX(1);
}

.aicoso-rfq-tab-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.aicoso-rfq-tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
    background: white;
    flex: 1;
    min-height: 400px;
}

.aicoso-rfq-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SETTINGS COMPONENTS ===== */

.aicoso-rfq-settings-section {
    margin-bottom: 40px;
}

.aicoso-rfq-section-header {
    margin-bottom: 32px;
}

.aicoso-rfq-section-header h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.aicoso-rfq-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
}

.aicoso-rfq-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
}

.aicoso-rfq-setting-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.aicoso-rfq-setting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #667eea;
}

.aicoso-rfq-setting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.aicoso-rfq-setting-card h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.aicoso-rfq-setting-card h3 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
    border-radius: 8px;
    padding: 8px;
}

.aicoso-rfq-form-group {
    margin-bottom: 24px;
}

.aicoso-rfq-form-group:last-child {
    margin-bottom: 0;
}

.aicoso-rfq-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.aicoso-rfq-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 44px;
    line-height: 1.4;
}

.aicoso-rfq-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.aicoso-rfq-input::placeholder {
    color: #9ca3af;
}

.aicoso-rfq-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aicoso-rfq-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #475569;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.aicoso-rfq-radio-label:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.aicoso-rfq-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.aicoso-rfq-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #475569;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.aicoso-rfq-checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
}

.aicoso-rfq-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.aicoso-rfq-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.aicoso-rfq-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.aicoso-rfq-color-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aicoso-rfq-color-input-group label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 0;
}

.aicoso-rfq-color-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #374151;
    background: white;
    box-sizing: border-box;
}

.aicoso-rfq-search-add {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.aicoso-rfq-search-add .aicoso-rfq-input {
    flex: 1;
}

/* ===== PREVIEW COMPONENTS ===== */

.aicoso-rfq-preview-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-top: 32px;
}

.aicoso-rfq-preview-card h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.aicoso-rfq-preview-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aicoso-rfq-button-preview {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: #007cba;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aicoso-rfq-button-preview:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.aicoso-rfq-preview-description {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* ===== EXCLUSION LIST ===== */

.aicoso-rfq-exclusion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    display: block;
    font-weight: 500;
    color: #374151;
}

.search-result-sku {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 12px 16px;
    color: #6b7280;
    font-style: italic;
}

.search-error {
    color: #ef4444;
}

.aicoso-rfq-form-group {
    position: relative;
}

.aicoso-rfq-exclusion-list {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-height: 300px;
    overflow-y: auto;
}

.aicoso-rfq-empty-exclusions {
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: 8px;
}

.aicoso-rfq-empty-message {
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

.aicoso-rfq-exclusion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.aicoso-rfq-exclusion-item:last-child {
    border-bottom: none;
}

.aicoso-rfq-exclusion-type {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.aicoso-rfq-exclusion-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.aicoso-rfq-btn-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: #fee2e2;
    border-radius: 4px;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.aicoso-rfq-btn-remove:hover {
    background: #fecaca;
}

.aicoso-rfq-btn-remove .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.aicoso-rfq-exclusion-description {
    margin: 16px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* ===== MODAL STYLES ===== 
 * NOTE: Modal CSS is now defined inline in quote-requests.php 
 * DO NOT add modal styles here to avoid CSS conflicts
 */

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1400px) {
    .aicoso-rfq-main-content {
        margin-left: 225px;
        /* Adjusted to align with moved sidebar (245 - 20) */
        padding: 16px;
        width: calc(100% - 400px);
        /* Adjusted width calculation */
    }

    .aicoso-rfq-sidebar {
        width: 260px;
        left: 140px;
        /* Reduced from 160px to match main sidebar positioning */
    }
}

@media (max-width: 1200px) {
    .aicoso-rfq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .aicoso-rfq-settings-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .aicoso-rfq-exclusion-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .aicoso-rfq-main-content {
        padding: 28px;
    }

    .aicoso-rfq-filters-row {
        gap: 12px;
    }

    .aicoso-rfq-second-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .aicoso-rfq-filter-controls {
        justify-content: center;
    }

    .aicoso-rfq-bulk-actions {
        justify-content: center;
    }

    /* Keep compact sizes on smaller screens */
    .aicoso-rfq-filter-controls .aicoso-rfq-select {
        min-width: 130px;
        font-size: 12px;
    }

    .aicoso-rfq-bulk-actions .aicoso-rfq-select {
        min-width: 150px;
        font-size: 12px;
    }

    .aicoso-rfq-header {
        padding: 24px;
        margin-bottom: 32px;
    }

    .aicoso-rfq-header-left h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .aicoso-rfq-card-content {
        padding: 24px;
    }

    .aicoso-rfq-setting-card {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .aicoso-rfq-dashboard-wrapper {
        flex-direction: column;
    }

    .aicoso-rfq-sidebar {
        width: 100%;
        height: auto;
        position: static;
        top: auto;
        left: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px;
        margin-top: 0;
    }

    .aicoso-rfq-sidebar-header {
        padding: 16px 0;
    }

    .aicoso-rfq-sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .aicoso-rfq-sidebar-nav li {
        margin: 0;
    }

    .aicoso-rfq-sidebar-nav a {
        padding: 12px 20px;
        margin: 0;
        border-radius: 12px;
        font-size: 14px;
    }

    .aicoso-rfq-main-content {
        margin-left: 0;
        margin-top: 0;
        padding: 20px;
        border-radius: 0;
        width: 100%;
    }

    .aicoso-rfq-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        padding: 20px;
        margin-bottom: 24px;
    }

    .aicoso-rfq-header-left h1 {
        font-size: 28px;
        text-align: center;
    }

    .aicoso-rfq-header-subtitle {
        text-align: center;
        font-size: 16px;
    }

    .aicoso-rfq-header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .aicoso-rfq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 32px;
    }

    .aicoso-rfq-stat-card {
        padding: 24px 20px;
    }

    .aicoso-rfq-card-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 20px;
    }

    .aicoso-rfq-card-content {
        padding: 20px;
    }

    .aicoso-rfq-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .aicoso-rfq-search-box {
        min-width: auto;
        order: -1;
    }

    .aicoso-rfq-filter-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .aicoso-rfq-bulk-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 20px;
    }

    .aicoso-rfq-pagination-section {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        padding: 20px;
        margin-top: 24px;
    }

    .aicoso-rfq-settings-grid {
        gap: 20px;
    }

    .aicoso-rfq-setting-card {
        padding: 20px;
    }

    .aicoso-rfq-modern-tabs .aicoso-rfq-tab-content {
        padding: 32px 20px;
    }
}

@media (max-width: 768px) {
    .aicoso-rfq-dashboard-wrapper {
        background: #f8fafc;
        min-height: auto;
    }

    .aicoso-rfq-modal-overlay {
        padding: 10px;
    }

    .aicoso-rfq-modal {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }

    .aicoso-rfq-modal-header {
        padding: 16px 20px;
        border-radius: 12px 12px 0 0;
    }

    .aicoso-rfq-modal-title {
        font-size: 18px;
    }

    .aicoso-rfq-modal-close {
        width: 32px;
        height: 32px;
    }

    .aicoso-rfq-modal-content {
        padding: 20px;
        max-height: calc(95vh - 100px);
    }

    .aicoso-rfq-modal-footer {
        padding: 16px 20px;
        border-radius: 0 0 12px 12px;
        flex-direction: column;
        gap: 8px;
    }

    .aicoso-rfq-modal-footer .aicoso-rfq-btn {
        width: 100%;
        justify-content: center;
    }

    .aicoso-rfq-sidebar {
        padding: 16px;
        margin-bottom: 20px;
    }

    .aicoso-rfq-sidebar-nav ul {
        justify-content: center;
    }

    .aicoso-rfq-sidebar-nav a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .aicoso-rfq-main-content {
        padding: 20px 16px;
        background: #ffffff;
        border-radius: 16px 16px 0 0;
        margin: 0 16px;
    }

    .aicoso-rfq-header {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .aicoso-rfq-header-left h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .aicoso-rfq-header-subtitle {
        font-size: 14px;
    }

    .aicoso-rfq-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .aicoso-rfq-stat-card {
        padding: 20px;
        border-radius: 16px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .aicoso-rfq-stat-icon {
        width: 41px;
        /* Reduced from 48px (48 * 0.85) */
        height: 41px;
        /* Reduced from 48px (48 * 0.85) */
        flex-shrink: 0;
        /* Prevent icon from shrinking when content is large */
    }

    .aicoso-rfq-stat-icon .dashicons {
        font-size: 19px;
        /* Reduced from 24px (24 * 0.80) */
        width: 19px;
        /* Reduced from 24px (24 * 0.80) */
        height: 19px;
        /* Reduced from 24px (24 * 0.80) */
    }

    .aicoso-rfq-stat-number {
        font-size: 20px;
        /* Reduced from 28px (28 * 0.71) */
        word-wrap: break-word;
        word-break: break-all;
        line-height: 1.2;
    }

    .aicoso-rfq-card {
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .aicoso-rfq-card-header {
        padding: 16px;
    }

    .aicoso-rfq-card-content {
        padding: 16px;
    }

    .aicoso-rfq-table-container {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .aicoso-rfq-table {
        font-size: 14px;
        min-width: 600px;
    }

    .aicoso-rfq-table th,
    .aicoso-rfq-table td {
        padding: 12px 16px;
        white-space: normal;
        word-wrap: break-word;
    }

    .aicoso-rfq-customer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .aicoso-rfq-customer-name {
        font-size: 14px;
    }

    .aicoso-rfq-customer-id {
        font-size: 12px;
    }

    .aicoso-rfq-actions {
        flex-direction: column;
        gap: 6px;
    }

    .aicoso-rfq-action-btn {
        width: 32px;
        height: 32px;
    }

    .aicoso-rfq-filters-section {
        margin-bottom: 20px;
    }

    .aicoso-rfq-filters-card {
        padding: 20px;
        border-radius: 16px;
    }

    .aicoso-rfq-bulk-section {
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .aicoso-rfq-bulk-controls {
        padding: 16px;
    }

    .aicoso-rfq-pagination-section {
        padding: 16px;
        margin-top: 20px;
        border-radius: 12px;
    }

    .aicoso-rfq-pagination-controls {
        gap: 6px;
    }

    .aicoso-rfq-pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .aicoso-rfq-modern-tabs {
        border-radius: 16px;
    }

    .aicoso-rfq-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .aicoso-rfq-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .aicoso-rfq-tab-content {
        padding: 24px 16px;
    }

    .aicoso-rfq-settings-section {
        margin-bottom: 32px;
    }

    .aicoso-rfq-section-header h2 {
        font-size: 24px;
    }

    .aicoso-rfq-settings-grid {
        gap: 16px;
    }

    .aicoso-rfq-setting-card {
        padding: 16px;
        border-radius: 16px;
    }

    .aicoso-rfq-setting-card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .aicoso-rfq-form-group {
        margin-bottom: 16px;
    }

    .aicoso-rfq-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .aicoso-rfq-radio-group,
    .aicoso-rfq-checkbox-label {
        font-size: 14px;
    }

    .aicoso-rfq-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .aicoso-rfq-dashboard-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .aicoso-rfq-sidebar {
        padding: 12px;
        margin-bottom: 16px;
    }

    .aicoso-rfq-logo h2 {
        font-size: 20px;
    }

    .aicoso-rfq-sidebar-nav ul {
        gap: 6px;
    }

    .aicoso-rfq-sidebar-nav a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .aicoso-rfq-sidebar-nav .dashicons {
        margin-right: 8px;
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .aicoso-rfq-main-content {
        padding: 16px 12px;
        margin: 0 12px;
        border-radius: 12px 12px 0 0;
    }

    .aicoso-rfq-header {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .aicoso-rfq-header-left h1 {
        font-size: 20px;
    }

    .aicoso-rfq-header-subtitle {
        font-size: 13px;
    }

    .aicoso-rfq-header-right {
        gap: 8px;
    }

    .aicoso-rfq-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .aicoso-rfq-stats-grid {
        gap: 12px;
        margin-bottom: 20px;
    }

    .aicoso-rfq-stat-card {
        padding: 16px;
        border-radius: 12px;
        gap: 12px;
    }

    .aicoso-rfq-stat-icon {
        width: 32px;
        /* Reduced from 40px (40 * 0.80) */
        height: 32px;
        /* Reduced from 40px (40 * 0.80) */
        flex-shrink: 0;
        /* Prevent icon from shrinking */
    }

    .aicoso-rfq-stat-icon .dashicons {
        font-size: 16px;
        /* Reduced from 20px (20 * 0.80) */
        width: 16px;
        /* Reduced from 20px (20 * 0.80) */
        height: 16px;
        /* Reduced from 20px (20 * 0.80) */
    }

    .aicoso-rfq-stat-content h3 {
        font-size: 12px;
    }

    .aicoso-rfq-stat-number {
        font-size: 18px;
        /* Reduced from 24px (24 * 0.75) */
        word-wrap: break-word;
        word-break: break-all;
        line-height: 1.2;
    }

    .aicoso-rfq-card {
        border-radius: 12px;
        margin-bottom: 24px;
    }

    .aicoso-rfq-card-header {
        padding: 12px;
    }

    .aicoso-rfq-card-header h2 {
        font-size: 18px;
    }

    .aicoso-rfq-card-content {
        padding: 12px;
    }

    .aicoso-rfq-table-container {
        border-radius: 8px;
        margin: 0 -12px;
    }

    .aicoso-rfq-table {
        font-size: 12px;
        min-width: 500px;
    }

    .aicoso-rfq-table th,
    .aicoso-rfq-table td {
        padding: 8px 12px;
        white-space: normal;
        word-wrap: break-word;
    }

    .aicoso-rfq-customer-info {
        gap: 6px;
    }

    .aicoso-rfq-customer-name {
        font-size: 13px;
    }

    .aicoso-rfq-customer-id {
        font-size: 11px;
    }

    .aicoso-rfq-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .aicoso-rfq-actions {
        gap: 4px;
    }

    .aicoso-rfq-action-btn {
        width: 28px;
        height: 28px;
    }

    .aicoso-rfq-action-btn .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }

    .aicoso-rfq-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    .aicoso-rfq-filters-section {
        margin-bottom: 16px;
    }

    .aicoso-rfq-filters-card {
        padding: 16px;
        border-radius: 12px;
    }

    .aicoso-rfq-search-box input {
        padding: 12px 16px 12px 44px;
        font-size: 14px;
    }

    .aicoso-rfq-search-icon {
        left: 16px;
        font-size: 16px;
    }

    .aicoso-rfq-filter-controls {
        gap: 8px;
    }

    .aicoso-rfq-select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .aicoso-rfq-bulk-section {
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .aicoso-rfq-bulk-controls {
        padding: 12px;
    }

    .aicoso-rfq-bulk-select label {
        font-size: 14px;
    }

    .aicoso-rfq-pagination-section {
        padding: 12px;
        margin-top: 16px;
        border-radius: 8px;
    }

    .aicoso-rfq-pagination-info {
        font-size: 14px;
    }

    .aicoso-rfq-pagination-controls {
        gap: 4px;
    }

    .aicoso-rfq-pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .aicoso-rfq-pagination-dots {
        padding: 0 8px;
        font-size: 14px;
    }

    .aicoso-rfq-modern-tabs {
        border-radius: 12px;
    }

    .aicoso-rfq-tab-nav {
        padding: 0 12px;
    }

    .aicoso-rfq-tab-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .aicoso-rfq-tab-btn .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .aicoso-rfq-tab-content {
        padding: 20px 12px;
    }

    .aicoso-rfq-settings-section {
        margin-bottom: 24px;
    }

    .aicoso-rfq-section-header {
        margin-bottom: 20px;
    }

    .aicoso-rfq-section-header h2 {
        font-size: 20px;
    }

    .aicoso-rfq-section-header p {
        font-size: 14px;
    }

    .aicoso-rfq-settings-grid {
        gap: 12px;
    }

    .aicoso-rfq-setting-card {
        padding: 12px;
        border-radius: 12px;
    }

    .aicoso-rfq-setting-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .aicoso-rfq-setting-card h3 .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .aicoso-rfq-form-group {
        margin-bottom: 12px;
    }

    .aicoso-rfq-form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .aicoso-rfq-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .aicoso-rfq-radio-group,
    .aicoso-rfq-checkbox-label {
        font-size: 13px;
        padding: 6px 10px;
    }

    .aicoso-rfq-radio-label input[type="radio"],
    .aicoso-rfq-checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .aicoso-rfq-checkbox-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .aicoso-rfq-color-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .aicoso-rfq-preview-card {
        padding: 16px;
        margin-top: 20px;
        border-radius: 8px;
    }

    .aicoso-rfq-preview-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .aicoso-rfq-preview-container {
        gap: 8px;
    }

    .aicoso-rfq-button-preview {
        padding: 8px 16px;
        font-size: 13px;
    }

    .aicoso-rfq-exclusion-grid {
        gap: 16px;
    }

    .aicoso-rfq-exclusion-list {
        max-height: 250px;
    }

    .aicoso-rfq-exclusion-item {
        padding: 10px 12px;
    }

    .aicoso-rfq-exclusion-type {
        min-width: 50px;
        font-size: 11px;
    }

    .aicoso-rfq-exclusion-name {
        font-size: 13px;
    }

    .aicoso-rfq-btn-remove {
        width: 24px;
        height: 24px;
    }

    .aicoso-rfq-btn-remove .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }

    .aicoso-rfq-exclusion-description {
        font-size: 11px;
    }
}

/* ===== LEGACY COMPONENTS (for backward compatibility) ===== */

/* Keep existing styles for other admin pages */

.aicoso-rfq-page-actions {
    margin: 20px 0;
}

.aicoso-rfq-filters {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
    flex-wrap: wrap;
}

.aicoso-rfq-search {
    flex: 1;
    min-width: 250px;
}

.aicoso-rfq-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.aicoso-rfq-filter-status select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.aicoso-rfq-bulk-actions {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.aicoso-rfq-bulk-actions select {
    padding: 6px 10px;
}

.aicoso-rfq-pagination {
    margin: 20px 0;
}

.aicoso-rfq-tabs .nav-tab-wrapper {
    margin-bottom: 20px;
}

.aicoso-rfq-tabs .nav-tab {
    background: #f1f1f1;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 16px;
    margin-right: 4px;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

.aicoso-rfq-tabs .nav-tab-active,
.aicoso-rfq-tabs .nav-tab:hover {
    background: #fff;
    border-bottom-color: #fff;
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.aicoso-rfq-preview-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-preview-container {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 15px 0;
}

.aicoso-rfq-button-preview {
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aicoso-rfq-button-preview:hover {
    background: #005a87;
}

.aicoso-rfq-settings-footer {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.payment-methods-grid label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.color-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.color-pickers label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.color-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.exclusion-sections {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.exclusion-section {
    flex: 1;
    min-width: 300px;
}

.exclusion-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.exclusion-controls input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.excluded-items {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    background: #f9f9fa;
}

.excluded-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.excluded-item:last-child {
    border-bottom: none;
}

.excluded-item span {
    flex: 1;
}



/* ===== CREATE QUOTE PAGE ===== */

.aicoso-rfq-create-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.aicoso-rfq-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.aicoso-rfq-section-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.aicoso-rfq-section-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.aicoso-rfq-section-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Customer Section */
.aicoso-rfq-customer-section {
    padding: 32px;
}

.aicoso-rfq-customer-search {
    margin-bottom: 24px;
}

.aicoso-rfq-search-with-button {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.aicoso-rfq-search-with-button .aicoso-rfq-input {
    flex: 1;
}

.aicoso-rfq-customer-results {
    margin-bottom: 24px;
}

.aicoso-rfq-customer-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.aicoso-rfq-customer-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.aicoso-rfq-customer-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.aicoso-rfq-customer-option-info {
    flex: 1;
}

.aicoso-rfq-customer-option-name {
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.aicoso-rfq-customer-option-email {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 2px;
}

.aicoso-rfq-customer-option-phone {
    font-size: 13px;
    color: #94a3b8;
}

/* Quick Add Customer */
.aicoso-rfq-quick-add {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
}

.aicoso-rfq-quick-add-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 16px;
}

.aicoso-rfq-quick-add-header .dashicons {
    color: #3b82f6;
}

/* Product Section */
.aicoso-rfq-product-section {
    padding: 32px;
}

.aicoso-rfq-product-search {
    margin-bottom: 24px;
}

.aicoso-rfq-product-results {
    margin-bottom: 24px;
}

.aicoso-rfq-product-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.aicoso-rfq-product-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.aicoso-rfq-product-option-image {
    width: 50px;
    height: 50px;
    margin-right: 16px;
    border-radius: 6px;
    overflow: hidden;
}

.aicoso-rfq-product-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aicoso-rfq-product-option-info {
    flex: 1;
    margin-right: 16px;
}

.aicoso-rfq-product-option-name {
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}

.aicoso-rfq-product-option-sku {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.aicoso-rfq-product-option-price {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

.aicoso-rfq-product-option-quantity {
    margin-right: 16px;
}

.aicoso-rfq-qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Selected Products */
.aicoso-rfq-selected-products {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.aicoso-rfq-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.aicoso-rfq-selected-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.aicoso-rfq-selected-total {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.aicoso-rfq-selected-list {
    min-height: 200px;
}

.aicoso-rfq-selected-product {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.aicoso-rfq-selected-product:last-child {
    border-bottom: none;
}

.aicoso-rfq-selected-product-image {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    border-radius: 6px;
    overflow: hidden;
}

.aicoso-rfq-selected-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aicoso-rfq-selected-product-details {
    flex: 1;
    margin-right: 16px;
}

.aicoso-rfq-selected-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.aicoso-rfq-selected-product-sku {
    font-size: 12px;
    color: #64748b;
}

.aicoso-rfq-selected-product-quantity {
    margin-right: 16px;
}

.aicoso-rfq-quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}

.aicoso-rfq-quantity-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aicoso-rfq-quantity-control button:hover {
    background: #e2e8f0;
    color: #374151;
}

.aicoso-rfq-quantity-control input {
    width: 40px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 14px;
    color: #374151;
}

.aicoso-rfq-selected-product-price {
    text-align: right;
    margin-right: 16px;
}

.aicoso-rfq-selected-product-unit-price {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.aicoso-rfq-selected-product-total {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.aicoso-rfq-selected-product-remove {
    display: flex;
    align-items: center;
}

/* Quote Details */
.aicoso-rfq-quote-details {
    padding: 32px;
}

.aicoso-rfq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.aicoso-rfq-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.aicoso-rfq-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Small button variant */
.aicoso-rfq-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Empty State */
.aicoso-rfq-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.aicoso-rfq-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.aicoso-rfq-empty-state p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}



/* ===== SETTINGS SECTION ===== */

.aicoso-rfq-settings-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible !important;
}

.aicoso-rfq-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: none;
}

.aicoso-rfq-section-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.aicoso-rfq-section-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.aicoso-rfq-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    overflow: visible !important;
}

.aicoso-rfq-setting-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Add colored top border like other tabs */
.aicoso-rfq-setting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.aicoso-rfq-setting-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.aicoso-rfq-setting-card h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aicoso-rfq-setting-card h3 .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.aicoso-rfq-form-group {
    margin-bottom: 16px;
}

.aicoso-rfq-form-group:last-child {
    margin-bottom: 0;
}

.aicoso-rfq-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.aicoso-rfq-input,
.aicoso-rfq-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.aicoso-rfq-input:focus,
.aicoso-rfq-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.aicoso-rfq-radio-group,
.aicoso-rfq-checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aicoso-rfq-radio-label,
.aicoso-rfq-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #475569;
}

.aicoso-rfq-radio-label:hover,
.aicoso-rfq-checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.aicoso-rfq-radio-label input,
.aicoso-rfq-checkbox-label input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.aicoso-rfq-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.aicoso-rfq-color-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aicoso-rfq-color-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.aicoso-rfq-color-input {
    width: 100%;
    height: 40px;
    padding: 4px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aicoso-rfq-color-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Settings form should not clip dropdown */
#aicoso-rfq-settings-form {
    overflow: visible;
}

/* ===== SEARCH FUNCTIONALITY FOR EXCLUSION LIST ===== */

.aicoso-rfq-search-add {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.aicoso-rfq-search-add input {
    flex: 1;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 180px;
    overflow-y: auto;
    z-index: 99999;
    margin-top: -1px;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
    color: #667eea;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.search-result-sku {
    font-size: 12px;
    color: #64748b;
    display: block;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.search-error {
    color: #ef4444;
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0 8px 0;
}

.search-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== CUSTOM FORM FIELDS TAB ===== */

/* Full width card for form fields */
.aicoso-rfq-setting-card.aicoso-rfq-full-width {
    grid-column: 1 / -1;
}

/* Form row for inline fields */
.aicoso-rfq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .aicoso-rfq-form-row {
        grid-template-columns: 1fr;
    }
}

/* Add field form styling */
.aicoso-rfq-add-field-form {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

/* Custom fields list container */
.aicoso-rfq-custom-fields-list {
    min-height: 100px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px 0;
}

/* Empty state */
.aicoso-rfq-empty-fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.aicoso-rfq-empty-fields .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #94a3b8;
}

.aicoso-rfq-empty-fields p {
    margin: 0;
    font-size: 14px;
}

/* Individual custom field item */
.aicoso-rfq-custom-field-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: grab;
}

.aicoso-rfq-custom-field-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.aicoso-rfq-custom-field-item:active {
    cursor: grabbing;
}

.aicoso-rfq-custom-field-item.dragging {
    opacity: 0.5;
    background: #f8fafc;
}

/* Drag handle */
.aicoso-rfq-field-drag-handle {
    color: #94a3b8;
    cursor: grab;
    padding: 5px;
    flex-shrink: 0;
}

.aicoso-rfq-field-drag-handle:hover {
    color: #667eea;
}

.aicoso-rfq-field-drag-handle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Field info */
.aicoso-rfq-field-info {
    flex: 1;
    min-width: 0;
}

.aicoso-rfq-field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.aicoso-rfq-field-label strong {
    font-size: 14px;
    color: #1e293b;
}

.aicoso-rfq-required-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fef3c7;
    color: #d97706;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aicoso-rfq-field-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #64748b;
    font-size: 12px;
}

.aicoso-rfq-field-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 6px;
    font-weight: 500;
    font-size: 11px;
}

.aicoso-rfq-field-placeholder {
    color: #94a3b8;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Field actions */
.aicoso-rfq-field-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.aicoso-rfq-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aicoso-rfq-btn-icon:hover {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
}

.aicoso-rfq-btn-icon.aicoso-rfq-btn-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.aicoso-rfq-btn-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Field count badge */
.aicoso-rfq-field-count {
    font-weight: normal;
    color: #64748b;
    font-size: 13px;
    margin-left: 10px;
}

/* Help text */
.aicoso-rfq-field-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 15px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #15803d;
    font-size: 13px;
}

.aicoso-rfq-field-help .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Required asterisk */
.required {
    color: #ef4444;
}

/* Edit field modal overlay */
.aicoso-rfq-field-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.aicoso-rfq-field-edit-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.aicoso-rfq-field-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.aicoso-rfq-field-edit-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.aicoso-rfq-field-edit-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.aicoso-rfq-field-edit-close:hover {
    color: #ef4444;
}

.aicoso-rfq-field-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}