/* ═══════════════════════════════════════════════════════════════
   🎨 Quote View Modern Design V20.4.2
   ═══════════════════════════════════════════════════════════════
   Created: January 2025
   Purpose: Professional, modern, and fast Quote View interface
   ══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   1. QUOTE VIEW CONTAINER
   ══════════════════════════════════════════════════════════════ */

.quote-view-container {
    max-width: 1600px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ═══════════════════════════════════════════════════════════════
   2. QUOTE HEADER SECTION
   ══════════════════════════════════════════════════════════════ */

.quote-view-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.quote-view-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.quote-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.quote-header-info h1 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.quote-header-info p {
    color: rgba(255,255,255,0.9);
    margin: 0 0 12px 0;
    font-size: 15px;
}

.quote-status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.quote-status-draft {
    background: rgba(255, 165, 0, 0.95);
    color: white;
}

.quote-status-sent {
    background: rgba(33, 150, 243, 0.95);
    color: white;
}

.quote-status-accepted {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.quote-status-rejected {
    background: rgba(244, 67, 54, 0.95);
    color: white;
}

.quote-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quote-header-actions .btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quote-header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   3. QUOTE INFO GRID
   ══════════════════════════════════════════════════════════════ */

.quote-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.quote-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.quote-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.quote-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.quote-info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.quote-info-card-icon.customer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quote-info-card-icon.partner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.quote-info-card-icon.distributor {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.quote-info-card-icon.date {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.quote-info-card-title {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.quote-info-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.quote-info-card-value a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quote-info-card-value a:hover {
    color: #667eea;
    text-decoration: underline;
}

.quote-info-card-subtitle {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0 0;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   4. QUOTE SUMMARY SECTION
   ══════════════════════════════════════════════════════════════ */

.quote-summary-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.quote-summary-header {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quote-summary-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 24px;
}

.summary-card {
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.summary-card-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.summary-card-subvalue {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
}

.summary-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Summary Card Variants */
.summary-card-items {
    background: linear-gradient(135deg, #f0f2f5 0%, #d6dae0 30%);
    color: #2c3e50;
}

.summary-card-disti {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 30%);
    color: #1b5e20;
}

.summary-card-partner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 30%);
    color: #e65100;
}

.summary-card-eu-usd {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 30%);
    color: #0d47a1;
}

.summary-card-eu-sar {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 30%);
    color: #4a148c;
}

/* ═══════════════════════════════════════════════════════════════
   5. PRICING TIERS TABLE
   ══════════════════════════════════════════════════════════════ */

.pricing-tiers-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pricing-tiers-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-tiers-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 4px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.tier-switcher-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-switcher-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.tier-switcher-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: #f8f9fa;
}

.pricing-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.pricing-table th.text-center {
    text-align: center;
}

.pricing-table th.text-right {
    text-align: right;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pricing-table td {
    padding: 16px;
    font-size: 14px;
    color: #333;
}

.pricing-table td.text-center {
    text-align: center;
}

.pricing-table td.text-right {
    text-align: right;
}

.pricing-table .part-number {
    font-weight: 700;
    color: #667eea;
}

.pricing-table .price-value {
    font-weight: 700;
    font-size: 15px;
}

/* V21.5.0: Enhanced discount badge with maximum visibility */
.pricing-table .discount-badge {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px solid #fca5a5;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.pricing-table .discount-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.pricing-table .margin-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

.pricing-table tfoot {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
}

.pricing-table tfoot td {
    padding: 18px 16px;
    font-size: 16px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   V22.1.0: ENHANCED TABLE DESIGN
   ══════════════════════════════════════════════════════════════ */

.pricing-tiers-container {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.pricing-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.pricing-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.pricing-table tbody tr:hover {
    background: #f1f5f9 !important;
    transform: translateX(3px);
    box-shadow: -3px 0 0 #667eea, 0 2px 12px rgba(102, 126, 234, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   6. SMART ACTIONS PANEL
   ══════════════════════════════════════════════════════════════ */

.smart-actions-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #f1f5f9;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.action-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.action-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.action-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
}

.action-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.action-btn i {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.action-btn span {
    position: relative;
    z-index: 1;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45B049 100%);
    color: white;
}

.action-btn-warning {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #1a202c;
}

.action-btn-danger {
    background: linear-gradient(135deg, #F44336 0%, #E53935 100%);
    color: white;
}

.action-btn-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   7. SPECIAL SECTIONS
   ══════════════════════════════════════════════════════════════ */

.valid-until-section {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    padding: 24px;
    border-left: 5px solid #FBC02D;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(251, 192, 45, 0.2);
}

.valid-until-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.valid-until-icon {
    font-size: 48px;
}

.valid-until-text h4 {
    color: #F57F17;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.valid-until-text .date {
    color: #E65100;
    font-size: 24px;
    font-weight: 700;
}

.special-discount-section {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    padding: 24px;
    border-left: 5px solid #EF5350;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(239, 83, 80, 0.2);
}

.special-discount-header {
    text-align: center;
    margin-bottom: 20px;
}

.special-discount-header h3 {
    margin: 0;
    color: #EF5350;
    font-size: 24px;
    font-weight: 700;
}

.special-discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.discount-value-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.discount-value-label {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.discount-value-amount {
    font-size: 32px;
    font-weight: 700;
}

.discount-note {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   8. NOTES SECTION
   ══════════════════════════════════════════════════════════════ */

.notes-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.notes-header h4 {
    color: #1a202c;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.notes-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   9. RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .quote-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .smart-actions-panel {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .quote-view-header {
        padding: 20px;
    }
    
    .quote-header-info h1 {
        font-size: 24px;
    }
    
    .quote-info-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .smart-actions-panel {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        font-size: 12px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   10. UTILITIES
   ══════════════════════════════════════════════════════════════ */

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   END OF FILE
   ══════════════════════════════════════════════════════════════ */
