/* Quote Request Box Styles */
.quote-request-box { 
    margin: 20px 0; 
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.quote-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.quote-qty-unit, .quote-qty-mg { 
    width: 80px; 
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.add-to-quote { 
    background: #02457A; 
    color: #fff; 
    border: none; 
    padding: 8px 16px; 
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.add-to-quote:hover {
    background: #0073aa;
}

.add-to-quote:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Quote Message Styles */
.quote-message, .quote-temp-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 3px;
    display: none;
}

.quote-message.success, .quote-temp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quote-message.error, .quote-temp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quote-temp-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Quote List Wrapper */
.quote-list-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.quote-header {
    margin-bottom: 30px;
}

.quote-header h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.quote-count {
    color: #02457A;
    font-weight: normal;
}

/* Success/Error Messages */
.quote-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.quote-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

/* Quote Table Styles */
.quote-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.quote-list-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.quote-list-table th {
    background: #02457A;
    color: white;
    font-weight: bold;
    padding: 12px;
    text-align: left;
    border: none;
}

.quote-list-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.quote-list-table tr:hover {
    background: #f8f9fa;
}

/* Image Cell Styles */
.quote-image-cell {
    width: 150px;
    text-align: center;
}

.quote-molecular-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.quote-no-image {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    text-align: center;
}

/* Product Cell Styles */
.quote-product-cell {
    min-width: 200px;
}

.quote-product-cell strong {
    color: #333;
    font-size: 14px;
}

/* Quantity Badge */
.quantity-badge {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
    white-space: nowrap;
}

/* Action Cell */
.quote-action-cell {
    text-align: center;
    width: 100px;
}

.remove-quote-btn { 
    background: #dc3545; 
    color: white;
    border: none; 
    padding: 6px 12px; 
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.remove-quote-btn:hover {
    background: #c82333;
}

.remove-quote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Quote Submission Section */
.quote-submission-section {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quote-submission-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    border-bottom: 2px solid #02457A;
    padding-bottom: 10px;
}

.quote-form-fields {
    max-width: 600px;
}

.quote-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.quote-form-field {
    flex: 1;
}

.quote-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.quote-form-field input,
.quote-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.quote-form-field input:focus,
.quote-form-field textarea:focus {
    outline: none;
    border-color: #02457A;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

.quote-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.submit-quote-btn,
.clear-quote-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-quote-btn {
    background: #02457A;
    color: white;
}

.submit-quote-btn:hover {
    background: #218838;
}

.submit-quote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.clear-quote-btn {
    background: #02457A;
    color: white;
}

.clear-quote-btn:hover {
    background: #218838;
}

/* Empty State */
.quote-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 5px;
    border: 2px dashed #ddd;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.quote-empty-state h3 {
    color: #666;
    margin: 0 0 10px 0;
}

.quote-empty-state p {
    color: #999;
    margin: 0 0 25px 0;
}

.browse-products-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #02457A;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.browse-products-btn:hover {
    background: #218838;
    text-decoration: none;
    color: white;
}

/* Session Info */
.quote-session-info {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 12px;
}

.quote-session-info .dashicons {
    font-size: 14px;
    vertical-align: middle;
}

/* Quote Count Badge (for navigation menus) */
.quote-count-badge {
    background: #02457A;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quote-qty-unit,
    .quote-qty-mg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .quote-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .quote-form-actions {
        flex-direction: column;
    }
    
    .quote-list-table {
        font-size: 12px;
    }
    
    .quote-list-table th,
    .quote-list-table td {
        padding: 8px 4px;
    }
    
    .quote-image-cell {
        width: 60px;
    }
    
    .quote-molecular-image {
        width: 40px;
        height: 40px;
    }
    
    .quote-no-image {
        width: 40px;
        height: 40px;
        font-size: 8px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashicons.dashicons-update {
    animation: spin 1s linear infinite;
}