﻿body.u-light-bg {
    background-color: var(--page-background);
}

.review-summary,
.history-summary__details,
.history-summary__totals,
.history-filter {
    background-color: var(--surface);
    border-color: var(--border-colour);
    
}
    
.review-summary__item,
.history-summary__item,
.history-summary__heading {
    border-color: var(--border-colour);
    
}

.review-summary__item--total,
.history-summary__item--grand-total,
.history-summary__heading {
    background-color: var(--surface-muted);
}
.history-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-row-action,
.history-row-action:visited,
.history-row-action:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.history-row-action--view,
.history-row-action--view:visited {
    background: var(--surface);
    border-color: var(--primary-colour);
    color: var(--primary-colour);
}

    .history-row-action--view:hover,
    .history-row-action--view:focus {
        background: var(--primary-colour);
        border-color: var(--primary-colour);
        color: #fff;
    }

.history-row-action--reuse,
.history-row-action--reuse:visited {
    background: var(--secondary-colour);
    border-color: var(--secondary-colour);
    color: #fff;
}

    .history-row-action--reuse:hover,
    .history-row-action--reuse:focus {
        background: var(--dark);
        border-color: var(--dark);
        color: #fff;
    }
/* =========================================================
   PASSWORD RESET
   ========================================================= */

.password-reset-card {
    max-width: 480px;
}

.password-reset-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 13px 15px;
    background: var(--surface-muted);
    border: 1px solid var(--border-colour);
    border-radius: 4px;
}

    .password-reset-user > i {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--primary-colour);
        color: #fff;
        font-size: 13px;
    }

    .password-reset-user span,
    .password-reset-user strong {
        display: block;
    }

    .password-reset-user span {
        color: #666;
        font-size: 12px;
    }

    .password-reset-user strong {
        margin-top: 1px;
        color: var(--dark);
        font-size: 14px;
    }

.password-requirements {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 4px 0 22px;
    padding: 13px 14px;
    background: #eef6fc;
    border: 1px solid #b5d2e6;
    border-radius: 4px;
    color: #244b63;
}

    .password-requirements > i {
        margin-top: 3px;
        color: #347da8;
    }

    .password-requirements strong,
    .password-requirements span {
        display: block;
    }

    .password-requirements strong {
        font-size: 13px;
    }

    .password-requirements span {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.45;
    }

.password-reset-unavailable {
    padding: 0 34px 32px;
    text-align: center;
}

    .password-reset-unavailable p {
        margin: 0 0 20px;
        color: #555;
        font-size: 14px;
    }

    .password-reset-unavailable .account-submit-button {
        text-decoration: none;
    }

@media screen and (max-width: 600px) {

    .password-reset-unavailable {
        padding: 0 22px 26px;
    }
}
/* =========================================================
   HOME DASHBOARD
   ========================================================= */

.home-dashboard {
    min-height: calc(100vh - 132px);
    min-height: calc(100dvh - 132px);
    padding: 42px 0;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(0, 1.45fr);
    min-height: 570px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-colour);
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 48px;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    margin-bottom: 18px;
    color: var(--primary-colour);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.home-hero__content h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}

.home-hero__intro {
    max-width: 470px;
    margin: 18px 0 0;
    color: #5e6670;
    font-size: 17px;
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.home-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

    .home-action:hover {
        transform: translateY(-1px);
        text-decoration: none;
    }

.home-action--primary {
    background: var(--primary-colour);
    border-color: var(--primary-colour);
    color: #fff;
}

    .home-action--primary:hover,
    .home-action--primary:focus {
        background: var(--dark);
        border-color: var(--dark);
        color: #fff;
    }

.home-action--secondary {
    background: var(--surface);
    border-color: var(--primary-colour);
    color: var(--primary-colour);
}

    .home-action--secondary:hover,
    .home-action--secondary:focus {
        background: var(--primary-colour);
        color: #fff;
    }

.home-user-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 34px;
    color: #666;
    font-size: 13px;
}

    .home-user-summary i {
        color: var(--secondary-colour);
    }

    .home-user-summary strong {
        color: var(--dark);
    }

.home-hero__visual {
    position: relative;
    min-height: 570px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .03) );
}

.home-hero__visual-caption {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .92);
    border-left: 5px solid var(--primary-colour);
    border-radius: 4px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
    backdrop-filter: blur(4px);
}

    .home-hero__visual-caption strong,
    .home-hero__visual-caption span {
        display: block;
    }

    .home-hero__visual-caption strong {
        color: var(--dark);
        font-size: 16px;
    }

    .home-hero__visual-caption span {
        margin-top: 3px;
        color: #555;
        font-size: 13px;
    }

.home-loading {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, .9);
    color: var(--dark);
}

    .home-loading strong {
        font-size: 15px;
    }
/* =========================================================
   PRODUCT LOADING
   ========================================================= */

.products-initial-loading {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(2px);
}

.products-initial-loading__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 360px;
    padding: 28px;
    text-align: center;
}

    .products-initial-loading__content img {
        display: block;
        margin-bottom: 16px;
    }

    .products-initial-loading__content strong {
        color: var(--dark);
        font-size: 18px;
    }

    .products-initial-loading__content span {
        margin-top: 6px;
        color: #666;
        font-size: 13px;
        line-height: 1.5;
    }


/* Loader for infinite scrolling */

.products-next-loader {
    grid-column: 1 / -1;
    width: 100%;
    padding: 24px 15px;
    text-align: center;
    box-sizing: border-box;
}

.products-next-loader__content {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--surface);
    border: 1px solid var(--border-colour);
    border-radius: 30px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .09);
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
 
}
.products-initial-loading__content img {
    width: 110px;
    height: 110px;
}

.products-next-loader img {
    width: 42px;
    height: 42px;
}
@media screen and (max-width: 1000px) {

    .home-hero {
        grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    }

    .home-hero__content {
        padding: 42px 34px;
    }
}


@media screen and (max-width: 760px) {

    .home-dashboard {
        padding: 24px 0;
    }

    .home-hero {
        display: block;
        min-height: 0;
    }

    .home-hero__content {
        padding: 34px 24px;
    }

        .home-hero__content h1 {
            font-size: 34px;
        }

    .home-hero__actions {
        display: block;
    }

    .home-action {
        width: 100%;
        margin-bottom: 11px;
    }

    .home-hero__visual {
        min-height: 330px;
    }

    .home-hero__visual-caption {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }
}
/* =========================================================
   SUBMIT ORDER
   ========================================================= */

.submit-final-step {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
    padding: 15px 18px;
    background: var(--surface);
    border: 1px solid var(--border-colour);
    border-left: 5px solid var(--primary-colour);
    border-radius: 4px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
}

.submit-final-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-colour);
    color: #fff;
}

.submit-final-step__content strong,
.submit-final-step__content span {
    display: block;
}

.submit-final-step__content strong {
    color: var(--dark);
    font-size: 15px;
}

.submit-final-step__content span {
    margin-top: 2px;
    color: #555;
    font-size: 13px;
}


/* Main two-column layout */

.submit-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
}

.submit-products-panel,
.submit-confirm-panel {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border-colour);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .08);

    position: sticky;
    top: 90px;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
}


/* Product side */

.submit-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-colour);
}

    .submit-panel-heading strong,
    .submit-panel-heading span {
        display: block;
    }

    .submit-panel-heading strong {
        color: var(--dark);
        font-size: 16px;
    }

    .submit-panel-heading div > span {
        margin-top: 2px;
        color: #666;
        font-size: 13px;
    }

.submit-product-count {
    flex-shrink: 0;
    padding: 5px 9px;
    background: var(--surface-muted);
    border: 1px solid var(--border-colour);
    border-radius: 20px;
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
}

.submit-products-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
}


/* Confirmation side */

.submit-confirm-panel {
    position: sticky;
    top: 90px;
}

.submit-confirm-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-colour);
}

    .submit-confirm-heading span,
    .submit-confirm-heading strong {
        display: block;
    }

    .submit-confirm-heading span {
        color: #555;
        font-size: 13px;
        font-weight: 600;
    }

    .submit-confirm-heading strong {
        margin-top: 2px;
        color: var(--primary-colour);
        font-size: 20px;
    }

    .submit-confirm-heading i {
        color: var(--primary-colour);
        font-size: 24px;
    }

.submit-confirm-body {
    padding: 20px;
}


/* Totals */

.submit-totals {
    margin-bottom: 22px;
    border: 1px solid var(--border-colour);
    border-radius: 5px;
    overflow: hidden;
}

.submit-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-colour);
}

    .submit-total-row:last-child {
        border-bottom: 0;
    }

    .submit-total-row span {
        color: #555;
        font-size: 13px;
        font-weight: 600;
    }

    .submit-total-row strong {
        color: #222;
        font-size: 15px;
    }

.submit-total-row--grand {
    padding-top: 15px;
    padding-bottom: 15px;
    background: var(--surface-muted);
}

    .submit-total-row--grand span {
        color: #222;
        font-size: 15px;
    }

    .submit-total-row--grand strong {
        color: var(--primary-colour);
        font-size: 20px;
    }


/* Fields */

.submit-field {
    margin-bottom: 18px;
}

    .submit-field label {
        margin-bottom: 6px;
        color: var(--dark);
        font-size: 14px;
        font-weight: 700;
    }

    .submit-field input,
    .submit-field textarea {
        width: 100%;
        background: var(--surface);
    }

    .submit-field textarea {
        min-height: 145px;
        resize: vertical;
    }

    .submit-field small {
        display: block;
        margin-top: 6px;
        color: #666;
        font-size: 12px;
        line-height: 1.4;
    }


/* Buttons */

.submit-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

    .submit-confirm-actions .order-action {
        flex: 1;
        min-width: 0;
    }

        .submit-confirm-actions .order-action:disabled {
            opacity: .55;
            cursor: default;
            transform: none;
        }

.submit-order-loading {
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px;
    background: var(--surface-muted);
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

    .submit-order-loading[style*="display: block"] {
        display: flex !important;
    }

.submit-unavailable-actions {
    padding-top: 20px;
    text-align: center;
}
/* =========================================================
   ACCOUNT CONFIRMATION
   ========================================================= */

.confirmation-card {
    max-width: 520px;
}

.confirmation-card__body {
    padding: 0 30px 30px;
}

.confirmation-card__icon--success {
    background: var(--secondary-colour);
}

.confirmation-card__icon--error {
    background: #a71930;
}

.confirmation-message {
    max-width: none;
    margin: 0;
}

.confirmation-card__actions {
    margin-top: 24px;
}

    .confirmation-card__actions .account-submit-button {
        text-decoration: none;
    }

@media screen and (max-width: 600px) {

    .confirmation-card__body {
        padding: 0 20px 24px;
    }
}
/*=================LOGIN==================*/
/* =========================================================
   ACCOUNT / LOGIN
   ========================================================= */
.password-recovery-card {
    max-width: 470px;
}

.account-return-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--primary-colour);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .account-return-link:hover,
    .account-return-link:focus {
        color: var(--dark);
        text-decoration: underline;
    }
.account-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 132px);
    min-height: calc(100dvh - 132px);
    padding: 40px 20px;
}

.account-card {
    width: 100%;
    max-width: 470px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-colour);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.account-card__header {
    padding: 32px 34px 24px;
    text-align: center;
}

.account-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--primary-colour);
    color: #fff;
    font-size: 22px;
}

.account-card__header h1 {
    margin: 0;
    color: var(--dark);
    font-size: 27px;
    line-height: 1.25;
}

.account-card__header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
}

.login-message {
    max-width: none;
    margin: 0 28px 24px;
}

.account-form {
    padding: 0 34px 32px;
}

.account-field {
    margin-bottom: 20px;
}

    .account-field label {
        margin-bottom: 7px;
        color: var(--dark);
        font-size: 14px;
        font-weight: 700;
    }

.account-field__control {
    position: relative;
}

    .account-field__control > i {
        position: absolute;
        top: 50%;
        left: 15px;
        z-index: 2;
        color: #777;
        font-size: 14px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .account-field__control input {
        width: 100%;
        height: 50px;
        padding: 10px 14px 10px 43px;
        background: var(--surface);
        border: 2px solid var(--border-colour);
        border-radius: 4px;
        color: #222;
        font-size: 15px;
    }

        .account-field__control input:focus {
            border-color: var(--primary-colour);
            background: var(--surface);
            box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
        }

        .account-field__control input::placeholder {
            color: #999;
            font-size: 14px;
            font-weight: 400;
            text-transform: none;
            letter-spacing: 0;
        }

.account-field__error {
    display: block;
    margin-top: 6px;
    color: #a71930;
    font-size: 12px;
    font-weight: 600;
}

.account-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.account-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .account-checkbox input {
        width: 17px;
        height: 17px;
        margin: 0;
    }

.account-forgotten-link {
    color: var(--primary-colour);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    text-decoration: none;
}

    .account-forgotten-link:hover {
        color: var(--dark);
        text-decoration: underline;
    }

.account-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    padding: 11px 20px;
    background: var(--primary-colour);
    border: 2px solid var(--primary-colour);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

    .account-submit-button:hover,
    .account-submit-button:focus {
        background: var(--dark);
        border-color: var(--dark);
        color: #fff;
    }

.account-card__footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 24px;
    background: var(--surface-muted);
    border-top: 1px solid var(--border-colour);
    color: #555;
    font-size: 12px;
    line-height: 1.5;
}

    .account-card__footer i {
        margin-top: 2px;
        color: var(--primary-colour);
    }

/*=================MOBILE=================*/
@media screen and (max-width: 600px) {

    .account-page {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .account-card__header {
        padding: 26px 22px 20px;
    }

    .account-form {
        padding: 0 22px 26px;
    }

    .login-message {
        margin: 0 18px 20px;
    }

    .account-form__options {
        display: block;
    }

    .account-checkbox {
        margin-bottom: 14px;
    }

    .account-forgotten-link {
        display: block;
        text-align: left;
    }
}
@media screen and (max-width: 1050px) {

    .submit-page-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 16px;
    }

    .submit-confirm-body {
        padding: 16px;
    }

    .submit-confirm-actions {
        display: block;
    }

        .submit-confirm-actions .order-action {
            width: 100%;
            margin-bottom: 10px;
        }
}


@media screen and (max-width: 850px) {

    .submit-page-layout {
        display: block;
    }

    .submit-products-panel {
        margin-bottom: 18px;
    }

    .submit-confirm-panel {
        position: static;
        width: 100%;
    }

    .submit-confirm-actions {
        display: flex;
    }

        .submit-confirm-actions .order-action {
            width: auto;
            margin-bottom: 0;
        }
}


@media screen and (max-width: 750px) {

    .submit-final-step {
        align-items: flex-start;
        padding: 15px;
    }

    .submit-panel-heading {
        display: block;
    }

    .submit-product-count {
        display: inline-block;
        margin-top: 10px;
    }

    .submit-confirm-actions {
        flex-direction: column-reverse;
    }

        .submit-confirm-actions .order-action {
            width: 100%;
        }

    .submit-products-table {
        display: block;
        width: 100%;
        background: transparent;
    }

        .submit-products-table tbody,
        .submit-products-table tr,
        .submit-products-table td {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }

            .submit-products-table tr:first-child {
                display: none;
            }

            .submit-products-table tr.review-odd,
            .submit-products-table tr.review-even {
                display: block;
                margin: 0 0 16px;
                overflow: hidden;
                background: var(--surface);
                border: 1px solid var(--border-colour);
                border-radius: 5px;
                box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
            }

                .submit-products-table tr.review-odd td,
                .submit-products-table tr.review-even td {
                    position: relative;
                    min-height: 46px;
                    padding: 12px 14px 12px 43%;
                    border: 0;
                    border-bottom: 1px solid var(--border-colour);
                    text-align: right;
                    overflow-wrap: anywhere;
                }

            .submit-products-table tr td:last-child {
                border-bottom: 0;
            }

            .submit-products-table td::before {
                position: absolute;
                top: 12px;
                left: 14px;
                width: 36%;
                color: #555;
                font-weight: 700;
                text-align: left;
            }

            .submit-products-table td:nth-child(1)::before {
                content: "#";
            }

            .submit-products-table td:nth-child(2)::before {
                content: "Stock ref";
            }

            .submit-products-table td:nth-child(3)::before {
                content: "Product";
            }

            .submit-products-table td:nth-child(4)::before {
                content: "Quantity";
            }

            .submit-products-table td:nth-child(5)::before {
                content: "Price";
            }
}


/*=============END SUBMIT===============*/

@media screen and (max-width: 750px) {
    .history-row-actions {
        width: 100%;
        gap: 10px;
    }

    .history-row-action {
        flex: 1;
        min-height: 44px;
    }
}
@media screen and (max-width: 750px) {
    .review-order-table td:nth-child(1)::before {
        content: "#";
    }

    .review-order-table td:nth-child(2)::before {
        content: "Stock ref";
    }

    .review-order-table td:nth-child(3)::before {
        content: "Product";
    }

    .review-order-table td:nth-child(4)::before {
        content: "Quantity";
    }

    .review-order-table td:nth-child(5)::before {
        content: "Price ex VAT";
    }

    .review-order-table td:nth-child(6)::before {
        content: none;
        display: none;
    }

    .review-order-table td:nth-child(6) {
        padding: 12px;
    }

    .review-order-table .quantity {
        width: 75px;
        height: 46px;
        padding: 8px 12px;
        text-align: center;
    }

    .review-order-table .del-link {
        width: 100%;
        margin: 0;
    }
}
@media screen and (max-width: 750px) {
    .history-detail-table td:nth-child(1)::before {
        content: "#";
    }

    .history-detail-table td:nth-child(2)::before {
        content: "Stock ref";
    }

    .history-detail-table td:nth-child(3)::before {
        content: "Product";
    }

    .history-detail-table td:nth-child(4)::before {
        content: "Order qty";
    }

    .history-detail-table td:nth-child(5)::before {
        content: "Despatch qty";
    }

    .history-detail-table td:nth-child(6)::before {
        content: "Price";
    }

    .history-detail-table td:nth-child(7)::before {
        content: "Line net";
    }

    .history-detail-table td:nth-child(8)::before {
        content: "VAT";
    }

    .history-detail-table .history-summary-row {
        display: block;
        margin-top: 20px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

        .history-detail-table .history-summary-row td {
            min-height: 0;
            padding: 0;
            border: 0;
            text-align: left;
        }

            .history-detail-table .history-summary-row td::before {
                content: none;
                display: none;
            }
}
@media screen and (max-width: 750px) {
    .history-order-table td:nth-child(1)::before {
        content: "Order ID";
    }

    .history-order-table td:nth-child(2)::before {
        content: "Date created";
    }

    .history-order-table td:nth-child(3)::before {
        content: "PO / Note";
    }

    .history-order-table td:nth-child(4)::before {
        content: "Channel";
    }

    .history-order-table td:nth-child(5)::before {
        content: "Stage";
    }

    .history-order-table td:nth-child(6)::before {
        content: "Total + VAT";
    }

    .history-order-table td:nth-child(7)::before {
        content: none;
        display: none;
    }

    .history-order-table .history-actions-cell {
        padding: 12px;
        border-bottom: 0;
    }

    .history-order-table .history-paging-row {
        display: block;
        margin: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

        .history-order-table .history-paging-row td {
            padding: 18px 0;
            border: 0;
            text-align: center;
        }

            .history-order-table .history-paging-row td::before {
                content: none;
                display: none;
            }
}


@media screen and (max-width: 750px) {
    .table-scrolling-message {
        display: none;
    }

    .table-scroll {
        overflow: visible;
    }

    .review-order-table,
    .history-detail-table,
    .history-order-table {
        display: block;
        width: 100%;
        min-width: 0;
        background: transparent;
    }

        .review-order-table tbody,
        .review-order-table tr,
        .review-order-table td,
        .history-detail-table tbody,
        .history-detail-table tr,
        .history-detail-table td,
        .history-order-table tbody,
        .history-order-table tr,
        .history-order-table td {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }

            .review-order-table tr:first-child,
            .history-detail-table tr:first-child,
            .history-order-table tr:first-child {
                display: none;
            }

            .review-order-table tr.review-odd,
            .review-order-table tr.review-even,
            .history-detail-table tr.review-odd,
            .history-detail-table tr.review-even,
            .history-detail-table tr.review-approved,
            .history-detail-table tr.review-rejected,
            .history-detail-table tr.review-pending,
            .history-order-table tr.review-odd,
            .history-order-table tr.review-even {
                display: block;
                margin: 0 0 16px;
                overflow: hidden;
                background: var(--surface);
                border: 1px solid var(--border-colour);
                border-radius: 5px;
                box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
            }

                .review-order-table tr.review-odd td,
                .review-order-table tr.review-even td,
                .history-detail-table tr.review-odd td,
                .history-detail-table tr.review-even td,
                .history-detail-table tr.review-approved td,
                .history-detail-table tr.review-rejected td,
                .history-detail-table tr.review-pending td,
                .history-order-table tr.review-odd td,
                .history-order-table tr.review-even td {
                    position: relative;
                    min-height: 46px;
                    padding: 12px 14px 12px 43%;
                    border: 0;
                    border-bottom: 1px solid var(--border-colour);
                    text-align: right;
                    overflow-wrap: anywhere;
                }

            .review-order-table td::before,
            .history-detail-table td::before,
            .history-order-table td::before {
                position: absolute;
                top: 12px;
                left: 14px;
                width: 36%;
                color: #555;
                font-weight: 700;
                text-align: left;
            }

}
@media screen and (max-width: 750px) {

    .history-detail-table .history-summary-row {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

        .history-detail-table .history-summary-row > td {
            display: block;
            width: 100%;
            padding: 0;
            border: 0;
        }

    .history-detail-table .history-summary {
        display: block;
        width: 100%;
    }

    .history-detail-table .history-summary__details,
    .history-detail-table .history-summary__totals {
        display: block;
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
        box-sizing: border-box;
    }

    .history-detail-table .history-summary__details {
        margin-bottom: 16px;
    }

    .history-detail-table .history-summary__description {
        min-height: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }
}
.error-page {
    padding: 60px 20px;
}

.error-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(15,23,42,.08);
    padding: 50px;
    text-align: center;
}

.error-card__image {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 35px;
    display: block;
}

.error-card__code {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2757d7;
    font-weight: 600;
    margin-bottom: 18px;
}

.error-card h1 {
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.error-card p {
    max-width: 650px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
}

.error-card__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 25px;
    flex-wrap: wrap;
}

.error-card__help {
    font-size: .95rem;
}

    .error-card__help a {
        font-weight: 600;
    }
.error-page {
    padding: 48px 20px 72px;
    background: #f5f7fa;
    min-height: calc(100vh - 180px);
    box-sizing: border-box
}

.error-page__card {
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15,23,42,.09);
    padding: 42px;
    text-align: center
}

.error-page__image {
    display: block;
    width: min(100%,620px);
    height: auto;
    margin: 0 auto 22px;
    border-radius: 14px
}

.error-page__code {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #edf3ff;
    color: #2757c7;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.error-page h1 {
    margin: 16px 0 12px;
    color: #17233a;
    font-size: clamp(2rem,4vw,3rem);
    line-height: 1.12
}

.error-page__message {
    max-width: 660px;
    margin: 0 auto;
    color: #617087;
    font-size: 1.05rem;
    line-height: 1.7
}

.error-page__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0 22px
}

.error-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 160px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #234dba;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box
}

    .error-page__button:hover {
        background: #f7f9fc;
        text-decoration: none
    }

.error-page__button--primary {
    border-color: #1e55d6;
    background: #1e55d6;
    color: #fff
}

    .error-page__button--primary:hover {
        background: #1949bb;
        color: #fff
    }

.error-page__help {
    margin: 0;
    color: #6c788b;
    font-size: .94rem
}

    .error-page__help a {
        color: #1f55c7;
        font-weight: 700;
        text-decoration: none
    }

@media(max-width:640px) {
    .error-page {
        padding: 24px 12px 44px
    }

    .error-page__card {
        padding: 24px 18px;
        border-radius: 14px
    }

    .error-page__actions {
        flex-direction: column
    }

    .error-page__button {
        width: 100%
    }
}
.out-of-stock-button {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 1.5rem;
    width: auto;
    box-sizing: border-box;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    background: #777;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stock-status-text {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 16px;
    background: #f1f1f1;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.quantity-details--out,
.submit-details--out {
    pointer-events: none;
}

.product-star {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.product-star__icon {
    display: block;
    font-family: Arial, "Segoe UI Symbol", sans-serif;
    font-size: 32px;
    line-height: 1;
    color: #c9c9c9;
}

.product-star.selected .product-star__icon {
    color: var(--primary-colour);
}

.product-star:focus-visible {
    outline: 2px solid var(--primary-colour);
    outline-offset: 4px;
    border-radius: 3px;
}


    .product-star.is-loading {
        pointer-events: none;
        cursor: wait;
    }

        .product-star.is-loading .product-star__icon {
            visibility: hidden;
        }

        .product-star.is-loading::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 18px;
            height: 18px;
            margin-top: -11px;
            margin-left: -11px;
            border: 2px solid rgba(0, 0, 0, 0.18);
            border-top-color: var(--primary-colour);
            border-radius: 50%;
            animation: favourite-spinner 0.65s linear infinite;
        }

@keyframes favourite-spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-star.is-loading::after {
        animation-duration: 1.4s;
    }
}