﻿body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff9f5;
    color: #0a0a1a;
}

/* Top tiny links */
.top-links {
    display: flex;
    gap: 40px;
    padding: 12px 20px;
    font-size: 12px;
    left: 49px;
    position: relative;
}

    .top-links a {
        text-decoration: none;
        color: #000537;
        font-weight: bold;
    }

.logo {
    margin-right: 40px;
    position: relative;
    left: 45vw;
    top: -2vh;
}

/* Main header */


.main-header {
    display: flex;
   
  
    padding: 20px 40px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}


    .main-header nav {
        display: flex;
        gap: 25px;
    }

        .main-header nav a {
            text-decoration: none;
            color: #333;
            font-size: 14px;
        }

            .main-header nav a.active {
                font-weight: bold;
                color: #000028;
            }

/* Layout */
.page-content {
    display: flex;
    padding: 50px 60px;
}

.left-title h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.1;
    position: relative;
    top: 0vh;
    left: 20vw;
    width:200px;
}
.resultsGrid {
    position: relative;
    left: 10vw;
    top: 38vh;
   /* width: 80vw;*/
}

.resultsGridSummary {
    position: relative;
    left: 10vw;
    top: 38vh;
   /* width: 80vw;*/
}
.backDetaisBtn
{

}
.detailsPanel {
    /* width: 766px;*/
    position: relative;
    left: 3vw;
    top: -20vh;
}
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

    .form-row label {
        width: 140px; /* keeps labels aligned */
        font-weight: 600;
    }

    .form-row input {
        flex: 1;
        padding: 6px 8px;
    }

.right-info {
    max-width: 400px;
    margin-left: 190px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    left: 43.8vw;
    top: -20vh;
    border-left: 1px solid black;
    padding-left: 26px;
}


.search-cat {
    position: relative;
    left: 20vw;
    top: -20vh;
    font-size: 15px;
    min-width: 100px;
    max-width: 479px;
}
/* Quick Order button */
.quick-order-btn {
    display: inline-block;
    margin: 20px 0 40px 0;
    padding: 14px 30px;
    background: #000428;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
}

/* Search Form */
.search-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.search-box label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: bold;
}

.search-box input,
.search-box select {
    width: 70%;
    padding: 8px 10px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.search-btn {
    margin-top: 20px;
    padding: 10px 25px;
    background: blue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* SUMMARY & GRID */

.results-summary {
    margin: 15px 0 10px 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    color: #444;
}

.suppliers-grid {
    /* width: 100%; */
    border-collapse: collapse;
   /* font-family: 'Roboto', Arial, sans-serif;*/
    font-size: 18px;
    top: -139px;
    position: relative;
    min-width: 89vw;
    left: 3vw;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-family: system-ui, -apple-system, Segoe UI;
}

.suppliers-grid-header th {
    background-color: #f4f5fb;
    color: #333;
    padding: 10px 12px;
    border-bottom: 1px solid #d7d7df;
    font-weight: 600;
    text-align: left;
}

.suppliers-grid-row td,
.suppliers-grid-row-alt td {
    padding: 8px 12px;
    border-bottom: 1px solid #ececf2;
}

.suppliers-grid-row-alt {
    background-color: #fafbff;
}


.navRightClass
{
    position:relative;
    top:-79px;
}

.suppliers-grid-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #2563eb;
    background: #eef2ff;
}
/* Column emphasis */
.gv-commodity {
    font-size: 19px;
    color: #6b7280;
    width: 20%;
}

.gv-supplier {
    font-weight: 500;
    width: 60%;
}

.gv-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 17px;
    text-decoration: none;
    color: #2563eb;
    background: #eef2ff;
}

    .gv-view:hover {
        background: #e0e7ff;
    }



.view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0046ff;
    text-decoration: none;
    font-size: 13px;
}

    .view-link:hover {
        text-decoration: underline;
    }

.view-icon {
    font-size: 16px;
}

.grid-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 6px 10px;
    background: #f5f7fa;
    border-radius: 999px;
    font-size: 13px;
    color: #374151;
}

    .grid-pager select {
        background: white;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 4px 8px;
        font-size: 13px;
    }

.pager-arrow {
    margin-left: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* DETAILS PANEL */

.supplier-details-panel {
    border-collapse: collapse;
   
    font-size: 17px;
    /* overflow: hidden; */
    text-overflow: ellipsis;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 8px 0 0 18px;
    padding: 0;
    margin: 8px 0 0 18px;
    padding: 0;
    white-space: pre-line;
    vertical-align: top;
    padding-top: 12px;
    table-layout: fixed;
    text-rendering: optimizelegibility;
    /* letter-spacing: 0.03em; */
    /* word-spacing: 0.3em; */
    table-align: initial;
    font-family: sans-serif;
    text-align: justify;
    position: relative;
    left: 2vw;
    top: -32vh;
    max-width:80vw;
}

#btnSearch {
    position: relative;
    left: 139px;
}



.supplier-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.supplier-details-title {
    font-size: 20px;
    font-weight: 500;
    margin: 5px 0 5px 5px;
    color: #333;
}

.supplier-details-table tr:hover td {
    background: #fafafa;
}

.supplier-details-logo {
    max-height: 60px;
    max-width: 160px;
}

.supplier-details-table th::before {
    margin-right: 8px;
    opacity: 0.6;
}


.supplier-details-text > *:first-child {
    margin-top: 0;
}

/* Row-specific icons */


th:has(+ td #lblDetSupplierName)::before {
    content: "🏢";
}



th:has(+ td #lblDetOrionContact)::before {
    content: "☎";
}

th:has(+ td #lblDetSalesContact)::before {
    content: "👤";
}

.supplier-details-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.btn-disabled {
    background-color: #d1d5db !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.gv-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    background-color: #eef2ff;
    border: 1px solid #dbe3ff;
    text-decoration: none;
    cursor: pointer;
}
tr:hover .gv-view {
    background-color: #e0e7ff;
}

    .gv-view:hover {
        background-color: #e0e7ff;
        border-color: #c7d2fe;
        text-decoration: none;
    }

    /* Icon polish */
    .gv-view .view-icon {
        font-size: 14px;
        opacity: 0.7;
        line-height: 1;
    }

    /* Optional: ensure hover doesn't re-highlight */
    .btn-disabled:hover {
        background-color: #d1d5db !important;
    }
    .supplier-details-table th {
        padding: 10px 12px;
        line-height: 1.4;
    }

    .supplier-details-table td {
        padding: 12px 16px;
        line-height: 1.5;
        white-space: normal;
    }

        .supplier-details-table td > span,
        .supplier-details-table td > a {
            display: block;
        }

.supplier-details-table td {
    padding: 6px 10px;
    line-height: 1.4;
}

.supplier-details-table td > span {
    display: block;
}

.supplier-details-table th .icon {
    vertical-align: middle;
    line-height: 1;
}

    .supplier-details-table th {
        width: 170px;
        background-color: #f3f3f6;
        text-align: left;
        padding: 6px 10px;
        border-bottom: 1px solid #e3e3ea;
        font-weight: 600;
        width: 220px;
        background: #f5f7fa;
        font-weight: 600;
        font-size: 13px;
        color: #374151;
        padding: 12px 14px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #e5e7eb;
    }

    .supplier-details-table td {
        padding: 6px 10px;
        border-bottom: 1px solid #e3e3ea;
        vertical-align: top;
        padding: 14px 16px;
        font-size: 14px;
        color: #111827;
        border-bottom: 1px solid #e5e7eb;
        line-height: 1.6;
    }
.supplier-details-text {
    display: block;
  
    line-height: 1.6;
    max-width: 700px;
    white-space: pre-line;
    line-height: 1.7;
}
    .supplier-details-table a {
        color: #0046ff;
        text-decoration: none;
    }

        .supplier-details-table a:hover {
            text-decoration: underline;
        }


.smallerSpace {
    
    line-height: 0.6 !IMPORTANT;
    
}

.details-list {
    margin: 5px 0 0 20px;
}

.details-section-title {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 4px;
}

.supplier-banner {
    margin-top: 20px;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.tableCat {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

    .tableCat th {
        background: #f5f7fa;
        font-weight: 600;
        font-size: 13px;
        color: #444;
        padding: 12px 16px;
        border-bottom: 1px solid #ddd;
    }

    .tableCat td {
        padding: 14px 16px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }
