<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"> :root {
            --primary-color: #007bff;
            --secondary-color: #17a2b8;
            --background-color: #f8f9fa;
            --card-background: #ffffff;
            --text-color: #333333;
            --border-color: #dee2e6;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --success-color: #00c853;
            --success-hover: #00a844;
            --text-primary: #2c3e50;
            --text-secondary: #546e7a;
            --white: #ffffff;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
        }

        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f8f9fa;
            color: var(--text-primary);
            line-height: 1.6;
        }

        .dashboard-container {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        .page-title {
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            font-size: 1.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Stats Section */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .stat-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            text-align: center;
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .stat-value {
            font-size: 1.75rem;
            font-weight: 600;
            color: var(--secondary-color);
            margin-bottom: 0.5rem;
        }

        .stat-title {
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        /* Status Selector */
        .status-selector {
            display: flex;
            gap: 2px;
            background-color: rgba(255, 255, 255, 0.1);
            padding: 2px;
            border-radius: 4px;
        }

        .status-btn {
            background: none;
            border: none;
            color: white;
            padding: 6px 12px;
            font-size: 14px;
            cursor: pointer;
            border-radius: 3px;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }

        .status-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .status-btn.active {
            background-color: white;
            color: var(--secondary-color);
        }

        /* Filters Section */
        .filters-card {
            background: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }

        .filter-header {
            background-color: var(--secondary-color);
            color: white;
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .filter-header-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .filter-header-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .filter-content {
            padding: 1.5rem;
        }

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

        .search-field {
            position: relative;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.875rem;
        }

        .form-control {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 0.875rem;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
        }

        /* Results Section */
        .search-results {
            background: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        #resultCount {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .view-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .view-btn {
            background: none;
            border: none;
            padding: 0.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            border-radius: 4px;
            transition: var(--transition);
        }

        .view-btn.active {
            color: var(--secondary-color);
            background-color: rgba(41, 98, 255, 0.1);
        }

        /* Grid View */
        .grid-view {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .tender-card {
            background-color: var(--card-background);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 6px;
            position: relative;
            transition: all 0.3s ease;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 10px;
        }

        .tender-card:hover {
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .tender-card h3 {
            grid-column: 1 / -1;
            margin: 0 0 15px 0;
            font-size: 16px;
            font-weight: 500;
            color: var(--primary-color);
            padding-right: 30px;
        }

        .tender-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .tender-info p {
            margin: 0;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tender-info i {
            width: 16px;
            color: #666;
        }

        .tender-actions {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .appel-offre-tag {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: var(--secondary-color);
            color: white;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            z-index: 1;
        }

        /* List View */
         .list-view .tender-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 12px;
            margin-top: -12px;
        }
        
        .list-view .tender-table thead th {
            background-color: var(--secondary-color);
            color: white;
            font-weight: 500;
            padding: 12px 16px;
            text-align: left;
            font-size: 14px;
            border: none;
            white-space: nowrap;
        }

        .tender-table th {
            background: #f8f9fa;
            padding: 1rem;
            text-align: left;
            font-weight: 500;
            color: var(--text-primary);
            border-bottom: 2px solid #eee;
            font-size: 0.875rem;
        }

        .tender-table td {
            padding: 1rem;
            border-bottom: 1px solid #eee;
            font-size: 0.875rem;
            vertical-align: top;
        }

        .tender-table tr:hover td {
            background: #d7f7f7;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .status-badge.status-success {
            background-color: rgba(0, 200, 83, 0.1);
            color: var(--success-color);
        }

        .status-badge.status-failed {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }

        .match-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.75rem;
            color: var(--secondary-color);
            background: rgba(41, 98, 255, 0.1);
            padding: 0.125rem 0.5rem;
            border-radius: 12px;
            margin-left: 0.5rem;
        }

        /* Modal */
      .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Modal Content Base Styles */
.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Z-index Hierarchy for Different Modals */
#detailsModal {
    z-index: 1000;
}

#detailsModal .modal-content {
    z-index: 1001;
}

#buyerDetailsModal {
    z-index: 1010;
}

#buyerDetailsModal .modal-content {
    z-index: 1011;
}

/* Loading overlay should always be on top */
.loading-overlay {
    z-index: 2000;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal.show {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal Stack Management */
.modal-stack {
    position: relative;
}

.modal-open {
    overflow: hidden;
}

/* Close Button Styles */
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #dc3545;
}

/* Scrollbar Styles for Modal Content */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f0f0f0;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
        max-height: 90vh;
    }
}

        .close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            transition: var(--transition);
        }

        .close:hover {
            color: #dc3545;
        }

        .details-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .details-table th,
        .details-table td {
            padding: 0.75rem;
            border-bottom: 1px solid #eee;
        }

        .details-table th {
            width: 200px;
            background: #f8f9fa;
            font-weight: 500;
            text-align: left;
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--secondary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .hidden {
            display: none;
        }

        /* Button Styles */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 6px;
            font-weight: 500;
            font-size: 0.875rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-connexion {
            background-color: var(--secondary-color);
            color: white;
        }

        .btn-connexion:hover {
            background-color: #1e4bd8;
        }

        .btn-inscription {
            background-color: #6c757d;
            color: white;
        }

        .btn-inscription:hover {
            background-color: #5a6268;
        }

        .btn-group {
            display: flex;
            gap: 0.5rem;
            justify-content: flex-end;
            margin-top: 1rem;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            margin-top: 1rem;
        }

        .pagination-info {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .dashboard-container {
                padding: 1rem;
            }

            .filter-header {
                flex-direction: column;
                gap: 1rem;
            }

            .search-group {
                grid-template-columns: 1fr;
            }

            .grid-view {
                grid-template-columns: 1fr;
            }

            .modal-content {
                width: 95%;
                margin: 1rem;
                padding: 1rem;
            }

            .btn-group {
                flex-direction: column;
                width: 100%;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            .pagination {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .details-table th {
                width: 120px;
            }

            .filter-header-right {
                width: 100%;
                justify-content: space-between;
            }

            .tender-info {
                margin-top: 3rem;
            }
        }

        @media (max-width: 480px) {
            .stats-container {
                grid-template-columns: 1fr;
            }

            .view-toggle {
                gap: 0.25rem;
            }

            .status-selector {
                flex-direction: column;
                width: 100%;
            }

            .status-btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        
         .consultation-type-selector {
            margin-right: 1rem;
        }

        .remaining-time {
            font-weight: 500;
            color: var(--secondary-color);
        }

        .status-badge.status-archived {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }

        .expired-date {
            color: var(--danger-color);
            font-size: 0.875rem;
        }
        /* Buyer Details Modal Styles */
.buyer-details-container {
    padding: 20px;
}

.buyer-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.buyer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.buyer-tabs {
    margin: 20px 0;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
}

.tab-btn.active {
    color: #007bff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.tab-content {
    display: none;
}

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

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

.buyer-details-table th,
.buyer-details-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.buyer-details-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}
    
.favorite-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 1.2em;
    color: #ccc;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ffc107;
}

.tender-card .card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
}

.tender-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #323232;
    color: white;
    border-radius: 4px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.favorite-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ccc;
    font-size: 1.2em;
    position: relative;
    z-index: 2;
}

.favorite-btn:hover {
    transform: scale(1.1);
    color: #ffc107;
}

.favorite-btn.active {
    color: #ffc107;
}

.favorite-btn.active:hover {
    color: #e6ac00;
}

.card-header {
    position: relative;
    padding-right: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.grid-view .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.list-view .favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

.tender-card {
    position: relative;
}

.tender-card .favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes favoriteAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.favorite-btn.active .fa-star {
    animation: favoriteAnimation 0.3s ease-in-out;
}











/* Add these styles to your BDC_styles.css file */
.visitor-prompt {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin: 2rem 0;
}

.prompt-content {
    max-width: 1000px;
    margin: 0 auto;
}

.prompt-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.prompt-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.prompt-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.subscription-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.subscription-card.premium {
    background: #ffffff;
    border: 2px solid var(--secondary-color);
}

.premium-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 0;
}

.card-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.features-list li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.features-list li i {
    color: var(--success-color);
}

.premium .features-list li i {
    color: var(--secondary-color);
}

.btn-premium {
    background: var(--secondary-color);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: #1e4bd8;
    transform: translateY(-2px);
}

.login-prompt {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .subscription-options {
        grid-template-columns: 1fr;
    }
    
    .visitor-prompt {
        padding: 1rem;
        margin: 1rem 0;
    }
}








/* Add to BDC_styles.css */
.buyer-cell {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buyer-cell:hover {
    color: var(--secondary-color);
}

.buyer-link {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.buyer-link:hover {
    color: var(--secondary-color);
}

.buyer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.buyer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Add hover effect for list view */
.list-view .buyer-cell:hover .buyer-link {
    text-decoration: none;
    color: var(--secondary-color);
}

/* Add hover effect for grid view */
.grid-view .buyer-cell:hover .buyer-link {
    text-decoration: none;
    color: var(--secondary-color);
}

/* Add cursor pointer to buyer details table */
.buyer-details-table .buyer-cell,
.buyer-details-table .buyer-link {
    cursor: pointer;
}

/* Add hover effect indicator */
.buyer-cell:hover::before {
    content: '\f0c1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.6;
    color: var(--secondary-color);
}
.filter-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-selector {
    display: flex;
    gap: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 4px;
    margin-right: 1rem;
}

.consultation-type-selector {
    margin-right: 1rem;
}

.status-btn {
    background: none;
    border: none;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.status-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.status-btn.active {
    background-color: white;
    color: var(--secondary-color);
}

/* Responsive adjustments */
/* Responsive styles */
@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .filter-header-right {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .status-selector {
        width: 100%;
    }

    .consultation-type-selector {
        margin-right: 0;
        order: 2; /* Makes this appear second */
    }

    .status-selector:not(.consultation-type-selector) {
        order: 1; /* Makes this appear first */
    }

    .status-btn {
        flex: 1;
        justify-content: center;
    }

    .toggle-icon {
        order: 3; /* Makes this appear last */
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .filter-header {
        padding: 0.75rem;
    }

    .filter-header-right {
        gap: 0.5rem;
    }
}

/* Tender actions container */
.tender-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Base button styles */
.tender-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .tender-actions {
        flex-direction: column;
        width: 100%;
    }

    .tender-actions .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    /* Grid view specific mobile styles */
    .grid-view .tender-card {
        padding: 15px;
    }

    .grid-view .tender-actions {
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }

    /* List view specific mobile styles */
    .list-view .tender-actions {
        flex-direction: column;
        gap: 8px;
    }

    .list-view td:last-child {
        padding: 15px;
    }

    /* Ensure buttons have consistent height */
    .tender-actions .btn {
        min-height: 40px;
    }

    /* Add margin between buttons */
    .tender-actions .btn:not(:last-child) {
        margin-bottom: 8px;
    }

    /* Make sure text doesn't wrap */
    .tender-actions .btn span {
        white-space: nowrap;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .tender-actions {
        flex-wrap: wrap;
    }

    .tender-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Base modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Buyer details modal specific styles */
#buyerDetailsModal {
    z-index: 1000;
}

#buyerDetailsModal .modal-content {
    z-index: 1001;
}

/* Details modal specific styles - higher z-index to appear on top */
#detailsModal {
    z-index: 1100;
}

#detailsModal .modal-content {
    z-index: 1101;
}

/* Modal content shared styles */
.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Close button styles */
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 2;
}

.close:hover {
    color: #dc3545;
}

/* Ensure modal content scrolls properly */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) #f0f0f0;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Modal backdrop styles */
.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Animation for modal opening */
.modal.show {
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

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

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

/* Responsive styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .close {
        top: 0.75rem;
        right: 0.75rem;
    }
}












/* Add these styles to your CSS file */
.details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tender-details, .marches-details, .documents-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tender-details h3, .marches-details h3, .documents-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

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

.details-table th, .details-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.details-table th {
    width: 200px;
    text-align: left;
    color: #6c757d;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-success {
    background-color: #d4edda;
    color: #155724;
}

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

.status-badge.status-archived {
    background-color: #e2e3e5;
    color: #383d41;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.buyer-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.buyer-link:hover {
    color: #0056b3;
}


.search-field select.form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-field select.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Results checkbox styling */
.results-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.results-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.results-checkbox input {
    margin: 0;
    cursor: pointer;
}

.results-checkbox span {
    font-size: 14px;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-header-right {
        flex-direction: column;
        gap: 10px;
    }

    #results-only-container {
        width: 100%;
    }

    .results-checkbox {
        justify-content: center;
        width: 100%;
    }
}


input[list="city-list"] {
  background-image: url('data:image/svg+xml;utf8,&lt;svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"&gt;&lt;circle cx="11" cy="11" r="8"/&gt;&lt;line x1="21" y1="21" x2="16.65" y2="16.65"/&gt;&lt;/svg&gt;');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}

/* Highlight active field with a border */
input[list="city-list"]:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Style for when browser shows datalist dropdown */
input[list="city-list"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  input[list="city-list"] {
    font-size: 14px;
    padding: 10px;
    padding-right: 30px;
  }
}

/* City autocomplete with multi-selection styling */

/* Container for the entire multi-city component */
.multi-city-container {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  padding: 5px 8px;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.multi-city-container:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Container for selected city tags */
.selected-cities-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
}

/* Style for each selected city tag */
.city-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(23, 162, 184, 0.1);
  border: 1px solid rgba(23, 162, 184, 0.2);
  color: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}

.city-tag .remove-city {
  cursor: pointer;
  color: #999;
  font-size: 0.85em;
  transition: color 0.2s;
}

.city-tag .remove-city:hover {
  color: #d9534f;
}

/* Input container */
.input-container {
  display: flex;
  flex: 1;
  min-width: 120px;
  position: relative;
}

/* Style for the input field */
.input-container input {
  border: none;
  padding: 4px 25px 4px 4px;
  width: 100%;
  outline: none;
  background: transparent;
}

/* Clear button */
.clear-cities-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  padding: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.clear-cities-btn:hover {
  opacity: 1;
  color: #d9534f;
}

/* Helper text */
.city-helper-text {
  color: #888;
  font-size: 0.8em;
  margin-top: 3px;
  margin-left: 5px;
}

/* Adjust hide the datalist dropdown indicator */
input[list="city-list"]::-webkit-calendar-picker-indicator {
  display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  .multi-city-container {
    padding: 5px;
  }
  
  .city-tag {
    font-size: 0.8em;
    padding: 2px 6px;
  }
  
  .input-container input {
    font-size: 14px;
  }
}
/* Enhanced Autocomplete Styles */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-input {
  width: 100%;
  padding: 0.75rem 40px 0.75rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background-color: white;
}

.autocomplete-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
  outline: none;
}

.autocomplete-input.has-value {
  padding-right: 40px;
}

.autocomplete-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.autocomplete-input.has-value + .autocomplete-dropdown + .autocomplete-clear {
  opacity: 1;
}

.autocomplete-clear:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-loading {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.autocomplete-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
}

.autocomplete-results li {
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.autocomplete-results li:hover,
.autocomplete-results li.highlighted {
  background-color: #f8f9fa;
}

.autocomplete-results li:last-child {
  border-bottom: none;
}

.autocomplete-org-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.autocomplete-org-type {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.autocomplete-org-type i {
  color: var(--secondary-color);
}

.autocomplete-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.autocomplete-help-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-left: 0.25rem;
}

/* Entity type icons */
.entity-type-ministere::before { content: '\f19c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-prefecture::before { content: '\f1ad'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-province::before { content: '\f1ad'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-commune::before { content: '\f015'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-office_national::before { content: '\f1ad'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-agence::before { content: '\f0f7'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-centre_hospitalier::before { content: '\f0f8'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-universite::before { content: '\f19d'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-ecole::before { content: '\f549'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-societe::before { content: '\f1ad'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-direction::before { content: '\f0e8'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.entity-type-gouverneur::before { content: '\f508'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }

/* Responsive styles */
@media (max-width: 768px) {
  .autocomplete-dropdown {
    max-height: 200px;
  }
  
  .autocomplete-results li {
    padding: 0.5rem;
  }
  
  .autocomplete-org-name {
    font-size: 0.8rem;
  }
  
  .autocomplete-org-type {
    font-size: 0.7rem;
  }
}

/* Smooth scrollbar for results */
.autocomplete-results {
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) #f0f0f0;
}

.autocomplete-results::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-results::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.autocomplete-results::-webkit-scrollbar-thumb {
  background-color: var(--secondary-color);
  border-radius: 3px;
}</pre></body></html>