/*-- START: Base Styling --*/

/* Root, html & body */

:root {
    /* B4 default $info color (a lighter blue) */
    --bs-info: #17a2b8;
    /* B4 default dark text color for contrast */
    --bs-info-text-emphasis: #212529;
    /* Optional: For subtle border/shadows if needed, though B5 primary color is usually fine */
    --bs-info-bg-subtle: #d1ecf1;
    --bs-primary: #1F456E;
    --btn-primary-base: #1F456E;
    --btn-primary-hover-start: #3A6FA1;
    --btn-hover-end: #1F456E;
    --btn-hover-pop-start: #4F84B3;
    --btn-hover-pop-end: #2C5A88;
    --btn-disabled-bg: #C7D2DF;
    --btn-disabled-text: #6B7785;
    --btn-disabled-border: #B4C0CE;
    --btn-disabled-hc-bg: #5A6E85;
    --btn-disabled-hc-text: #FFFFFF;
    --btn-disabled-hc-border: #4B5E73;
    --product-card-bg: #EAF5F8;
    --catalogue-card-bg: #f0f3ef;
    --bs-light-dark-toggle: var(--bs-light);
    --bs-btn-border-radius: 0;
    --bs-card-border-radius: 0;
    --bs-border-radius: 0;
    --jbp-yellow: #EFEA80;
    --jbp-yellow-lighter: #F4F1A6;
    --jbp-pink: #E9AEC8;
    --jbp-pink-lighter: #F0C5D9;
    --jbp-blue: #AECAE8;
    --jbp-blue-lighter: #C6DAF0;
    --jbp-blue-darker: #4e6a86;
    --jbp-blue-darkest: #2f4d68;
    --jbp-green: #6AC686;
    --jbp-green-lighter: #8ED5A5;
    --jbp-green-darker: #4EA96A;
    --jbp-green-darkest: #3A7E4F;
}

.btn {
    --bs-btn-border-radius: 0;
}

/* 2. Target the button and force it to use the B4 primary color and dark text */
.btn-info {
    /* Set the button background and border color to the B4 shade */
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    /* Set the button text color to the B4 standard dark text */
    --bs-btn-color: #f1f1f1; 
    /* Optional: Override the hover/focus states to match B4 darker shade */
    --bs-btn-hover-bg: #138496; /* Slightly darker B4 shade for hover */
    --bs-btn-hover-border-color: #138496;
    /* Override active state */
    --bs-btn-active-bg: #0f6674;
    --bs-btn-active-border-color: #0f6674;
}

/*Override button primary color*/
.btn-primary {
    background: var(--jbp-blue-darker);
    border-color: var(--jbp-blue-darker);
    transition: background 160ms ease, box-shadow 160ms ease;
}

    .btn-primary:hover {
        background: var(--jbp-blue-darkest);
        border-color: var(--jbp-blue-darkest);
    }

    .btn-primary:disabled,
    .btn-primary[aria-disabled="true"] {
        background: #C7D2DF;
        color: #6B7785;
        border-color: #B4C0CE;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* avoid opacity for readability */
    }

/*Override button success color*/
.btn-success {
    background: var(--jbp-green-darker);
    border-color: var(--jbp-green-darker);
    transition: background 160ms ease, box-shadow 160ms ease;
}

    .btn-success:hover {
        background: var(--jbp-green-darkest);
        border-color: var(--jbp-green-darkest);
    }

    .btn-success:disabled,
    .btn-success[aria-disabled="true"] {
        background: var(--jbp-green);
        color: #6B7785;
        border-color: var(--jbp-green);
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* avoid opacity for readability */
    }

/* Danger button */
span.bg-danger {
    background: #c91a2b !important;
}

.btn-danger {
    background: #b02a37;
    border-color: #b02a37;
    transition: background 160ms ease, box-shadow 160ms ease;
}

    .btn-danger:hover {
        background: #91212c;
        border-color: #91212c;
    }

    /* Disabled danger button */
    .btn-danger:disabled,
    .btn-danger[aria-disabled="true"] {
        background: #f1c2c6;
        color: #7a1e25;
        border-color: #e5aeb3;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* avoid opacity for readability */
    }

#logoutBtn{
    text-align: left;
    margin-left: 0.2rem;
    text-decoration: none;
    color: #FFFFFF;
}

#navbarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1040; /* Just below Bootstrap's navbar z-index */
    display: none; /* Hidden by default */
    cursor: default;


/*    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;*/
}

    /* When active, this prevents clicking anything underneath */
    #navbarOverlay.active {
        display: block;
    }

.text-primary {
    color: var(--bs-primary) !important;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Poppins';
    padding-top: 0;
/*    padding-bottom: 50px;*/ /*I have no idea why this was here*/
    font-size: 1em;
    /*background-color: #f9f5ef;*/ /*comment out if using background images*/
    --bs-body-color: #444;
}


    body.logged-in {
        background-color: var(--bs-body-bg);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }


    body.logged-out {
        background: linear-gradient( 180deg, #B0E0E6 0%, #A8D8E0 25%, #9FD0DA 50%, #A8D8E0 75%, #B0E0E6 100% );
        background-image: url('../images/books.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        min-height: 100vh;
    }

/* Dark mode styles */
/*    body.dark-mode {
        --bs-body-bg: #181a1b;
        --product-card-bg: #122B45;
        --bs-body-color: #FFFFFF;
        --bs-heading-color: #FFFFFF;
        --bs-secondary-rgb: #e0e0e0;
        --bs-secondary-color: #e0e0e0;
        --bs-light-dark-toggle: #444;
    }

    .navbar.dark-mode, body.dark-mode .modal-content {
        background-color: #444 !important;
        color: #e0e0e0 !important;        
        --bs-navbar-color: #e0e0e0;
        --bs-secondary-color: #e0e0e0;
        --bs-navbar-toggler-border-color: #e0e0e0;
        --bs-navbar-toggler-icon: #e0e0e0;
    }*/


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    background: #000000;
    color: #FFFFFF;
    flex-direction: column;
}

    .sidebar .nav-link, .sidebar .btn-link, #expandMenuButton {
        color: #ffffff;
    }

        .sidebar .nav-link.active, .sidebar .nav-link:focus, .sidebar .nav-link:hover{
            background: var(--jbp-blue-lighter) !important;
            color: #000000;
        }

#desktopSidebar.sidebar {
    min-width: 300px;
    max-width: 300px;
    height: 100vh;
    overflow-x: hidden;
}

#desktopSidebar.sidebar-logo {
    padding: 1rem ;
    margin-left: 1em;
}

#desktopSidebar.sidebar .user-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    color: #FFFFFF;
}

.navbar-logo-container {
    /* 1. Pin it to the top-left by default (mobile-first) */
    /* 2. Ensure it's above everything else */
    z-index: 1000;
    /* 3. Reset the centering transform property */
    transform: none;
}

.navbar-light-background {
    background-color: whitesmoke;
}

.navbar-blue-background {
    background-image: url('../images/alternative-styles-1/navimage2.png')
}

.navbar-icon-link {
    text-decoration: none; /* Removes the underline */
    color: white; /* Change to white if your navbar is dark */
    display: inline-flex; /* Helps center the icon */
    align-items: center;
}

    .navbar-icon-link:hover {
        color: #007bff; /* Change color on hover */
    }


/* Ensure navbar items don't overlap with centered logo */
@media (min-width: 992px) {
    .navbar-nav.me-auto {
        max-width: 40%;
    }

    .navbar-nav.ms-auto {
        max-width: 40%;
        justify-content: flex-end;
    }
}


/* Mobile view adjustments */
@media (max-width: 991.8px) {
    .navbar-logo-container {
        position: static !important;
        transform: none !important;
        display: block;
        text-align: center;
    }

    .navbar-toggler {
        order: 0;
    }

    .navbar-collapse {
        order: 1;
        margin-top: 1rem;
    }

    .container-fluid {
        flex-wrap: wrap;
    }

    .logo-img-sizing {
        height: 40px;
    }

    #offCanvasToggleBtn {
        display: block;
        padding-left: 0.75rem;
        background: #758467;
    }

    #mobileSidebar.sidebar {
        width: 50px; 
        transition: width 0.4s ease-in-out;
        overflow: hidden; 

        display: block;
        z-index: 1050 !important;         
/*        max-height: 500px;*/
/*        overflow: hidden;*/
    }

    #mobileSidebarLogo {
        max-height: 50px;
    }

    /* The "Open" state */
    .sidebar.expanded {
        width: 230px !important; /* Adjust to your preferred width */
    }

    .sidebar-content {
        width: 230px; /* Must match the expanded width above */
        white-space: nowrap; /* Prevents text from wrapping during animation */
    }

    .sidebar.expanded .nav-item,
    .sidebar.expanded .user-info,
    .sidebar.expanded #logoutBtnMobile {
        animation: slideIn 0.3s forwards;
        opacity: 0;
    }
        /* Menu Button */
        .sidebar.expanded .nav-item:nth-child(1) {
            animation-delay: 0.05s;
        }
        /* Search */
        .sidebar.expanded .nav-item:nth-child(2) {
            animation-delay: 0.10s;
        }
        /* Fast Order */
        .sidebar.expanded .nav-item:nth-child(3) {
            animation-delay: 0.15s;
        }
        /* Catalogues */
        .sidebar.expanded .nav-item:nth-child(4) {
            animation-delay: 0.20s;
        }
        /* Orders */
        .sidebar.expanded .nav-item:nth-child(5) {
            animation-delay: 0.25s;
        }
        /* Back Orders */
        .sidebar.expanded .nav-item:nth-child(6) {
            animation-delay: 0.30s;
        }
        /* Back Orders */
        .sidebar.expanded .nav-item:nth-child(7) {
            animation-delay: 0.30s;
        }
        /* Back Orders */
        .sidebar.expanded .nav-item:nth-child(8) {
            animation-delay: 0.30s;
        }
        /* Back Orders */
        .sidebar.expanded .nav-item:nth-child(9) {
            animation-delay: 0.30s;
        }
        /* Back Orders */
        .sidebar.expanded .nav-item:nth-child(10) {
            animation-delay: 0.30s;
        }
  

    /* 3. Handling items outside the <ul> */
    .sidebar.expanded .user-info {
        animation-delay: 0.35s;
    }

    .sidebar.expanded #logoutBtnMobile {
        animation-delay: 0.40s;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
        
    #desktopSidebar.sidebar {
        display: none;
    }

    body.logged-in .main-content {
        margin-left: 48px;
        max-width: calc(100vw - 48px);
        padding-top: 0;
    }
}

#logoutBtnMobile{
    text-decoration: none;
}

@media (min-width: 767.8px) and (max-width: 991.8px) {
    #mobileSidebar.sidebar {
        width: 70px;
    }

    body.logged-in .main-content {
        margin-left: 75px;
        max-width: calc(100vw - 75px);
    }
}

@media (min-width: 992px) {
    .navbar-logo-container {
        /* Reset positioning for centering within a relative parent */
        position: absolute;
        /* Apply centering logic */
        left: 50%;
        top: 0; /* Keep it at the top */
        /* Apply the horizontal centering transform */
        transform: translateX(-50%);
    }

    #mobileSidebar.sidebar {
        display: none;
    }

    #desktopSidebar.sidebar {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }


    body.logged-in .main-content {
        margin-left: 300px;
        max-width: calc(100vw - 300px);
        padding-top: 0;
    }
}

@media(min-width: 576px) and (max-width: 767px){
    .container{
        max-width: 767px;
    }
}

@media(min-width: 768px) and (max-width: 992px){
    .container {
        max-width: 992px;
    }
}

/* Desktop - ensure logo doesn't get obscured */
@media (min-width: 992px) {
    .navbar .container-fluid {
        min-height: 80px;
    }
}

.option-hover:hover {
    background-color: rgba(25,135,84,0.05);
}

/* Navbar responsive adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        text-align: left;
    }

        .navbar-nav .nav-item {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 0.25rem 0;
        }
}

.navbar-custom-icon {
    width: 20px;
    height: 20px;
}


/* Ensure table text inherits body color */
table,
table tbody,
table tbody tr,
table tbody tr td,
table thead,
table thead tr,
table thead tr th,
table tfoot tr,
table tfoot tr th {
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg);
    white-space: nowrap;
}

/* Ensure Bootstrap table variants don't override */
.table,
.table > :not(caption) > * > * {
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg);
}

table {
    color: var(--bs-body-color) !important;
}

#catalogueGridView .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-light, #f8f9fa);
    

}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Styling the Top Wrapper to look like a track */
#topScrollbarWrapper {
    background: #f1f1f1;
    border-radius: 10px;
    scrollbar-width: thin; /* Fallback for Firefox */
    scrollbar-color: #888 #f1f1f1;
}

    /* Chrome/Edge styling for the top bar */
    #topScrollbarWrapper::-webkit-scrollbar {
        height: 12px;
    }

    #topScrollbarWrapper::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

/* Hide the scrollbar on the REAL content so we don't have two bars */
#realContentWrapper {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    #realContentWrapper::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

/* Container & Cards */

.container {
    width: 100%;
    margin: 0 auto;
}

.main-content.container{
    padding:0;
    overflow-x: hidden;
}

#layoutSwitcher{
    margin-left: 2em;
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.white-opacity-95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.card-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border: none;
    background-color: var(--bs-)

    /* Remove margin-bottom to prevent extra spacing */
}

.card-header {
    background-color: var(--card-bg);
    font-weight: 700;
    color: #fee300 !important;
    text-transform: uppercase;
}

    .card-header h2 {
        margin-top: 0.2rem;
        margin-bottom: 0;
    }

.card-title {
    font-size: 19px;
}

.card-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

    /* Controls */

    .card-body .form-label {
        margin-bottom: 0rem;
    }

.card-footer {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-top: none;
}

.product-card .card-footer {
    background-color: var(--bs-light-dark-toggle);
}

.title-row {
    /*    background: linear-gradient(90deg,rgba(9, 8, 9, 1) 0%, rgba(102, 102, 102, 1) 55%, rgba(165, 165, 165, 1) 100%);*/
    background: linear-gradient(90deg, rgba(9, 8, 9, 1) 0%, rgba(9, 8, 9, 1) 40%, rgba(68, 68, 68, 1) 85%, rgba(121, 121, 121, 1) 100% );
    color: #fbfcfd;
    --bs-body-color: #fbfcfd;
    --bs-secondary-rgb: #e0e0e0;
    --bs-secondary-color: #e0e0e0;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.title-row > * {
    position: relative;
    z-index: 1;
}

.title-row .card{
    color: inherit;
    padding-left: 0;
    padding-top: 1rem;
}

    .title-row h2 {
        font-size: clamp(2.25rem, 4.5vw, 3.5rem);
        font-weight: 300;
        letter-spacing: 0.05em; /* elegant spacing */
        line-height: 1.1;
        margin: 0;
    }

    .title-row .table {
        overflow-y: auto;
    }

.title-row {
    min-height: 270px;
}

.title-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/JbpBanner2.webp');
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

@media(min-width: 576px) {
    .title-row .card, .sub-content-card {
        padding: 2rem;
    }
}

@media (max-width: 575px){
    #searchProductsForm {
        width: 80%;
    }
}

.form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* Loading State Styles */
    .form-control:disabled {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

    /* Error State Styles */
    .form-control.is-invalid {
        border-color: #dc3545;
        padding-right: calc(1.5em + 0.75rem);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

/* Responsive styles */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 95vw;
    }
}

/* Footer Styling */
.footer-bar {
    background-color: #f8f9fa !important;
    border-top: 1px solid #f1f1f1;
    height: 50px;
}

/*-- END: Base Styling --*/

/*-- START: Login CSS --*/

/* Password visibility icon */

.eye {
    width: 1.3em;
    height: 1.3em;
    z-index: 3;
}

.eye-slash {
    width: 1.3em;
    height: 1.3em;
    z-index: 3;
}

.eyelabelcontainer {
    position: absolute;
    right: 1.7rem;
    top: 1.78rem;
}

.eyetainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    user-select: none;
    /* Consider using a variable for fill color */
    fill: #424242;
}

    .eyetainer .eye {
        position: absolute;
        animation: keyframes-fill 0.5s;
    }

    .eyetainer .eye-slash {
        position: absolute;
        animation: keyframes-fill 0.5s;
        display: none;
    }

    /* ------ On check event ------ */
    .eyetainer input:checked ~ .eye {
        display: none;
    }

    .eyetainer input:checked ~ .eye-slash {
        display: block;
    }

    /* ------ Hide the default checkbox ------ */
    .eyetainer input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 2.6rem;
        width: 2.6rem;
    }

.bg-warning {
    color: #444
}

.form-select.select-narrow {
    /* Auto width allows the select element to shrink to fit its content */
    width: auto;
    /* You can optionally reduce the horizontal padding if 'width: auto' isn't enough */
    /* padding-left: 0.5rem; */
    /* padding-right: 2.5rem; /* Keep some space for the arrow icon */
}

/* ------ Animation ------ */
@keyframes keyframes-fill {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }
}

/* Container */

.login-container label {
    z-index: 4;
}

.login-container {
    border-radius: 20px;
    padding: 3em;
    width: 100%;
    max-width: 725px;
    margin-top: 80px;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: box-shadow var(--transition-speed) ease;
}

    /* Inner Card */
    .login-container .inner-card {
        border-radius: 15px;
        padding: 2em;
        margin: 20px auto;
        width: 100%;
        max-width: 450px;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    /* Heading */
    .login-container h2,
    .login-container h3 {
        margin-bottom: 15px;
        /*  text-align: center;
    font-weight: 500;*/

        color: var(--primary-color);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    /* Subheading */
    /* You had a p tag here that was overriding all p tags, I've made it specific to the login container */
    .login-container p {
        text-align: center;
        margin-bottom: 25px;
        color: var(--text-color);
        opacity: 0.9;
    }

.index-logo {
    width: 70% !important;
}

@media (min-width: 576px) {
    .index-logo {
        width: 50% !important;
    }
}

/* Validation */

.form-floating span.text-danger.field-validation-error {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 0.875em;
    margin-bottom: -1.5rem;
    z-index: 1;
}

/*-- END: Login CSS --*/

#productDetailModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#productDetailModal .modal-header {
    flex-shrink: 0;
}

#productDetailModal .modal-body {
    flex-grow: 1;
    overflow-y: auto;
}

#productDetailModal .modal-footer {
    flex-shrink: 0;
}

.product-card {
    background-color: var(--product-card-bg);
}

.catalogue-card {
    transition: all 0.3s ease;
    cursor: pointer;
    color: #000000;
}

    .catalogue-card.catalogue-card-0 {
        background-color: var(--jbp-blue);
    }

        .catalogue-card.catalogue-card-0:hover {
            background-color: var(--jbp-blue-lighter);
        }

    .catalogue-card.catalogue-card-1 {
        background-color: var(--jbp-yellow);
    }

        .catalogue-card.catalogue-card-1:hover {
            background-color: var(--jbp-yellow-lighter);
        }

    .catalogue-card.catalogue-card-2 {
        background-color: var(--jbp-green);
    }

        .catalogue-card.catalogue-card-2:hover {
            background-color: var(--jbp-green-lighter);
        }

    .catalogue-card.catalogue-card-3 {
        background-color: var(--jbp-pink);
    }

        .catalogue-card.catalogue-card-3:hover {
            background-color: var(--jbp-pink-lighter);
        }

    .catalogue-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.cart-lines {
    padding-bottom: 30px;
}



#ordersSearchResultsTable tbody tr:hover {
    background-color: #ADD8E6;
}

.thin-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

    .thin-underline::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        width: 100%;
        background: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100% );
    }

input, .form-select, .form-control {
    color: #444 !important;
    --bs-secondary-color: #6c757d;
    background-color: #FFF !important;
}

.input-bordered {
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out; /* Smooth transitions for focus */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    outline: none;
}

    .input-bordered:focus {
        border-color: #80bdff; /* Indigo border on focus */
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); /* Soft focus ring */
    }

    .input-bordered::placeholder {
        color: #9ca3af; /* Lighter placeholder text */
    }

.input-group {
    margin-bottom: 1.5rem; /* Increased spacing between input groups */
}

.input-label {
    display: block;
    font-weight: 600; /* Semi-bold label */
    color: var(--bs-body-color);
    margin-bottom: 0.5rem; /* Space between label and input */
    font-size: 0.95rem; /* Slightly larger label font */
}

.download-link {
    display: inline-flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #006600;
    text-decoration: none;
}

    .download-link:hover {
        text-decoration: underline;
        color: #004400;
    }

    .download-link img {
        width: 20px;
        height: 20px;
    }

.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

.text-orange {
    color: darkorange !important;
}


.logo-img-sizing {
    height: 70px;
}

@media (max-width: 576px) {

    .menu-item-text {
        font-size: small;
    }
}

.btn-light-bordered {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #999;
    border-radius: 3px;
    padding: .25rem .5rem;
    transition: all 0.3s ease;
}

    .btn-light-bordered:hover {
        border-color: #737373;
        background-color: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

@media (min-width: 992px) {
    .w-lg-63 {
        width: 63% !important;
    }
}

@media (min-width: 576px) and (max-width: 767px){
    .ps-sm-7 {
        padding-left: 7rem !important;
    }

}


@media (min-width: 992px) and (max-width: 1199.98px) {
    .ps-lg-6 {
        /* Define a custom size, e.g., 5rem (which is larger than p-5's 3rem) */
        padding-left: 8rem !important;
    }

    .ps-lg-8 {
        /* Define a custom size, e.g., 5rem (which is larger than p-5's 3rem) */
        padding-left: 14rem !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .ps-xl-10 {
        padding-left: 10rem !important;
    }
}

@media (min-width: 1400px) {
    .ps-xxl-6 {
        padding-left: 6rem !important;
    }

    .ps-xxl-7 {
        padding-left: 7rem !important;
    }

    .ps-xxl-9 {
        padding-left: 9rem !important;
    }

    .ps-xxl-12 {
        padding-left: 12rem !important;
    }

/*    .w-xxl-50 {
        width: 50%;
    }

    .w-xxl-70{
        width: 70%;
    }*/
}

@media (min-width: 1515px) {
    .ps-xxxl-7 {
        padding-left: 7rem !important;
    }
}

    .truck-icon {
        color: var(--bs-body-color);
        cursor: pointer;
    }

    .col-detail p {
        margin-bottom: 0.5em;
    }

    .order-detail-table th {
        padding-right: 1em;
    }

    .order-detail-table td {
        text-align: center;
    }

    /*New styles for fast order file input*/
    /* Hide the default input */
    .hidden-file-input {
        display: none !important;
    }

    /* Base Dropzone Style */
    .file-dropzone {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 120px;
        padding: 20px;
        border: 2px solid #ddd; /* Light border */
        border-radius: 8px; /* Rounded corners */
        background-color: #f4f9f5;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        position: relative;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    }

        /* Hover/Focus State */
        .file-dropzone:hover, .file-dropzone.drag-over {
            border-color: #007bff; /* Highlight color */
            background-color: #f5faff;
            box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
        }

    /* Initial Prompt Content */
    .upload-prompt-content {
        text-align: center;
        color: #6c757d;
    }

        .upload-prompt-content i {
            color: #007bff; /* Primary icon color */
        }

    .file-type-hint {
        font-size: 0.8rem;
        color: #999;
        margin-top: 5px;
    }

    /* Smart File Display Container */
    .file-display-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        background-color: #e9ecef; /* Light gray background */
        border-radius: 4px;
        width: 90%;
    }

        .file-display-container.hidden {
            display: none !important;
        }

    .file-icon {
        color: #28a745; /* Green for Excel/Success */
        margin-right: 15px;
    }

    .file-name-display-text {
        flex-grow: 1;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* For long file names */
        text-align: left;
    }

    .remove-icon {
        color: #dc3545; /* Red for removal */
        margin-left: 15px;
        cursor: pointer;
        transition: color 0.2s;
    }

        .remove-icon:hover {
            color: #bd2130;
        }

    .icon-dark-gray {
        color: #343a40;
    }

    .desktop-logo, .mobile-logo {
        margin: 0.5rem;
    }

    /* Hide mobile logo by default, show on mobile */
    .mobile-logo {
        display: none !important;
    }

    .desktop-logo {
        display: inline-block !important;
        width: 90%;
        height: auto;
        top: 0;
        left: 0;
    }

    @media (max-width: 440px) {
        .mobile-logo {
            display: inline-block !important;
            height: 50px;
        }

        .desktop-logo {
            display: none !important;
        }
    }

    @media (min-width: 992px) {
        .desktop-logo {
            width: 95%;
        }
    }

    #emptyCartImage {
        height: 70px;
        margin-bottom: 1.5rem;
        opacity: 0.7;
    }

    #darkModeToggle {
        display: none;
    }

    .lonely-title-text {
        display: none;
    }

    .fastOrderPartialCard .card-body {
        padding-left: 3em;
    }

    .col-inline {
        display: flex;
        align-items: center;
        gap: 0.5rem; /* spacing between labels and selects */
        flex-wrap: wrap; /* optional, wraps on small screens */
    }

        .col-inline select {
            display: inline-block;
            width: auto; /* shrink to fit content */
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            line-height: 1.5;
            border: 1px solid #ced4da;
            border-radius: 0.25rem;
            background-color: #fff;
            color: #495057;
        }

    .col-inline {
        display: flex;
        align-items: center;
        gap: 0.5rem; /* spacing between elements */
    }

    #fastOrderFormatBtn {
        display: inline-block;
        margin-inline-start: 3rem;
    }

    @media(min-width: 576px) {
        .customMarginContainer {
            margin-inline: 1em;
        }
    }

    #changeAddressBtn {
        margin-left: 2em;
    }

    #cartItemsTable {
        text-align: right;
    }

    @media(max-width: 575.98px) {
        #cartItemsTable {
            margin-right: 2em;
        }
    }

    @media(max-width: 991.98px) {
        #cartTable {
            font-size: small;
        }
    }

    .sub-content-card #selectDeliveryAddressSubHeading {
        display: none;
    }

    .btn-view-toggle {
        background-color: var(--bs-body-bg);
        color: var(--bs-body-color);
        border: 1px solid #212529;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

        /* The "Selected" State */
        .btn-view-toggle.active {
            background-color: var(--bs-body-color);
            color: var(--bs-body-bg);
        }

        /* Hover effect for the unselected button */
        .btn-view-toggle:hover:not(.active) {
            background-color: var(--bs-body-bg);
            color: var(--bs-body-color);
        }

    .no-x-overflow {
        overflow-x: hidden;
    }

    #catalogueTilesLoadingOverlay {
        display: none; /* Hidden by default */
        position: absolute;
        z-index: 10;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f9f5ef;
        opacity: 0.7;
    }

    /* Desktop sidebar menu hover effects for Layout 4 - Text styling only, no layout changes */
    #desktopSidebar .nav-link {
        transition: color 0.3s ease, font-weight 0.2s ease;
        /*    border-radius: 8px;*/
    }

        #desktopSidebar .nav-link.selected, #mobileSidebar .nav-link.selected {
            color: #ffffff !important;
            font-weight: 700;
            /*        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);*/
            /*        background-color: #6AC686;*/
            background-color: var(--jbp-blue-darker);
        }

    #desktopSidebar .nav-item a, #desktopSidebar .sidebar-logo {
        border-radius: 0;
    }

    #desktopSidebar .sidebar-logo {
        transition: transform 0.4s ease;
    }

        #desktopSidebar .sidebar-logo:hover {
            transform: scale(1.1);
        }

    /* Active/current page styling for desktop sidebar */
    #desktopSidebar .nav-link.active {
        color: #ffffff !important;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Icon styling for desktop sidebar */
    #desktopSidebar .nav-link i {
        transition: opacity 0.3s ease;
    }

    #desktopSidebar .nav-link:hover i {
        opacity: 0.9;
    }

    /* Logout button text styling for desktop sidebar */
    #desktopSidebar #logoutBtnDesktop {
        transition: color 0.3s ease, font-weight 0.2s ease;
        border-radius: 8px;
        margin: 0.2rem 1rem;
        padding: 0.75rem 1rem;
        background: none;
        border: none;
        text-align: left;
        width: calc(100% - 2rem);
        color: #FFFFFF;
    }

        #desktopSidebar #logoutBtnDesktop:hover {
            color: red !important;
            font-weight: 600;
            /*    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);*/
        }

    /* Dark mode toggle - no text changes needed since it's just an icon */
    #desktopSidebar #darkModeToggle {
        transition: opacity 0.3s ease;
        border-radius: 8px;
        margin: 0.2rem 1rem;
        width: calc(100% - 2rem);
    }

        #desktopSidebar #darkModeToggle:hover {
            opacity: 0.8;
        }

    #deliveryOptionsSection, #collectionOptionsSection {
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /*Cookie banner - specifically for Jonathan ball*/

    #onetrust-banner-sdk.otFlat {
        position: relative;
        background-color: #fff;
        max-height: 90%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #onetrust-banner-sdk {
        font-family: Helvetica !important;
        font-size: 16px;
    }

    #onetrust-policy {
        margin: 1.25em 0 .625em 2em;
        overflow: hidden;
        margin-left: 2em;
    }

    #onetrust-policy {
        margin: 1.25em 0 .625em 2em;
        overflow: hidden;
    }

    #onetrust-policy-text {
        color: #002b5c;
    }

    #onetrust-banner-sdk a[href], #onetrust-banner-sdk a[href] font, #onetrust-banner-sdk .ot-link-btn {
        color: #13b5ea;
    }

    #onetrust-accept-btn-handler, #onetrust-banner-sdk #onetrust-reject-all-handler {
        background-color: #13b5ea;
        border-color: #13b5ea;
        color: #FFFFFF;
        margin-right: 1em;
        min-width: 125px;
        height: auto;
        white-space: normal;
        word-break: break-word;
        word-wrap: break-word;
        padding: 12px 10px;
        line-height: 1.2;
        font-size: .813em;
        font-weight: 600;
        display: inline;
    }

    @media only screen and (min-width: 1024px) {
        #onetrust-banner-sdk #onetrust-button-group {
            margin-right: auto;
        }
    }

    @media only screen and (min-width: 769px) {
        #onetrust-banner-sdk #onetrust-button-group {
            margin-right: 30%;
        }
    }

    #onetrust-banner-sdk #onetrust-button-group {
        display: inline-block;
    }

    .cookie-consent {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0; /* pinned to bottom */
        background: #1f2937;
        color: #fff;
        /*    padding: 14px 20px;*/
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        box-sizing: border-box;
        transform: translateY(100%); /* hidden below its height */
        transform-origin: bottom; /* slide from bottom edge */
        transition: transform 0.4s ease;
        z-index: 9999;
    }

        .cookie-consent.show {
            transform: translateY(0); /* fully visible */
        }

    .cookie-content {
        max-width: 1100px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

        .cookie-content a {
            color: #93c5fd;
            text-decoration: underline;
        }

    .cookie-btn {
        background: #22c55e;
        border: none;
        padding: 8px 16px;
        color: white;
        font-weight: 600;
        border-radius: 5px;
        cursor: pointer;
    }

        .cookie-btn:hover {
            background: #16a34a;
        }

    #copyrightFooter a, .sub-content-row a {
        text-decoration: none;
    }

    @font-face {
        font-family: 'Poppins';
        src: url('../fonts/Poppins-Regular.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
    }