﻿.resources-table {
    display: table;
    margin-left: 17rem;
    margin-right: auto;
}
.resources-table-button {
    display: table;
    margin-left: 26rem;
    margin-right: auto;
}
.row-table {
    display: table-row;
}
.label, .value {
    display: table-cell;
    padding: 8px 16px;
    vertical-align: top;
}
.label {
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
    padding-right: 5rem;
}
.value {
    text-align: left;
}
.value a {
    color: #CB2C00;
    text-decoration: none;
}
.resources-table-section {
    margin-top: 25px;
}
.value a:hover {
    text-decoration: underline;
}
.cta-button {
    display: inline-block;
    margin: 40px auto 0;
    padding: 15px 60px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #00005A;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.cta-button:hover, .cta-button:focus {
    background-color: #1a1a8c; /* Slightly lighter navy for hover */
    outline: none;
}
@media only screen and (max-width: 768px) {
    .label {
        padding-right: 1rem;
    }
    .resources-table, .resources-table-button {
        display: table;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    #addAll,
    #removeSelected,
    #removeAll {
        display: none;
    }

    #selectedManufacturers {
        display: none;
    }

    #addSelected::after {
        content: " & Submit";
    }

    #addSelected {
        width: 100%;
    }

    #submitBtn {
        display: none;
    }
}

/* ================================
   Order Entry Page Styles
   ================================ */

/* --- Page Title + Note --- */
.order-title {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

    .order-title h3 {
        font-size: 1.5rem;
        margin: 0;
        font-weight: 600;
    }

.order-note {
    color: #0b63a3;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

    .order-note .text-muted {
        font-weight: 400;
        font-size: 0.85rem;
    }

/* --- Table Styling (desktop/tablet) --- */
.table {
    margin-bottom: 0;
}

    .table thead th {
        font-weight: 600;
        white-space: nowrap;
    }

    .table td {
        vertical-align: middle;
        word-break: break-word;
    }

.qty-input {
    max-width: 110px;
    text-align: center;
}

/* Make product codes stand out */
.table .fw-bold {
    color: #00005A;
}

/* --- Mobile Cards --- */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

    .card .card-body {
        padding: 1rem;
    }

    .card .small {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .card .fw-bold {
        font-size: 0.95rem;
    }

    /* spacing inside card */
    .card .mb-2 {
        margin-bottom: 0.75rem !important;
    }

    /* --- Buttons inside cards --- */
    .card .btn-sm {
        padding: 0.25rem 0.75rem;
        font-size: 0.85rem;
    }

/* --- Order Entry Pagination --- */
.order-pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
}

    .order-pagination .page-link {
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
        color: #333;
        border: 1px solid #dee2e6;
    }

    .order-pagination .page-item.active .page-link {
        background-color: #0b63a3; /* custom blue */
        border-color: #0b63a3;
        color: #fff;
    }

    .order-pagination .page-link:hover {
        background-color: #f1f1f1;
    }

/* --- Responsive Tweaks --- */
@media (max-width: 575.98px) {
    .card .small {
        font-size: 0.82rem;
    }

    .order-title h3 {
        font-size: 1.25rem;
    }
}