  .quotes-dashboard {
        background: #f8f9fa;
        min-height: 100vh;
        padding: 20px;
        max-width: none;
        width: 100%;
    }

    .btn-upload {
        margin-left: 1rem;
    }

    /* Override any container width restrictions */
    .container {
        max-width: none !important;
        width: 100% !important;
    }

    .dashboard-header {
        background: white;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .filters-section {
        background: white;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .table-section {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        overflow-x: auto;
        /* Add horizontal scroll for very wide tables */
    }

    .table-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }



    /* Hide/show columns functionality */
    .quotes-table th.column-hidden,
    .quotes-table td.column-hidden {
        display: none !important;
    }


    .bulk-actions {
        display: none;
        gap: 0.1rem;
    }

    .bulk-actions.show {
        display: flex;
    }

    .quotes-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

    .quotes-table th,
    .quotes-table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }
    
    /* Column-specific classes with responsive units */
    
    .col-quote-id {
        width: 12rem;
        min-width: 10rem;
    }
    
    .col-product {
        width: 24rem;
        min-width: 16rem;
    }
    
    .col-supplier,
    .col-store {
        width: 10rem;
        min-width: 8rem;
    }
    
    .col-amount,
    .col-selling-price,
    .col-margin {
        width: 7rem;
        min-width: 6rem;
    }
    
    .col-status {
        width: 9rem;
        min-width: 7rem;
    }
    
    .col-images {
        width: 10rem;
        min-width: 8rem;
    }
    
    .col-quality {
        width: 10rem;
        min-width: 8rem;
    }
    
    .col-link-1688 {
        width: 8rem;
        min-width: 6rem;
    }
    
    .col-notes {
        width: 12rem;
        min-width: 10rem;
    }
    
    .col-timeline {
        width: 7rem;
        min-width: 6rem;
    }
    
    .col-actions {
        width: 16rem;
        min-width: 14rem;
    }
    
    /* Responsive behavior */
    @media (max-width: 1400px) {
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .quotes-table {
            min-width: 1200px;
        }
    }
    
    @media (max-width: 768px) {
        .quotes-table {
            min-width: 1000px;
        }
        
        .col-product {
            width: 14rem;
            min-width: 10rem;
        }
        
        .col-actions {
            width: 12rem;
            min-width: 10rem;
        }
    }
      .quotes-table th {
        background: #f8f9fa;
        font-weight: 600;
        cursor: pointer;
        position: relative;
        padding-right: 30px;
        /* Ensure space for sort icon */
    }

    .quotes-table th:hover {
        background: #e9ecef;
    }

    .quotes-table tbody tr:hover {
        background: #f8f9fa;
    }

    .sort-icon {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.5;
        min-width: 12px; /* Ensure icon has minimum space */
    }
    .request-changes-section {
        display: flex;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        margin-top: 5px;
    }

    .notes-input {
        width: 100%;
        min-width: 150px;
        font-size: 11px !important;
        padding: 2px 4px !important;
        height: 24px !important;
    }

    .btn[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
    }

    
    /* Remove specific widths from action buttons for better responsiveness */
    .action-buttons {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .action-buttons-row {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 12px;
    }

    .pagination-wrapper {
        padding: 20px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .filter-row {
        display: grid;
        gap: 15px;
        align-items: end;
        grid-template-columns: 1fr;
    }
    
    /* Responsive grid for filters: align as rows across breakpoints */
    @media (min-width: 576px) {
        .filter-row {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    @media (min-width: 768px) {
        .filter-row {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    @media (min-width: 992px) {
        .filter-row {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }
    @media (min-width: 1200px) {
        .filter-row {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }


    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 120px;
    }

    .filter-group label {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }

    .loading {
        text-align: center;
        padding: 40px;
    }

    .status-badge {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
    }    .status-pending { background: #fff3cd; color: #856404; }
    .status-pending-review { background: #cce5ff; color: #004085; }
    .status-review-pending { background: #e1ecf4; color: #39739d; }
    .status-approved { background: #d4edda; color: #155724; }
    .status-rejected { background: #f8d7da; color: #721c24; }
    .status-submitted { background: #e7f1ff; color: #0056b3; }
    .status-cancelled { background: #f8f9fa; color: #6c757d; }
    .status-changes-requested { background: #ffeaa7; color: #d63031; }
    .status-unknown { background: #e9ecef; color: #6c757d; }
    .status-oos { background: #f8d7da; color: #721c24; }
    
    /* Edit Request Status Badges */
    .status-edit-requested { background: #fff3cd; color: #856404; }
    .status-edit-approved { background: #d1ecf1; color: #0c5460; }
    .status-edit-rejected { background: #f5c6cb; color: #721c24; }
    .status-synced { background: #28a745; color: white; }
    .status-sync { background: #28a745; color: white; }
    .status-notify { background: #007bff; color: white; }
    .quality-badge {
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
    }

    .quality-edit-container {
        min-width: 120px;
    }

    .quality-select {
        min-width: 110px;
        height: 28px !important;
        border: 1px solid #ddd;
        border-radius: 3px;
    }

    .quality-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .quality-unknown {
        background: #e9ecef;
        color: #6c757d;
    }

    /* New quality assessment options */
    .quality-high-quality {
        background: #d4edda;
        color: #155724;
    }

    .quality-low-quality {
        background: #fff3cd;
        color: #856404;
    }

    .quality-bad-quality {
        background: #f8d7da;
        color: #721c24;
    }

    .quality-waiting-for-quality-pictures {
        background: #cce5ff;
        color: #004085;
    }

    .quality-marketing-photos {
        background: #e2e3e5;
        color: #383d41;
    }

    .quality-acceptable-similar {
        background: #d1ecf1;
        color: #0c5460;
    }

    .quality-unacceptable-similar {
        background: #f5c6cb;
        color: #721c24;
    }

    .quality-copyright {
        background: #ffeaa7;
        color: #d63031;
    }



    .currency {
        font-weight: 600;
        color: #007bff;
    }

    .new-price-currency {
        font-weight: 600;
        color: #007bff;
    }

    .link-field {
        color: #007bff;
        text-decoration: none;
    }

    .link-field:hover {
        text-decoration: underline;
    }

    .link-1688 {
        color: #28a745;
        text-decoration: none;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .link-1688:hover {
        text-decoration: underline;
        color: #218838;
    }

    .link-1688 i {
        font-size: 10px;
    }

    .quote-notes {
        font-size: 12px;
        color: #666;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        cursor: help;
    }

    .small-text {
        font-size: 11px;
        color: #666;
    }

    .product-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .product-image {
        width: 50px;
        height: 50px;
        border-radius: 4px;
        object-fit: cover;
        border: 1px solid #dee2e6;
        cursor: pointer;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .product-image:hover {
        transform: scale(1.1);
        border-color: #007bff;
    }

    .product-details {
        flex: 1;
        min-width: 0;
        /* Allow text truncation */
    }

    .image-preview-container {
        display: flex;
        gap: 4px;
        align-items: center;
        flex-wrap: wrap;
    }

    .image-preview {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        object-fit: cover;
        border: 1px solid #dee2e6;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .image-preview:hover {
        transform: scale(1.1);
        border-color: #007bff;
    }


    .no-images {
        color: #6c757d;
        font-style: italic;
        font-size: 12px;
    }


    .more-images {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-size: 11px;
        font-weight: bold;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .more-images:hover {
        background: rgba(0, 0, 0, 0.9);
    }
    
    /* Timeline Modal Styles */
    .timeline-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }
    
    .timeline-modal-content {
        background-color: white;
        margin: 50px auto;
        padding: 0;
        border-radius: 8px;
        width: 90%;
        max-width: 800px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .timeline-modal-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #f8f9fa;
        border-radius: 8px 8px 0 0;
    }
    
    .timeline-modal-header h3 {
        margin: 0;
        color: #333;
    }
    
    .timeline-modal-close {
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        color: #999;
        padding: 0 10px;
    }
    
    .timeline-modal-close:hover {
        color: #333;
    }
    
    .timeline-modal-body {
        padding: 20px;
    }
    
    .timeline-container {
        position: relative;
    }
    
    .timeline-item {
        display: flex;
        margin-bottom: 20px;
        position: relative;
    }
    
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 10px;
        top: 25px;
        bottom: -20px;
        width: 2px;
        background-color: #e9ecef;
    }
    
    .timeline-dot {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-right: 15px;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }
    
    .timeline-dot.system { background-color: #6c757d; }
    .timeline-dot.systemadmin { background-color: #6c757d; }
    .timeline-dot.supplier { background-color: #007bff; }
    .timeline-dot.va { background-color: #28a745; }
    
    .timeline-content {
        flex: 1;
        padding-top: 2px;
    }
    
    .timeline-timestamp {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }
    
    .timeline-role {
        font-size: 12px;
        color: #666;
        margin-left: 10px;
    }
    
    .timeline-changes {
        margin-top: 8px;
    }
    
    .timeline-change {
        font-size: 13px;
        color: #555;
        padding: 2px 0;
    }
    
    .timeline-change-value {
        font-family: monospace;
        background-color: #f8f9fa;
        padding: 1px 4px;
        border-radius: 3px;
        margin: 0 2px;
    }
    


    /* Product Activation Status Styling */
    .btn-success[style*="cursor: default"] {
        background-color: #28a745 !important;
        border-color: #28a745 !important;
        color: white !important;
        pointer-events: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-success[style*="cursor: default"] .fa-check-circle {
        color: #ffffff;
        font-size: 12px;
    }

    /* Enhanced activation button styling */
    .btn-outline-success {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-outline-success .fa-circle {
        font-size: 10px;
    }

    /* Loading state for activation button */
    .btn-activating {
        background-color: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #212529 !important;
        pointer-events: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-activating .fa-spinner {
        animation: spin 1s linear infinite;
    }

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

    /* Product status indicator improvements */
    .action-buttons .btn-success[title="Product Active on Shopify"] {
        background: linear-gradient(135deg, #28a745, #20c997);
        border: 1px solid #28a745;
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
        font-weight: 500;
    }

    .action-buttons .btn-success[title="Product Active on Shopify"]:hover {
        transform: none;
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    }

    /* Activation confirmation modal enhancement */
    .msgprint-dialog .modal-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }

    .msgprint-dialog .btn-primary {
        background-color: #007bff;
        border-color: #007bff;
    }

    .msgprint-dialog .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004085;
    }

/* Quotes dashboard-specific UI styles (merged from quotes.css) */
.quotes-dashboard .btn {
    border-radius: 4px;
    font-weight: 500;
}

.quotes-dashboard .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.quotes-dashboard .btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

.quotes-dashboard .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.quotes-dashboard .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.quotes-dashboard .form-control {
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #ffffff !important;
    color: #495057 !important;
}

.quotes-dashboard .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: #ffffff !important;
    color: #495057 !important;
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .quotes-dashboard {
        padding: 10px;
    }

    .table-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .bulk-actions {
        justify-content: center;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .quotes-table th,
    .quotes-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .dashboard-header .btn,
    .filters-section,
    .bulk-actions,
    .action-buttons,
    .pagination-wrapper {
        display: none !important;
    }
    
    .quotes-dashboard {
        background: white;
        padding: 0;
    }
    
    .table-section {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .quotes-table {
        font-size: 10px;
    }
    
    .quotes-table th,
    .quotes-table td {
        padding: 4px;
        border: 1px solid #000;
    }
}

/* Edit Request Modal Styles */
#editRequestModal {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#editRequestModal .modal-dialog {
    position: relative;
    width: 500px;
    margin: 10% auto;
}

#editRequestModal .modal-content {
    background-color: #fefefe;
    padding: 0;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    border-radius: 5px;
}

#editRequestModal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#editRequestModal .modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

#editRequestModal .modal-header .close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

#editRequestModal .modal-header .close:hover {
    color: #000;
}

#editRequestModal .modal-body {
    padding: 20px;
}

#editRequestModal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#editRequestModal textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

/* Frappe control styling adjustments for filters */
.filter-group .frappe-control {
    width: 100%;
}

.filter-group .frappe-control .form-group {
    margin-bottom: 0;
}

.filter-group .frappe-control input {
    border: 1px solid #ced4da;
    border-radius: 4px;
}
