/* Styles for the sales quote screen (/sales/quote), copied from EDIQuote's app.css.
   Left out: its Bootstrap template rules and its login-page rules, which share class names with the portal's login. */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}


.app-navbar {
    background-color: #f8f9fa;
    padding: .5rem 1rem;
}

.error-msg {
    color: #cc0000;
}

/* CustomerInfo.css: verified customer fields get a green border; search results drop down under the name. */
.field-verified .mud-input-outlined-border {
    border-color: #28a745 !important;
}

.cust-name {
    position: relative;
}

.cust-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    max-height: 15rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cust-results-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.cust-result {
    display: block;
    width: 100%;
    text-align: left;
    padding: .5rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    background: #fff;
    cursor: pointer;
}

    .cust-result:hover,
    .cust-result:focus-visible {
        background-color: #f8f9fa;
    }

/* Zip.css: the location box sits flush under the ZIP entry. */
.zip-location {
    margin-top: 0 !important;
}

    .zip-location .mud-input-adornment-start {
        min-width: 3rem;
        justify-content: center;
        font-weight: 600;
    }

/* ItemTable.css */
.item-table td,
.item-table th {
    padding-left: .2rem !important;
    padding-right: .2rem !important;
}

@media (max-width: 767.98px) {
    .item-table td {
        padding-left: .15rem !important;
        padding-right: .15rem !important;
    }
}

.quote-remove-item {
    opacity: 0.7;
}

    .quote-remove-item:hover {
        opacity: 1.0;
    }

.fade-in-row {
    animation: fadein 0.4s;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Remarks.css */
.remarks textarea {
    resize: none;
    min-height: 90px;
    max-height: 100px;
}

/* ResultsView.css */
.bill-num-text {
    color: red;
    font-weight: bold;
    font-size: 14px;
    padding-left: 0.875rem;
}


@media (prefers-reduced-motion: reduce) {
    .fade-in-row {
        animation: none;
    }
}

/* Login page */




/* Help page */
.help-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    line-height: 1.6;
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

    .help-header h1 {
        font-size: 1.75rem;
        margin: 0;
    }

.help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin: 1rem 0 2rem;
    padding: .75rem 1rem;
    background: #f8f9fa;
    border-radius: .5rem;
}

.help-page section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 1rem;
}

.help-page h2 {
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.help-page img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
}

.help-warning {
    padding: .75rem 1rem;
    background: #fff3cd;
    border-left: 4px solid #d39e00;
    border-radius: .25rem;
}


/* ---- Home page 2 (alternative layout at /home2) ---- */
.h2-page {
    --h2-bg: #f3f5f9;
    --h2-surface: #ffffff;
    --h2-border: #e1e5ec;
    --h2-ink: #1d2433;
    --h2-muted: #5d6778;
    --h2-brand: #1f3a68;
    --h2-ok: #1e7b45;
    --h2-ok-bg: #e5f4ec;
    --h2-warn: #8a5a00;
    --h2-warn-bg: #fff4dc;
    --h2-error: #b3261e;
    --h2-error-bg: #fdecea;
    min-height: 100vh;
    margin: 0 -15px; /* span the layout gutter */
    background: var(--h2-bg);
    color: var(--h2-ink);
}

.h2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .75rem 1.5rem;
    background: var(--h2-brand);
    color: #fff;
}

.h2-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .h2-brand h1 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: .01em;
    }

.h2-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
}

.h2-user {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    opacity: .9;
}

.h2-topbar-link {
    color: #fff;
    text-decoration: none;
    opacity: .85;
}

    .h2-topbar-link:hover,
    .h2-topbar-link:focus-visible {
        opacity: 1;
        text-decoration: underline;
    }

.h2-topbar-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: .35rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

    .h2-topbar-button:hover,
    .h2-topbar-button:focus-visible {
        background: rgba(255, 255, 255, .12);
    }

.h2-main {
    padding: 1.5rem;
}

.h2-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* form and results share the width equally */
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .h2-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

.h2-card {
    background: var(--h2-surface);
    border: 1px solid var(--h2-border);
    border-radius: .75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.h2-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

    .h2-card-header h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        flex: 1;
    }

.h2-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--h2-brand);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    flex: none;
}

.h2-badge {
    padding: .15rem .6rem;
    border-radius: 1rem;
    background: #eef1f6;
    color: var(--h2-muted);
    font-size: .8rem;
    white-space: nowrap;
}

.h2-badge-ok {
    background: var(--h2-ok-bg);
    color: var(--h2-ok);
}

.h2-badge-warn {
    background: var(--h2-warn-bg);
    color: var(--h2-warn);
}

.h2-badge-error {
    background: var(--h2-error-bg);
    color: var(--h2-error);
}

/* "Preview — not saved": EDI red so an unsaved quote stands out. */
.h2-badge-unsaved {
    background: #fde8eb;
    color: #c8102e;
    font-weight: 600;
}

.h2-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    margin-top: .75rem;
    color: var(--h2-muted);
    font-size: .9rem;
}

    .h2-facts strong {
        color: var(--h2-ink);
        font-weight: 600;
    }

.h2-hint {
    color: var(--h2-muted);
    margin: .5rem 0 1rem;
}

/* Quote buttons stay reachable while scrolling a long form. */
.h2-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: .25rem 1.25rem 1rem;
    background: var(--h2-surface);
    border: 1px solid var(--h2-border);
    border-radius: .75rem;
    box-shadow: 0 -4px 12px rgba(29, 36, 51, .06);
}

/* The quote summary stays in view beside the form on wide screens. */
@media (min-width: 1200px) {
    .h2-side-column {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

.h2-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: .6rem;
    background: var(--h2-bg);
}

.h2-total-label {
    color: var(--h2-muted);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.h2-total-amount {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.h2-summary .mud-paper {
    box-shadow: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 767.98px) {
    .h2-main {
        padding: 1rem;
    }

    .h2-card {
        padding: 1rem;
    }

    .h2-total-amount {
        font-size: 1.6rem;
    }
}

/* EDI Express logo: red wordmark, so it sits on a white badge in the navy top bar. */
.h2-logo {
    display: inline-flex;
    align-items: center;
    padding: .3rem .6rem;
    background: #fff;
    border-radius: .4rem;
}

    .h2-logo img {
        display: block;
        height: 36px;
        width: auto;
    }

.h2-brand h1 {
    padding-left: .75rem;
    border-left: 1px solid rgba(255, 255, 255, .35);
}

@media (max-width: 575.98px) {
    .h2-brand h1 {
        font-size: 1.05rem;
    }

    .h2-logo img {
        height: 24px;
    }
}


/* Compact quote results (used on /home2): all amounts in one row of tiles. */
.rq-tiles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr); /* every amount shares one row */
    gap: .4rem;
    margin: 0 0 .75rem;
}

/* Phones: three per row instead of one cramped row. */
@media (max-width: 575.98px) {
    .rq-tiles {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rq-tile {
    padding: .4rem .35rem;
    border: 1px solid #e1e5ec;
    border-radius: .5rem;
    background: #fff;
    min-width: 0;
}

    .rq-tile dt {
        font-size: .7rem;
        font-weight: 500;
        color: #5d6778;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rq-tile dd {
        margin: .15rem 0 0;
        font-size: .95rem;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

.rq-tiles-costs .rq-tile {
    background: #f7f8fb;
    border-style: dashed;
}

.rq-discount {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin-bottom: .25rem;
}

.rq-label {
    font-weight: 500;
}

.rq-muted {
    color: #5d6778;
    font-size: .875rem;
}

.rq-slider {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 220px;
    min-width: 200px;
}

.rq-details {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin: 0 0 .25rem -.5rem;
}

/* Selected accessorials, shown as chips under the step 4 header on /home2. */
.h2-badge-info {
    background: #e7eef9;
    color: #1f3a68;
}

.h2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: -.25rem 0 .5rem;
    padding: 0;
    list-style: none;
}

    .h2-chips li {
        padding: .2rem .65rem;
        border: 1px solid #c9d5ea;
        border-radius: 1rem;
        background: #f3f6fc;
        color: #1f3a68;
        font-size: .82rem;
    }

/* Step 4 on /home2: accessorials and remarks open in pop-ups; the remarks preview is clipped to two lines. */
.h2-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.h2-remarks-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 .75rem;
    color: var(--h2-ink);
    font-size: .9rem;
    white-space: pre-line;
}

    .h2-remarks-preview span {
        color: var(--h2-muted);
    }

/* Accessorials pop-up on /home2. Dialogs render outside .h2-page, so colours are literal rather than --h2-* variables. */
.acc-title {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.acc-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    background: #e7eef9;
    color: #1f3a68;
}

.acc-title-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d2433;
    line-height: 1.3;
}

.acc-subtitle {
    margin-top: .1rem;
    font-size: .85rem;
    color: #5d6778;
}

.acc-selected {
    margin-left: auto;
    flex: none;
    padding: .2rem .65rem;
    border-radius: 1rem;
    background: #eef1f6;
    color: #5d6778;
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
}

.acc-selected-on {
    background: #e7eef9;
    color: #1f3a68;
}

.acc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acc-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 559.98px) {
    .acc-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

.acc-group {
    padding: .75rem 1rem .5rem;
    border: 1px solid #e1e5ec;
    border-radius: .5rem;
    background: #fafbfd;
}

.acc-heading {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f3a68;
}

    .acc-group .mud-input.mud-input-outlined {
        background: #fff;
    }

.acc-other {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .25rem 1rem;
    align-items: center;
}

.acc-counted {
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .acc-counted .acc-count {
        max-width: 6.5rem;
        margin-top: 0;
    }

.acc-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: 0 .5rem .25rem;
}

/* Item boxes are narrow; trim the input padding so values like 106.7 are not cut off. */
.item-table .mud-input-outlined input.mud-input-root {
    padding-left: 6px;
    padding-right: 6px;
}

/* Quote history grid */
.hist-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.hist-search {
    flex: 1 1 260px;
    max-width: 420px;
    margin: 0 !important;
}

.hist-table .mud-table-head .mud-table-cell {
    font-weight: 600;
    white-space: nowrap;
    background: #f5f7fa;
}

.hist-table .mud-table-head .hist-filter-row .mud-table-cell {
    background: #fbfcfd;
    padding-top: .25rem;
    padding-bottom: .5rem;
}

.hist-filter {
    min-width: 6.5rem;
    margin: 0 !important;
}

.hist-num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

    .hist-num .mud-table-sort-label {
        flex-direction: row-reverse;
    }

.hist-nowrap {
    white-space: nowrap;
}

.hist-name {
    display: inline-block;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.hist-type {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 1rem;
    background: #eef2f8;
    color: #1f3a68;
    font-size: .8rem;
    white-space: nowrap;
}

.hist-used {
    color: #b3261e;
    font-weight: 600;
    white-space: nowrap;
}

/* A bill # that opens the bill's shipment details (billing/{pro}). */
.hist-bill-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.hist-bill-link:hover,
.hist-bill-link:focus-visible {
    text-decoration-style: solid;
}

.hist-muted {
    color: #9aa3b2;
}

.hist-empty {
    padding: 1.5rem;
    text-align: center;
    color: #5d6778;
}

.mud-table-sort-label[role="button"]:focus-visible {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Quote details pop-up */
.qd-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.qd-status {
    padding: .15rem .6rem;
    border-radius: 1rem;
    background: #eef1f6;
    font-size: .8rem;
    font-weight: 500;
}

.qd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
}

@media (max-width: 899.98px) {
    .qd-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
}

.qd-grid h3 {
    margin: 0 0 .5rem;
    font-size: .95rem;
    font-weight: 600;
    color: #1f3a68;
}

.qd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

    .qd-table th,
    .qd-table td {
        padding: .4rem .5rem;
        border-bottom: 1px solid #edf0f4;
        text-align: left;
        vertical-align: top;
    }

    .qd-table tbody th {
        width: 40%;
        font-weight: 500;
        color: #5d6778;
    }

    .qd-table tbody td {
        font-variant-numeric: tabular-nums;
    }

    .qd-table thead th {
        font-weight: 600;
        background: #f5f7fa;
        white-space: nowrap;
    }

.qd-sub th {
    padding-left: 1.5rem !important;
    font-weight: 400 !important;
}

.qd-total th,
.qd-total td {
    font-weight: 700 !important;
    color: #1d2433 !important;
    border-top: 2px solid #d5dbe5;
}

.qd-items td {
    white-space: nowrap;
}

.qd-muted {
    color: #5d6778;
}

.qd-used {
    color: #b3261e;
    font-weight: 600;
}

.qd-remarks {
    white-space: pre-wrap;
}

.qd-chips {
    margin: 0;
}

/* Compact results: all quote actions on one line (wraps on phones). */
.rq-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid #e1e5ec;
}

.rq-actions-spacer {
    flex: 1 1 auto;
}

/* Normal-case labels and slightly tighter padding so all five actions fit on one line in a half-width column. */
.rq-actions .mud-button-root {
    text-transform: none;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 500;
}

/* Match the toolbar: normal-case buttons throughout the /home2 Quote card. */
.h2-summary .mud-button-root {
    text-transform: none;
}

/* Details pop-up footer: document actions on the left, Close on the right. */
.qd-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    width: 100%;
    padding: 0 .5rem .25rem;
}

    .qd-actions .mud-button-root {
        text-transform: none;
    }

.qd-hint {
    font-size: .85rem;
    color: #c8102e;
    font-weight: 600;
}

/* Step 5 on /home2: checklist and quote option cards. */
.h2-actionbar .h2-card-header h2 {
    flex: 1;
}

.h2-clear {
    text-transform: none !important;
}

.h2-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    margin: 0 0 .85rem;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    color: #5d6778;
}

    .h2-checklist li {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
    }

        .h2-checklist li .mud-icon-root {
            color: #b8c0cc;
        }

        .h2-checklist li.done {
            color: #1d2433;
        }

            .h2-checklist li.done .mud-icon-root {
                color: #1e7b45;
            }

.qo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .qo-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

.qo-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease;
}

    .qo-card:not(:disabled):hover {
        box-shadow: 0 4px 14px rgba(29, 36, 51, .18);
        transform: translateY(-1px);
    }

    .qo-card:focus-visible {
        outline: 3px solid #9bb7e6;
        outline-offset: 2px;
    }

    .qo-card:disabled {
        cursor: not-allowed;
        opacity: .55;
    }

.qo-card-primary {
    background: #1f3a68;
    color: #fff;
}

.qo-card-customer {
    background: #c62828;
    color: #fff;
}

.qo-card-placeholder {
    background: #f5f7fa;
    border: 1px dashed #c9d0db;
    color: #5d6778;
    cursor: default;
}

.qo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.qo-card-placeholder .qo-icon {
    background: #e8ecf2;
}

.qo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qo-title {
    font-weight: 600;
    font-size: 1rem;
}

.qo-sub {
    font-size: .8rem;
    opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
    .qo-card {
        transition: none;
    }

        .qo-card:not(:disabled):hover {
            transform: none;
        }
}

/* History grid: tighter cell padding so all columns fit at full width (MudBlazor's dense default is 16px/24px). */
.hist-table .mud-table-cell {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}

.hist-table .mud-table-head .mud-table-cell {
    vertical-align: middle;
}

    .hist-table .mud-table-head .hist-num .mud-table-sort-label {
        justify-content: flex-start;
        vertical-align: middle;
    }

/* Quote history pop-up (/home2). */
.h2-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: #2c5aa0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

    .h2-link-button:hover,
    .h2-link-button:focus-visible {
        color: #1f3a68;
    }

.text-none {
    text-transform: none !important;
}

.history-dialog .mud-dialog-content {
    padding-top: 0;
}

/* ---- Inside the portal ---- */
/* The portal page supplies the background, gutters and top menu. */
.h2-page { min-height: 0; margin: 0; background: transparent; }
.h2-main { padding-left: 0; padding-right: 0; }
.sq-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sq-title { margin: 0; font-family: "Archivo Narrow", "Arial Narrow", sans-serif; font-size: 2rem; font-weight: 700; color: var(--h2-ink); }
.sq-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.text-right { text-align: right; }
.sq-next-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--h2-border); }
.sq-next-steps .mud-button-root { flex: 1 1 140px; }
.sq-next-hint { margin: 8px 0 0; font-size: 13px; color: var(--h2-muted); }
.hist-next-steps { display: inline-flex; gap: 2px; white-space: nowrap; }
/* ---- Portal addition: used / not used switch in the quote history toolbar ---- */
/* Red marks quotes not used yet (may need follow-up), blue the ones on a bill; the chosen option fills with its colour. */
.hist-usage {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.hist-usage-option {
    --usage-color: #4b5563;
    --usage-tint: #f3f4f6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border: none;
    border-left: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.hist-usage-option:first-child { border-left: none; }
.hist-usage-option::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--usage-color);
}
.hist-usage-all { --usage-color: #0f172a; --usage-tint: #f1f5f9; }
.hist-usage-unused { --usage-color: #b91c1c; --usage-tint: #fef2f2; }
.hist-usage-used { --usage-color: #4b5563; --usage-tint: #f3f4f6; }
.hist-usage-option:hover { background: var(--usage-tint); color: var(--usage-color); }
.hist-usage-option:focus-visible { outline: 2px solid var(--usage-color); outline-offset: -2px; }
.hist-usage-option.selected { background: var(--usage-color); color: #fff; }
.hist-usage-option.selected::before { background: #fff; }
.hist-usage-count {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--usage-tint);
    color: var(--usage-color);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
}
.hist-usage-option.selected .hist-usage-count { background: rgba(255, 255, 255, .2); color: #fff; }
