﻿/* ===== MOBILE OVERRIDES ===== */

body {
    font-size: 16px;
}

/* Header + Nav */
.top-links {
    justify-content: center;
    left: 0;
    position: static;
}

.logo {
    left: 0;
    top: 0;
    margin: 0 auto;
}

.main-header {
    flex-direction: column;
    padding: 10px 15px;
}

.navRightClass {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Layout */
.page-content {
    flex-direction: column;
    padding: 20px 15px;
}

.left-title h1 {
    position: static;
    font-size: 32px;
    width: auto;
    text-align: center;
}

.right-info {
    position: static;
    max-width: 100%;
    margin: 20px 0;
    border-left: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 41px;
}

.search-cat {
    position: static;
    max-width: 100%;
}

/* Forms */
.form-row {
    flex-direction: column;
    align-items: flex-start;
}

    .form-row label {
        width: auto;
        margin-bottom: 4px;
    }

.search-box input,
.search-box select {
    width: 100%;
}

/* Buttons */
.search-btn,
.quick-order-btn {
    width: 100%;
}

/* Grid */
.suppliers-grid {
    position: static;
    min-width: 100%;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

.gv-commodity,
.gv-supplier {
    width: auto;
}

/* Details Panel */
.supplier-details-panel {
    position: static;
    max-width: 100%;
    margin: 20px 0;
}

.supplier-details-table,
.supplier-details-table tr,
.supplier-details-table th,
.supplier-details-table td {
    display: block;
    width: 100%;
}

    .supplier-details-table tr {
        margin-bottom: 12px;
    }

    .supplier-details-table th {
        background: none;
        padding: 4px 0;
    }

    .supplier-details-table td {
        padding: 4px 0 12px 0;
    }

/* Pager */
.grid-pager {
    justify-content: center;
    flex-wrap: wrap;
}

#btnSearch {
    position: relative;
     left: 0px !important;
}

.quick-order-btn {
    display: inline !important;
    
    position: relative;
}

/* Center main title + intro text */
.left-title h1 {
    text-align: center;
    margin: 0 auto 10px auto;
}

.right-info {
    text-align: center;
}

    .right-info p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

/* Center Quick Order button */
.quick-order-btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.page-content {
    padding-left: 16px;
    padding-right: 16px;
}