@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
/* =========================================
   1. GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
}

body {
    background: #f5f7fa;
    margin: 0;
    color: #1f2937;
    font-size: 16px;
}

/* =========================================
   2. NAVBAR
========================================= */


/* =========================================
   2. NAVBAR
========================================= */

.navbar {
    background: linear-gradient(135deg, #29466f 0%, #3b6592 55%, #638db5 100%);
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1300px;
    padding: 0 35px;
    box-sizing: border-box;
}

#navbar__logo {
    font-size: 2rem;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.navbar__btn {
    display: flex;
    align-items: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.navbar__menu .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 110px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 6px;
    background: #f77062;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.navbar__menu .button:hover {
    background: #ffffff;
    color: #29466f;
}

/* MOBILE NAVIGATION */

.navbar__toggle {
    display: none;
}

.navbar__toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
    transition: all 0.3s ease-in-out;
}

.navbar__toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar__toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* PSS LOGO */

.text-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 4px;
    text-decoration: none;
    line-height: 1;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border: 3px solid white;
    border-radius: 20%;
    outline: 2px solid white;
    outline-offset: 4px;
    display: inline-block;
    flex-shrink: 0;
}

#navbar__logo.text-logo {
    height: 60px;
    min-height: 60px;
    font-size: 52px;
    line-height: 60px;
}

#navbar__logo .logo-circle {
    width: 40px;
    height: 40px;
}

/* =========================================
   3. GENERAL PAGE LAYOUT
========================================= */

.layout {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.main {
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 30px;
    overflow-x: hidden;
}

/* =========================================
   4. DASHBOARD HEADER
========================================= */

.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #6b7280;
    margin-bottom: 8px;
}

/* =========================================
   5. SUMMARY CARDS
========================================= */

.summary-cards {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.card {
    flex: 1;
    min-width: 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 16px;
    color: #4b5563;
}

.card p {
    font-size: 26px;
    margin: 10px 0;
}

.card span {
    font-size: 14px;
    color: #6b7280;
}

/* =========================================
   6. DASHBOARD CHARTS
========================================= */

.charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.chart-box {
    position: relative;
    height: 300px;
    min-height: 300px;
    min-width: 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chart-box h3 {
    margin-bottom: 10px;
}

.chart-box canvas {
    display: block;
    width: 100% !important;
    height: 230px !important;
    max-height: 230px;
}

/* =========================================
   7. TABLES
========================================= */

.table-section {
    width: 100%;
    min-width: 0;
    margin-top: 20px;
}

.table-section h3 {
    margin-bottom: 10px;
}

.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.rfq-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.rfq-table th,
.rfq-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
}

.rfq-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

.rfq-table td {
    color: #4b5563;
}

.rfq-table tbody tr:hover {
    background: #f9fafb;
}

.rfq-table input {
    width: 130px;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.rfq-table input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* PRODUCT TABLE */

.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-table th,
.product-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.product-table th {
    background: #f3f4f6;
    color: #374151;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

.product-table td {
    background: #ffffff;
}

.product-table tbody tr:hover td {
    background: #f9fafb;
}

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

.product-table input,
.product-table select {
    width: 100%;
    min-width: 100px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.product-table input:focus,
.product-table select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* =========================================
   8. RFQ HEADER AND STATISTICS
========================================= */

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

.rfq-header h1 {
    font-size: 28px;
}

.rfq-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    color: #4b5563;
}

/* =========================================
   9. RFQ STEPS
========================================= */

.steps {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.step {
    padding: 10px 18px;
    background: #e5e7eb;
    border-radius: 6px;
    font-weight: 600;
    color: #374151;
}

.step.active {
    background: #d2d4da;
    color: rgb(49, 48, 48);
}

/* =========================================
   10. FORMS
========================================= */

.rfq-form h3,
.product-section h3 {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea,
textarea {
    height: 120px;
}

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

/* =========================================
   11. BUTTONS
========================================= */

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: #45a9f5;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.85;
}

/* =========================================
   12. RFQ SUMMARY PANEL
========================================= */

.rfq-summary {
    width: 300px;
    padding: 20px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
}

.rfq-summary p {
    margin: 8px 0;
}

/* =========================================
   13. RECEIVED QUOTES
========================================= */

.quotes-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quote-card {
    min-width: 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quote-id {
    color: #6b7280;
    margin-bottom: 10px;
}

.quote-info p {
    margin: 6px 0;
}

.quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.view-btn,
.select-btn,
.ask-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-btn:hover,
.select-btn:hover,
.ask-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.view-btn {
    background: #4e73df;
}

.select-btn {
    background: #1cc88a;
}

.ask-btn {
    background: #f6c23e;
}

/* PRICE COMPARISON */

.price-comparison {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.price-comparison ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* RFQ DETAILS PANEL */

.rfq-details {
    flex: 0 0 280px;
    width: 280px;
    padding: 20px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
}

.rfq-details h3 {
    margin-bottom: 15px;
}

.rfq-details h4 {
    margin: 25px 0 10px;
}

.rfq-details p {
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.product-list {
    margin-top: 10px;
    padding-left: 20px;
}

.product-list li {
    margin: 8px 0;
}

/* =========================================
   14. HERO SECTION
========================================= */

.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f0f1f3;
    color: rgb(18, 136, 168);
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin: 60px 0 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* =========================================
   15. AUTHENTICATION PAGES
========================================= */

.auth-container {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #f4f6f9;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-box h1 {
    color: #222;
    margin-bottom: 15px;
    font-size: 28px;
}

.auth-box h2 {
    color: #333;
    margin-top: 30px;
}

.auth-box p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
}

.auth-buttons .auth-btn {
    width: 50%;
}

.login-btn {
    background: #007bff;
    color: white;
}

.login-btn:hover {
    background: #0056b3;
}

.register-btn {
    background: #28a745;
    color: white;
}

.register-btn:hover {
    background: #1e7e34;
}

/* AUTH LINKS */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.form-options a,
.auth-footer a,
.back-link {
    color: #007bff;
    text-decoration: none;
}

.form-options a:hover,
.auth-footer a:hover,
.back-link:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 25px;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
}

/* =========================================
   16. RESPONSIVE DESIGN
========================================= */

@media screen and (max-width: 1100px) {
    .rfq-details {
        flex-basis: 240px;
        width: 240px;
    }

    .quotes-section {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 960px) {
    .navbar__menu {
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background: #131313;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .navbar__menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar__toggle {
        display: block;
        cursor: pointer;
    }

    .layout {
        flex-direction: column;
    }

    .main {
        width: 100%;
    }

    .rfq-details {
        width: 100%;
        flex-basis: auto;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .summary-cards {
        flex-wrap: wrap;
    }

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

    .quotes-section {
        grid-template-columns: 1fr;
    }

    .quotes-section .quote-card {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .navbar__container {
        padding: 0 15px;
    }

    .main {
        padding: 20px 15px;
    }

    .summary-cards {
        flex-direction: column;
    }

    .auth-box {
        padding: 25px 20px;
    }

    .auth-box h1 {
        font-size: 23px;
    }

    .auth-buttons {
        flex-direction: column;
    }

    .auth-buttons .auth-btn {
        width: 100%;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .form-group.full {
        grid-column: span 1;
    }

    .rfq-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   17. STATUS AND DEADLINE BADGES
========================================= */

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-open {
    background-color: #dcfce7;
    color: #166534;
}

.status-closed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-default {
    background-color: #e5e7eb;
    color: #374151;
}

.deadline-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.deadline-overdue {
    background-color: #fee2e2;
    color: #991b1b;
}

.deadline-soon {
    background-color: #fef3c7;
    color: #92400e;
}

.deadline-upcoming {
    background-color: #dcfce7;
    color: #166534;
}

/* DASHBOARD CARD LINKS */

.dashboard-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* =========================================
   18. QUOTE CREATION
========================================= */

.quote-guidance {
    margin: 10px 0 18px;
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.rfq-table .unit-price,
.rfq-table .lead-time {
    background: #fffbeb;
    border-color: #fbbf24;
}

.rfq-table .unit-price:focus,
.rfq-table .lead-time:focus {
    background: #ffffff;
    border-color: #2563eb;
}

/* SELLER QUOTE NOTES INPUT */

.quote-notes-section {
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.quote-notes-section label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
}

.quote-notes-help {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.quote-notes-section textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.quote-notes-section textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.quote-notes-section small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

/* BUYER VIEW - QUOTE NOTES CARD */

.quote-notes-card {
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

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

.quote-notes-header h3 {
    margin: 0;
    color: #374151;
}

.quote-notes-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

.quote-notes-content p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* =========================================
   19. RFQ DISTRIBUTION OPTIONS
========================================= */

.distribution-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.distribution-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.distribution-card:hover {
    border-color: #45a9f5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.distribution-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.distribution-icon {
    font-size: 27px;
    line-height: 1.3;
}

.distribution-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 20px;
}

.distribution-content strong {
    color: #1e293b;
    font-size: 16px;
}

.distribution-content small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.distribution-check {
    position: absolute;
    top: 15px;
    right: 15px;
    color: transparent;
    font-weight: bold;
}

.distribution-card:has(input:checked) {
    border-color: #45a9f5;
    background: #f0f7ff;
    box-shadow: 0 3px 12px rgba(69, 169, 245, 0.12);
}

.distribution-card:has(input:checked) .distribution-check {
    color: #1683d8;
}

.distribution-card:has(input:focus-visible) {
    outline: 2px solid #1683d8;
    outline-offset: 3px;
}

@media (max-width: 650px) {
    .distribution-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   20. SELLER MANAGEMENT PANEL
========================================= */

#seller-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seller-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.seller-search {
    flex: 1;
    min-width: 220px;
    padding: 12px 15px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    font-size: 14px;
    background: #fff;
}

.seller-actions {
    display: flex;
    gap: 8px;
}

.seller-action-btn {
    padding: 10px 14px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    color: #2563a6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.seller-action-btn:hover {
    background: #eff6ff;
    border-color: #45a9f5;
}

.seller-summary {
    padding: 13px 15px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 9px;
}

.seller-selected-count {
    display: block;
    margin-bottom: 10px;
    color: #1e40af;
    font-size: 14px;
}

.seller-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.seller-chip {
    padding: 5px 10px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
}

.seller-rows {
    display: flex;
    flex-direction: column;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.seller-rows[hidden] {
    display: none !important;
}

.seller-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid #edf0f4;
    cursor: pointer;
    transition: background 0.2s ease;
}

.seller-option:last-child {
    border-bottom: none;
}

.seller-option:hover {
    background: #f8fafc;
}

.seller-option:has(input:checked) {
    background: #eff6ff;
}

.seller-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #2563eb;
}

.seller-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8f1fc;
    color: #2563a6;
    font-size: 15px;
    font-weight: 700;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.seller-details strong {
    color: #1e293b;
    font-size: 14px;
}

.seller-details small {
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.seller-loading {
    color: #64748b;
    font-size: 14px;
}

.seller-option[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .seller-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .seller-search {
        width: 100%;
    }

    .seller-actions {
        width: 100%;
    }

    .seller-action-btn {
        flex: 1;
    }
}

/* =========================================
   21. CREATE RFQ SUBMIT BUTTON
========================================= */

.submit-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 190px;
    padding: 14px 26px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1683d8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease;
}

.submit-rfq-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #0874c5);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.submit-rfq-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 7px rgba(37, 99, 235, 0.2);
}

.submit-rfq-btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.submit-rfq-btn span:last-child {
    font-size: 21px;
    transition: transform 0.2s ease;
}

.submit-rfq-btn:hover span:last-child {
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .submit-rfq-btn {
        width: 100%;
    }
}

/* =========================================
   22. BUYER ITEM DECISION BUTTONS
========================================= */

.decision-btn {
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    margin: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.decision-btn:hover {
    transform: translateY(-1px);
}

.decision-accept {
    background-color: #198754;
}

.decision-accept:hover {
    background-color: #146c43;
}

.decision-reject {
    background-color: #dc3545;
}

.decision-reject:hover {
    background-color: #b02a37;
}

.decision-clarify {
    background-color: #e0a800;
    color: #212529;
}

.decision-clarify:hover {
    background-color: #c69500;
}

.decision-btn:focus-visible {
    outline: 3px solid #86b7fe;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .decision-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* VIEW ALL RFQS BUTTON */

.view-all-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background-color: #0d6efd;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.view-all-link:hover {
    background-color: #0b5ed7;
    color: #ffffff !important;
}

/* =========================================
   23. AWARDED ITEMS
========================================= */

.awarded-items-section {
    margin-top: 35px;
    width: 100%;
}

.awarded-items-section > h2 {
    margin-bottom: 8px;
}

.awarded-items-section > p {
    color: #666;
    margin-bottom: 20px;
}

.awarded-filters,
.quotes-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.awarded-filters input,
.quotes-filters input {
    width: 320px;
}

.awarded-filters select,
.quotes-filters select {
    width: 220px;
}

.awarded-filters input,
.awarded-filters select,
.quotes-filters input,
.quotes-filters select {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 14px;
}

.awarded-filters input:focus,
.awarded-filters select:focus,
.quotes-filters input:focus,
.quotes-filters select:focus {
    outline: none;
    border-color: #3b6592;
    box-shadow: 0 0 0 3px rgba(59, 101, 146, 0.12);
}

.awarded-filters button,
.quotes-filters button {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 7px;
    background: #29466f;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.awarded-filters button:hover,
.quotes-filters button:hover {
    background: #3b6592;
}

#awarded-items-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.awarded-rfq-card {
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.awarded-rfq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
}

.awarded-rfq-summary::-webkit-details-marker,
.awarded-seller-summary::-webkit-details-marker {
    display: none;
}

.awarded-rfq-summary::after,
.awarded-seller-summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 600;
    color: #2563eb;
    margin-left: auto;
}

.awarded-rfq-card[open] > .awarded-rfq-summary::after,
.awarded-seller-group[open] > .awarded-seller-summary::after {
    content: "−";
}

.awarded-rfq-heading {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.awarded-rfq-overview {
    font-size: 13px;
    color: #64748b;
}

.awarded-seller-group {
    margin: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
}

.awarded-seller-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
    color: #334155;
    font-weight: 600;
    background: #f8fafc;
}

.awarded-seller-summary span:nth-child(2) {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.awarded-seller-content {
    padding: 18px;
}

.awarded-seller-group .view-btn {
    display: inline-block;
    margin-bottom: 15px;
}

.awarded-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.awarded-seller-group table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.awarded-seller-group th,
.awarded-seller-group td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.awarded-seller-group th {
    background: #eef2f7;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
}

.awarded-seller-group td {
    font-size: 14px;
    color: #374151;
}

.awarded-seller-group tbody tr:hover {
    background: #f1f5f9;
}

.awarded-seller-total {
    margin: 15px 0 0;
    padding-top: 12px;
    border-top: 1px solid #d7dee7;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
}

@media (min-width: 1400px) {
    #awarded-items-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #awarded-items-container {
        grid-template-columns: 1fr;
    }

    .awarded-rfq-summary {
        padding: 16px;
    }

    .awarded-seller-group {
        margin: 10px;
    }

    .awarded-seller-content {
        padding: 12px;
    }

    .awarded-rfq-overview {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .awarded-filters,
    .quotes-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .awarded-filters input,
    .awarded-filters select,
    .quotes-filters input,
    .quotes-filters select {
        width: 100%;
    }
}

/* =========================================
   24. INFORMATION CARDS
========================================= */

/* SELLER INFORMATION CARD */

.seller-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
}

.seller-info-card h3 {
    color: #1e293b;
    font-size: 19px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.seller-info-card p {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
}

.seller-info-card p:last-child {
    border-bottom: none;
}

.seller-info-card p strong {
    color: #64748b;
    font-weight: 600;
}

/* RFQ INFORMATION CARD */

.rfq-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
}

.rfq-info-card h3 {
    color: #1e293b;
    font-size: 19px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.rfq-info-card p {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
}

.rfq-info-card p:last-child {
    border-bottom: none;
}

.rfq-info-card p strong {
    color: #64748b;
    font-weight: 600;
}

/* RFQ AND SELLER INFORMATION SIDE BY SIDE */

.quote-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

.quote-info-grid .rfq-info-card,
.quote-info-grid .seller-info-card {
    margin-top: 0;
    min-width: 0;
}

/* BUYER INSTRUCTIONS CARD */

.buyer-instructions-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
}

.buyer-instructions-card h3 {
    color: #1e293b;
    font-size: 19px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.buyer-instructions-card p {
    color: #334155;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

/* RFQ DETAILS - BUYER INFORMATION CARD */

#rfq-content .table-section.buyer-info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
}

#rfq-content .buyer-info-card h3 {
    color: #1e293b;
    font-size: 19px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

#rfq-content .buyer-info-card p {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
}

#rfq-content .buyer-info-card p:last-child {
    border-bottom: none;
}

#rfq-content .buyer-info-card p strong {
    color: #64748b;
    font-weight: 600;
}

/* RFQ DETAILS - REQUESTED PRODUCTS CARD */

#rfq-content .requested-products-card {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
}

#rfq-content .requested-products-card h3 {
    display: block;
    width: 100%;
    color: #1e293b;
    font-size: 19px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

#rfq-content .requested-products-card .table-container {
    border-radius: 8px;
}

/* QUOTED ITEMS CARD */

.quoted-items-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
    overflow-x: auto;
}

.quoted-items-card h3 {
    color: #1e293b;
    font-size: 19px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.quoted-items-card table {
    width: 100%;
    border-collapse: collapse;
}

.quoted-items-card th {
    background: #eef2f7;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.quoted-items-card th,
.quoted-items-card td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* QUOTE TOTAL ROW */

.quote-total-row {
    background: #f1f5f9;
    border-top: 2px solid #cbd5e1;
}

.quote-total-row td {
    padding: 15px 12px;
    color: #1e293b;
    font-size: 15px;
}

.quote-total-row td:last-child {
    color: #1d4ed8;
    font-size: 16px;
    white-space: nowrap;
}

/* =========================================
   25. REGISTRATION
========================================= */

.account-type-section {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 18px;
    margin: 22px 0;
}

.account-type-section h3 {
    margin: 0 0 6px;
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
}

.account-type-description {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.account-type-section .form-group {
    margin-bottom: 0;
}

.account-type-section label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
}

.account-type-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    cursor: pointer;
}

.account-type-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =========================================
   26. INVOICE LIST
========================================= */

.invoice-list-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 25px;
    box-sizing: border-box;
}

.invoice-list-card {
    width: 100%;
}

/* =========================================
   27. HOMEPAGE DESIGN
========================================= */

.home-page {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #29466f 0%,
        #3b6592 55%,
        #638db5 100%
    );
}

.home-page .navbar {
    background: linear-gradient(135deg, #29466f 0%, #3b6592 55%, #638db5 100%);
    height: 120px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.home-page .navbar__container {
    max-width: 1200px;
}

.home-page .logo-img {
    height: 90px;
    width: 90px;
    object-fit: contain;
    border-radius: 50%;
}

.home-page .button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
}

.home-page .button:hover {
    background: white;
    color: #123d85;
}

.home-page .hero-container {
    min-height: calc(100vh - 100px);
    padding: 40px 20px 100px;
    background: transparent;
    color: white;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-page .hero-title {
    max-width: 900px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.15;
    font-weight: 700;
}

.home-page .hero-description {
    max-width: 650px;
    margin-bottom: 35px;
    font-size: 21px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.home-page .btn-primary {
    background: white;
    color: #123d85;
    padding: 15px 36px;
    border-radius: 6px;
    font-size: 18px;
}

.home-page .btn-primary:hover {
    background: #e6efff;
    opacity: 1;
}

@media screen and (max-width: 600px) {
    .home-page .navbar {
        height: 85px;
    }

    .home-page .logo-img {
        height: 70px;
        width: 70px;
    }

    .home-page .hero-container {
        min-height: calc(100vh - 85px);
        padding: 30px 20px 70px;
    }

    .home-page .hero-description {
        font-size: 17px;
    }
}

/* =========================================
   28. RFQ LIST SCROLLING
========================================= */

.rfq-list-container {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: auto;
}

/* =========================================
   29. ADDITIONAL RESPONSIVE CARD LAYOUTS
========================================= */

@media (max-width: 768px) {
    .quote-info-grid {
        grid-template-columns: 1fr;
    }

    .awarded-rfq-summary {
        padding: 16px;
    }

    .awarded-seller-group {
        margin: 10px;
    }

    .awarded-seller-content {
        padding: 12px;
    }

    .awarded-rfq-overview {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .seller-info-card p,
    .rfq-info-card p,
    #rfq-content .buyer-info-card p {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ========================================
   ADMIN DASHBOARD
======================================== */

.admin-dashboard {
    width: 100%;
    max-width: 1500px;
    margin: 35px auto;
    padding: 0 35px;
    box-sizing: border-box;
}

.admin-welcome {
    background: linear-gradient(135deg, #29466f, #527da8);
    color: #ffffff;
    padding: 32px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(41, 70, 111, 0.12);
}

.admin-welcome h1 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 12px;
}

.admin-welcome p {
    color: #edf4fb;
    margin: 6px 0;
    line-height: 1.6;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
}

.admin-stat-card h3 {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-card p {
    color: #29466f;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.admin-management h2 {
    color: #29466f;
    font-size: 22px;
    margin-bottom: 20px;
}

.admin-management-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.admin-management-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-management-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.admin-management-card h3 {
    color: #29466f;
    font-size: 17px;
    margin: 0 0 12px;
}

.admin-management-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    min-height: 72px;
    margin-bottom: 18px;
}

.admin-management-card a {
    display: inline-block;
    color: #315f91;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.admin-management-card a:hover {
    color: #1d3557;
    text-decoration: underline;
}

/* Admin dashboard responsive layout */

@media (max-width: 1100px) {
    .admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-management-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .admin-dashboard {
        padding: 0 16px;
        margin: 20px auto;
    }

    .admin-welcome {
        padding: 24px 20px;
    }

    .admin-welcome h1 {
        font-size: 23px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .admin-stat-card {
        padding: 18px;
    }

    .admin-stat-card p {
        font-size: 26px;
    }

    .admin-management-grid {
        grid-template-columns: 1fr;
    }

    .admin-management-card p {
        min-height: auto;
    }
}

/* ========================================
   ADMIN USER MANAGEMENT
======================================== */

.admin-page {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
    box-sizing: border-box;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-page-header h1 {
    color: #29466f;
    font-size: 28px;
    margin: 0 0 8px;
}

.admin-page-header p {
    color: #64748b;
    margin: 0;
}

/* Search and filter card */

.admin-user-filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.admin-filter-heading {
    margin-bottom: 20px;
}

.admin-filter-heading h2 {
    color: #29466f;
    font-size: 19px;
    margin: 0 0 6px;
}

.admin-filter-heading p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.admin-filter-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
}

.admin-filter-controls input,
.admin-filter-controls select {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    box-sizing: border-box;
}

.admin-filter-controls input:focus,
.admin-filter-controls select:focus {
    outline: none;
    border-color: #3b6592;
    box-shadow: 0 0 0 3px rgba(59, 101, 146, 0.12);
}

/* Users list card */

.admin-users-table {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.admin-table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-table-heading h2 {
    color: #29466f;
    font-size: 19px;
    margin: 0;
}

#user-count {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.admin-users-table .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.admin-users-table .rfq-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.admin-users-table .rfq-table th {
    background: #f1f5f9;
    color: #29466f;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

.admin-users-table .rfq-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.admin-users-table .rfq-table tbody tr:hover {
    background: #f8fafc;
}

/* User management messages */

.admin-message {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.admin-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.admin-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Responsive layout */

@media (max-width: 950px) {
    .admin-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .admin-page {
        padding: 0 16px;
        margin: 20px auto;
    }

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-filters,
    .admin-users-table {
        padding: 18px;
    }

    .admin-filter-controls {
        grid-template-columns: 1fr;
    }

    .admin-table-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ADMIN USER ACCOUNT ACTIONS */

.admin-action-button {
    padding: 8px 12px;
    margin: 3px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-action-button:hover {
    transform: translateY(-1px);
}

.admin-action-button.suspend {
    background: #fff4e5;
    color: #b45309;
}

.admin-action-button.suspend:hover {
    background: #ffedd5;
}

.admin-action-button.deactivate {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-action-button.deactivate:hover {
    background: #fecaca;
}

.admin-action-button.activate {
    background: #dcfce7;
    color: #15803d;
}

.admin-action-button.activate:hover {
    background: #bbf7d0;
}

.admin-users-table .rfq-table td:last-child {
    min-width: 190px;
}
/* ========================================
   ADMIN RFQ MANAGEMENT
======================================== */

.admin-page-header {
    margin-bottom: 28px;
}

.admin-page-header h1 {
    margin-bottom: 8px;
    font-size: 28px;
}



.admin-rfq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-rfq-filters input,
.admin-rfq-filters select {
    flex: 1;
    min-width: 180px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.admin-rfqs-table {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-rfqs-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}

.admin-rfqs-table th,
.admin-rfqs-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.admin-rfqs-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.admin-rfqs-table tr:hover td {
    background: #f8fafc;
}

#rfq-message {
    margin-bottom: 15px;
    color: #dc2626;
}

@media (max-width: 768px) {
    .admin-page {
        margin: 24px auto;
    }

    .admin-rfq-filters {
        flex-direction: column;
    }

    .admin-rfq-filters input,
    .admin-rfq-filters select {
        width: 100%;
    }
}

/* ADMIN RFQ DETAILS */
.admin-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-detail-card h2 {
    margin: 0 0 22px;
    color: #1e293b;
    font-size: 20px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.admin-detail-grid label,
.admin-detail-section label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.admin-detail-grid p,
.admin-detail-section p {
    margin: 0;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.admin-detail-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .admin-detail-card {
        padding: 16px;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ADMIN QUOTE MANAGEMENT */
.admin-quote-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-quote-filters input,
.admin-quote-filters select {
    flex: 1;
    min-width: 180px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.admin-quotes-table {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-quotes-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.admin-quotes-table th,
.admin-quotes-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.admin-quotes-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.admin-quotes-table tr:hover td {
    background: #f8fafc;
}

#quote-message {
    margin-bottom: 15px;
    color: #dc2626;
}

@media (max-width: 768px) {
    .admin-quote-filters {
        flex-direction: column;
    }

    .admin-quote-filters input,
    .admin-quote-filters select {
        width: 100%;
    }
}

/* ADMIN INVOICE MANAGEMENT */

.admin-invoice-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-invoice-filters input,
.admin-invoice-filters select {
    flex: 1;
    min-width: 180px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.admin-invoices-table {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-invoices-table table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.admin-invoices-table th,
.admin-invoices-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.admin-invoices-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.admin-invoices-table tr:hover td {
    background: #f8fafc;
}

#invoice-message {
    margin-bottom: 15px;
    color: #dc2626;
}

@media (max-width: 768px) {
    .admin-invoice-filters {
        flex-direction: column;
    }

    .admin-invoice-filters input,
    .admin-invoice-filters select {
        width: 100%;
    }
}
/* Admin Activity Logs */

.admin-activity-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.admin-activity-filters input,
.admin-activity-filters select {
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
}

.admin-activity-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
}

.admin-activity-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.admin-activity-table th,
.admin-activity-table td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.admin-activity-table th {
    background: #f4f6f8;
    font-weight: 600;
}

.admin-activity-table tbody tr:hover {
    background: #f9fafb;
}

#activity-message {
    margin: 12px 0;
    color: #475467;
    font-size: 14px;
}

/* Admin Reports & Analytics */

.admin-reports-page {
    padding-bottom: 50px;
}

.admin-report-section {
    margin-top: 35px;
}

.admin-report-section h2 {
    margin-bottom: 18px;
    color: #1f2937;
}

.admin-report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.admin-report-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.admin-report-card h3 {
    margin: 0 0 12px;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

.admin-report-card p {
    margin: 0;
    color: #1d2939;
    font-size: 28px;
    font-weight: 700;
}

.admin-report-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
}

.admin-report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-report-table th,
.admin-report-table td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.admin-report-table th {
    background: #f4f6f8;
    font-weight: 600;
}

.admin-report-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.admin-report-trends > div {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    min-width: 0;
}

.admin-report-trends h3 {
    margin: 0 0 18px;
    font-size: 16px;
}

.admin-trend-row {
    display: grid;
    grid-template-columns: 75px minmax(60px, 1fr) 35px;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 13px;
}

.admin-trend-bar-container {
    height: 12px;
    background: #eef1f5;
    border-radius: 6px;
    overflow: hidden;
}

.admin-trend-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 6px;
    min-width: 2px;
}

#invoice-values-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#invoice-values-container p {
    margin: 0;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
}

#reports-message {
    margin-top: 20px;
    color: #b42318;
    font-size: 14px;
}

@media (max-width: 600px) {
    .admin-report-card p {
        font-size: 24px;
    }

    .admin-trend-row {
        grid-template-columns: 65px minmax(40px, 1fr) 30px;
        gap: 7px;
    }
}


/* ========================================
   ADMIN AND NOTIFICATIONS NAVBAR
======================================== */

body:has(.admin-page) .navbar,
body:has(.admin-dashboard) .navbar,
body:has(.notifications-page) .navbar {
    height: 100px;
}

body:has(.admin-page) .navbar__container,
body:has(.admin-dashboard) .navbar__container,
body:has(.notifications-page) .navbar__container {
    height: 100%;
    max-width: 1300px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-sizing: border-box;
}

body:has(.admin-page) .navbar__menu,
body:has(.admin-dashboard) .navbar__menu,
body:has(.notifications-page) .navbar__menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
    padding: 0;
}

body:has(.admin-page) .navbar__menu a,
body:has(.admin-dashboard) .navbar__menu a,
body:has(.notifications-page) .navbar__menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

body:has(.admin-page) .navbar__menu .navbar__btn,
body:has(.admin-dashboard) .navbar__menu .navbar__btn,
body:has(.notifications-page) .navbar__menu .navbar__btn {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

body:has(.admin-page) #logout-button,
body:has(.admin-dashboard) #logout-button,
body:has(.notifications-page) #logout-button {
    height: 38px;
    min-width: 110px;
    padding: 8px 14px;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:has(.admin-page) #navbar__logo,
body:has(.admin-dashboard) #navbar__logo,
body:has(.notifications-page) #navbar__logo {
    margin-right: auto;
}

/* ========================================
   NOTIFICATIONS PAGE CONTENT
======================================== */

.notifications-page {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 25px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.notifications-header h1 {
    margin: 0;
    color: #1f2937;
}

#mark-all-read {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#mark-all-read:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#mark-all-read:active {
    transform: translateY(0);
}

#mark-all-read:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

#mark-all-read:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#mark-all-read:active {
    transform: translateY(0);
}

#mark-all-read:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
   margin: 0;
    color: #1f2937;
}

#notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.notification-card.unread {
    border-left: 4px solid #2563eb;
    background: #f8fbff;
}

.notification-card h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.05rem;
}

.notification-card p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.5;
}

.notification-card small {
    display: block;
    color: #6b7280;
    margin-bottom: 12px;
}

.notification-card .button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

#notifications-message {
    margin-bottom: 15px;
    color: #374151;
}

@media (max-width: 600px) {
    .notifications-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .notifications-page {
        margin-top: 30px;
        padding: 0 15px;
    }
}



/* ========================================
   BUYER NAVBAR CONSISTENCY
======================================== */

body:has(.buyer-dashboard) .navbar,
body:has(.buyer-page) .navbar {
    height: 100px;
}

body:has(.buyer-dashboard) .navbar__container,
body:has(.buyer-page) .navbar__container {
    height: 100%;
    max-width: 1300px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-sizing: border-box;
}

body:has(.buyer-dashboard) .navbar__menu,
body:has(.buyer-page) .navbar__menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
    padding: 0;
}

body:has(.buyer-dashboard) .navbar__menu a,
body:has(.buyer-page) .navbar__menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

body:has(.buyer-dashboard) .navbar__menu .navbar__btn,
body:has(.buyer-page) .navbar__menu .navbar__btn {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

body:has(.buyer-dashboard) #logout-button,
body:has(.buyer-page) #logout-button {
    height: 38px;
    min-width: 110px;
    padding: 8px 14px;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:has(.buyer-dashboard) #navbar__logo,
body:has(.buyer-page) #navbar__logo {
    margin-right: auto;
}


/* =========================================
   PSS HOME PAGE
========================================= */

.home-page {
    background: #f5f8fc;
    color: #26384d;
}

/* HERO SECTION */

.home-page .hero-container {
    min-height: 420px;
    padding: 90px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #29466f, #3b6592, #638db5);
    color: #ffffff;
}

.home-page .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 18px;
    font-weight: 800;
}

.home-page .hero-description {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.home-page .hero-intro {
    max-width: 720px;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0 auto 28px;
    color: #edf4fb;
}

.home-page .btn-primary {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 6px;
    background: #f77062;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.home-page .btn-primary:hover {
    background: #e65348;
    transform: translateY(-2px);
}

/* GENERAL HOME SECTIONS */

.home-page .home-section {
    padding: 70px 25px;
}

.home-page .home-section-content {
    max-width: 1150px;
    margin: 0 auto;
}

.home-page .home-section h2,
.home-page .home-cta h2 {
    color: #1b3c62;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 22px;
}

.home-page .welcome-section {
    background: #ffffff;
    text-align: center;
}

.home-page .welcome-section p {
    max-width: 850px;
    margin: 0 auto 15px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #1f5d8d;
}

/* SECTION INTRO */

.home-page .section-intro {
    text-align: center;
    color: #ffffff;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* CONTENT CARDS */

.home-page .home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.home-page .home-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(30, 55, 85, 0.07);
    border: 1px solid #e6edf5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-page .home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 55, 85, 0.12);
}

.home-page .home-card h3 {
    color: #29466f;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.home-page .home-card p {
    color: #374c66;
    line-height: 1.8;
    font-size: 0.97rem;
}

.home-page .home-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f0fa;
    color: #29466f;
    font-weight: 800;
    margin-bottom: 20px;
}

/* BUYERS AND SELLERS */

.home-page .audience-section {
    background: #edf3fa;
}

.home-page .audience-card {
    border-top: 4px solid #3b6592;
}

.home-page .home-link {
    display: inline-block;
    margin-top: 20px;
    color: #315f91;
    font-weight: 700;
    text-decoration: none;
}

.home-page .home-link:hover {
    color: #f77062;
}

/* WHY PSS */

.home-page .why-section {
    background: #3e5d8c;
}

/* CALL TO ACTION */

.home-page .home-cta {
    padding: 75px 25px;
    text-align: center;
    background: linear-gradient(135deg, #29466f, #3b6592);
    color: #ffffff;
}

.home-page .home-cta h2 {
    color: #ffffff;
}

.home-page .home-cta > p {
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.8;
    color: #edf4fb;
}

.home-page .home-cta .cta-login {
    margin: 25px auto 0;
}

.home-page .cta-login a {
    color: #ffffff;
    font-weight: 700;
}

/* FOOTER */

.home-page .home-footer {
    background: #1e3554;
    color: #dce6f1;
    text-align: center;
    padding: 22px 15px;
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */

@media screen and (max-width: 768px) {

    .home-page .hero-container {
        min-height: 350px;
        padding: 65px 20px;
    }

    .home-page .hero-description {
        font-size: 1.1rem;
    }

    .home-page .hero-intro {
        font-size: 0.95rem;
    }

    .home-page .home-section {
        padding: 50px 20px;
    }

    .home-page .home-section h2,
    .home-page .home-cta h2 {
        font-size: 1.65rem;
    }

    .home-page .home-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-page .home-card {
        padding: 25px 22px;
    }

    .home-page .home-cta {
        padding: 55px 20px;
    }
}
/* Center Buyer and Seller cards */
.home-page .audience-section .home-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.home-page .audience-section .audience-card {
    flex: 0 1 400px;
}
.home-page .why-section h2 {
    color: #ffffff;
}

body:has(.notifications-page) #navbar__logo {
    margin-right: 0;
}

body:has(.notifications-page) .navbar__menu {
    margin-left: 0;
}
body:has(.notifications-page) .navbar__menu .button {
    box-sizing: border-box;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent;
}

body:has(.notifications-page) .navbar__menu .button.active {
    border-color: transparent;
}

/* WhatsApp-inspired clarification conversation */
.clarification-panel {
    max-width: 850px;
    margin: 8px auto;
    padding: 20px;
    background: #efeae2;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.clarification-heading {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 13px;
    border-bottom: 1px solid #d6d3ce;
    margin-bottom: 12px;
}

.clarification-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 15px;
}

.clarification-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 10px;
}

.clarification-message {
    position: relative;
    max-width: 75%;
    padding: 11px 14px 9px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
    overflow-wrap: anywhere;
}

.clarification-message strong {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.clarification-message p {
    margin: 0 0 7px;
    color: #263238;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.clarification-message small {
    display: block;
    text-align: right;
    color: #718096;
    font-size: 10px;
}

.buyer-message {
    align-self: flex-end;
    background: #d9fdd3;
    border-top-right-radius: 3px;
}

.buyer-message strong {
    color: #166534;
}

.seller-message {
    align-self: flex-start;
    background: #ffffff;
    border-top-left-radius: 3px;
}

.seller-message strong {
    color: #2563eb;
}

.clarification-response-area {
    margin-top: 16px;
    padding: 14px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.clarification-response-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    font: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.clarification-response-input:focus {
    background: #ffffff;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.clarification-send-btn {
    margin-top: 11px;
    padding: 11px 23px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.clarification-send-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.clarification-send-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .clarification-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .clarification-message {
        max-width: 90%;
    }

    .clarification-messages {
        padding: 12px 6px;
    }

    .clarification-response-area {
        padding: 10px;
    }
}


/* Clarification status colours */
.clarification-status-awaiting_seller {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.clarification-status-awaiting_buyer {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.clarification-status-resolved {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}


/* Clear Awarded Items Filters button */
#clear-awarded-filters {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#clear-awarded-filters:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#clear-awarded-filters:active {
    transform: translateY(0);
}

#clear-awarded-filters:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* Products Required outer container */
.product-section {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    background: #ffffff;
}
/* Select Seller outer container */
.rfq-form {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    background: #ffffff;
}

/* Admin navigation: consistent 5 + 5 layout */
body:has(.admin-page) .navbar__menu,
body:has(.admin-dashboard) .navbar__menu,
body.admin-role:has(.notifications-page) .navbar__menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 0;
}

body:has(.admin-page) .navbar__menu .navbar__btn,
body:has(.admin-dashboard) .navbar__menu .navbar__btn,
body.admin-role:has(.notifications-page) .navbar__menu .navbar__btn {
    width: 100%;
    padding: 0;
}

body:has(.admin-page) .navbar__menu .button,
body:has(.admin-dashboard) .navbar__menu .button,
body.admin-role:has(.notifications-page) .navbar__menu .button {
    width: 100%;
    min-width: 0;
}

        .comparison-page {
            max-width: 1250px;
            margin: 35px auto;
            padding: 20px;
        }

        .comparison-header {
            margin-bottom: 25px;
        }

        .comparison-header h1 {
            margin-bottom: 8px;
        }

        .comparison-selector {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
            margin: 22px 0;
        }

        .comparison-selector select {
            padding: 11px;
            min-width: 240px;
            border: 1px solid #ddd;
            border-radius: 6px;
        }

        .product-summary {
            padding: 18px;
            background: #f7f9fc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .comparison-table-wrapper {
            overflow-x: auto;
            margin-bottom: 25px;
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 850px;
            background: white;
        }

        .comparison-table th,
        .comparison-table td {
            padding: 13px;
            border: 1px solid #e5e7eb;
            text-align: left;
            vertical-align: middle;
        }

.comparison-table th {
    background: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

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

.comparison-table tbody td:first-child {
    font-weight: 700;
    color: #1e293b;
}

.lowest-price {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #16a34a;
}

.fastest-delivery {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #2563eb;
}

        .decision-badge {
            display: inline-block;
            padding: 5px 9px;
            border-radius: 15px;
            background: #eee;
            font-size: 12px;
            text-transform: capitalize;
        }

        .decision-badge.accepted {
            background: #dcfce7;
            color: #166534;
        }

        .decision-badge.rejected {
            background: #fee2e2;
            color: #991b1b;
        }

        .decision-badge.clarification_requested {
            background: #fef3c7;
            color: #92400e;
        }

        .comparison-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .comparison-actions button,
        .comparison-actions a {
            padding: 7px 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            font-size: 12px;
        }

        .accept-action {
            background: #15803d;
            color: white;
        }

        .reject-action {
            background: #dc2626;
            color: white;
        }

        .clarification-action {
            background: #d97706;
            color: white;
        }

        .view-action {
            background: #e2e8f0;
            color: #1e293b;
        }

        .comparison-message {
            padding: 14px;
            margin: 15px 0;
            border-radius: 6px;
            background: #f1f5f9;
        }

        .comparison-message.error {
            background: #fee2e2;
            color: #991b1b;
        }

        .comparison-message.success {
            background: #dcfce7;
            color: #166534;
        }

        .other-products {
            margin-top: 30px;
        }

        .other-products button {
            margin: 5px;
            padding: 9px 13px;
            border: 1px solid #cbd5e1;
            background: white;
            border-radius: 5px;
            cursor: pointer;
        }

        .other-products button.active {
            background: #1d4ed8;
            color: white;
        }

        .no-offers {
            padding: 20px;
            text-align: center;
            color: #64748b;
        }

        .comparison-legend {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin: 12px 0;
            font-size: 13px;
        }

        .comparison-legend span {
            padding: 5px 9px;
            border-radius: 4px;
        }

        .comparison-legend .price-key {
            background: #e9f8ee;
        }

        .comparison-legend .delivery-key {
            background: #eaf2ff;
        }

        @media (max-width: 600px) {
            .comparison-page {
                padding: 12px;
            }

            .comparison-selector select {
                width: 100%;
            }
        }
        .product-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin: 18px 0;
}

.product-info-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
}

.product-info-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 7px;
}

.product-info-item strong {
    display: block;
    color: #1e293b;
    font-size: 15px;
}

.product-specifications,
.product-offer-count {
    margin-top: 14px;
}

@media (max-width: 600px) {
    .product-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================
   PSS - QUOTE COMPARISON PAGE IMPROVEMENTS
   ========================================== */

/* Main comparison page */
.comparison-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    color: #1e293b;
}

.comparison-page h1 {
    color: #12345a;
    font-size: 28px;
    margin-bottom: 18px;
}

/* RFQ summary */
.product-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.product-summary h2,
.product-summary h3 {
    color: #12345a;
    margin-bottom: 12px;
}

/* Product information grid */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.product-info-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 17px;
    min-width: 0;
}

.product-info-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.product-info-item strong {
    display: block;
    color: #12345a;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.product-specifications {
    color: #475569;
    line-height: 1.6;
    margin-top: 18px;
}

.product-offer-count {
    color: #12345a;
    font-weight: 600;
    margin-top: 14px;
}

/* Product selector */
.comparison-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.comparison-selector label {
    color: #12345a;
    font-weight: 700;
}

.comparison-selector select {
    min-width: 260px;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
}

/* Comparison legend */
.comparison-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.comparison-legend span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.comparison-legend .price-key {
    background: #dcfce7;
    color: #166534;
}

.comparison-legend .delivery-key {
    background: #dbeafe;
    color: #1e40af;
}

/* Comparison table */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 28px;
}

.comparison-table {
    width: 100%;
    min-width: 950px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.comparison-table th {
    background: #e2e8f0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    padding: 15px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
}

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

.comparison-table tbody tr:hover {
    background: #f1f5f9;
}

.comparison-table tbody td:first-child {
    color: #12345a;
    font-weight: 700;
}

/* Best price and delivery */
.comparison-table td.lowest-price {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #16a34a;
}

.comparison-table td.fastest-delivery {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #2563eb;
}

/* Decision badges */
.decision-badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.decision-badge.accepted {
    background: #dcfce7;
    color: #166534;
}

.decision-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.decision-badge.pending {
    background: #f1f5f9;
    color: #475569;
}

.decision-badge.clarification_requested {
    background: #fef3c7;
    color: #92400e;
}

/* Action buttons */
.comparison-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comparison-actions button {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comparison-actions button:hover {
    filter: brightness(0.95);
}

/* Other products */
.other-products {
    margin-top: 30px;
}

.other-products h3 {
    color: #12345a;
    margin-bottom: 16px;
}

.other-products > div {
    display: grid;
    gap: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .comparison-page {
        padding: 16px;
    }

    .product-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparison-page h1 {
        font-size: 23px;
    }

    .comparison-selector {
        align-items: stretch;
        flex-direction: column;
    }

    .comparison-selector select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .comparison-page {
        padding: 12px;
    }

    .product-summary {
        padding: 15px;
    }

    .product-info-grid {
        gap: 10px;
    }

    .product-info-item {
        padding: 12px;
    }

    .product-info-item strong {
        font-size: 14px;
    }

    .comparison-legend {
        gap: 8px;
    }
}
.other-products > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.other-products button {
    width: auto;
    flex: 0 0 auto;
}
/* Other RFQ Products */
.other-products {
    margin-top: 35px;
    margin-bottom: 35px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.other-products h3 {
    margin: 0 0 20px;
    color: #1e293b;
    font-size: 19px;
}

#other-products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* RFQ Review Progress */
.comparison-completion {
    margin-top: 35px;
    padding: 25px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

.comparison-completion h3 {
    margin: 0 0 14px;
    color: #1e293b;
    font-size: 19px;
}

.comparison-completion p {
    margin: 0 0 22px;
    color: #475569;
    line-height: 1.6;
}

.comparison-completion .view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
    padding: 11px 20px;
    border-radius: 7px;
    text-decoration: none;
}