html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---- Brand colours, taken from the logo: plum #351337 and pink #ef5696 ---- */
:root {
    --brand-plum: #351337;
    --brand-plum-light: #4b1d4e;
    --brand-pink: #ef5696;
    --brand-pink-dark: #c81e6a;
    --brand-pink-soft: #fde8f1;
}

a, .btn-link {
    color: var(--brand-pink-dark);
}

    a:hover, .btn-link:hover {
        color: var(--brand-plum);
    }

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff;
    background-color: var(--brand-plum);
    border-color: var(--brand-plum);
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-check:checked + .btn-primary {
        color: #fff;
        background-color: var(--brand-plum-light);
        border-color: var(--brand-plum-light);
    }

.btn-outline-primary {
    color: var(--brand-plum);
    border-color: var(--brand-plum);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        color: #fff;
        background-color: var(--brand-plum);
        border-color: var(--brand-plum);
    }

.btn-success {
    color: #2a0f2c;
    background-color: var(--brand-pink);
    border-color: var(--brand-pink);
}

    .btn-success:hover,
    .btn-success:focus,
    .btn-success:active {
        color: #2a0f2c;
        background-color: #f478ab;
        border-color: #f478ab;
    }

.badge.bg-primary {
    background-color: var(--brand-plum) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(239, 86, 150, 0.6);
}

.form-check-input:checked {
    background-color: var(--brand-plum);
    border-color: var(--brand-plum);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: var(--brand-pink-soft);
}

.card {
    border-color: #ead9e6;
}

h1 {
    color: var(--brand-plum);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ---- La TD Boutique ---- */
.data-grid thead th {
    white-space: nowrap;
    user-select: none;
    color: var(--brand-plum);
    background-color: var(--brand-pink-soft);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #fdf3f8;
}

.grid-pager {
    margin-bottom: 1rem;
}

/* Side menu closed with the button in the top bar (wide screens only). */
@media (min-width: 641px) {
    html.nav-closed .sidebar {
        display: none;
    }
}

.data-grid td {
    font-variant-numeric: tabular-nums;
}

.grid-search {
    max-width: 18rem;
}

.record-form {
    max-width: 46rem;
}

.doc-header {
    max-width: 46rem;
}

    .doc-header th {
        width: 12rem;
        font-weight: 600;
    }

.signin-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(160deg, #351337 0%, #4b1d4e 60%, #7a2a5f 100%);
    padding: 1rem;
}

.signin-logo {
    display: block;
    width: 100%;
    max-width: 16rem;
    margin: 0 auto 1rem;
}

.signin-card {
    width: 100%;
    max-width: 24rem;
}

/* ---- Entry screens ---- */
.search-picker {
    position: relative;
}

.search-picker-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    max-height: 18rem;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.entry-lines th.num,
.entry-lines input.num {
    width: 7rem;
    min-width: 5.5rem;
    text-align: right;
}

.entry-totals {
    font-variant-numeric: tabular-nums;
}

.item-suppliers {
    max-width: 60rem;
}

.barcode-video {
    display: block;
    width: 100%;
    max-width: 26rem;
    margin-top: 1rem;
    border-radius: 0.375rem;
    background: #000;
}

/* ---- Printed invoices and receipts ---- */
.print-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--brand-pink-soft);
    border-bottom: 1px solid #ead9e6;
}

.print-sheet {
    box-sizing: border-box;
    margin: 1rem auto;
    padding: 10mm;
    background: #fff;
    color: #000;
    font-size: 10pt;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
}

    .print-sheet.portrait {
        width: 148mm;
        min-height: 210mm;
    }

    .print-sheet.landscape {
        width: 210mm;
        min-height: 148mm;
    }

    .print-sheet h1 {
        margin: 4mm 0 3mm;
        font-size: 14pt;
        text-align: center;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

.print-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6mm;
    padding-bottom: 3mm;
    border-bottom: 0.4mm solid #000;
}

    .print-head img {
        height: 24mm;
        width: auto;
    }

.print-company {
    text-align: right;
    line-height: 1.35;
}

    .print-company .name {
        font-size: 12pt;
        font-weight: 700;
    }

.print-meta,
.print-lines,
.print-totals {
    width: 100%;
    border-collapse: collapse;
}

    .print-meta th {
        width: 26mm;
        padding: 1mm 0;
        font-weight: 600;
        text-align: left;
        vertical-align: top;
    }

    .print-meta td {
        padding: 1mm 0;
    }

.print-lines {
    margin-top: 3mm;
}

    .print-lines th,
    .print-lines td {
        padding: 1.2mm 1.5mm;
        border: 0.2mm solid #000;
    }

    .print-lines th {
        background: #eee;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-lines .r {
        text-align: right;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .print-lines .n {
        width: 8mm;
        text-align: center;
    }

.print-totals {
    width: auto;
    min-width: 55mm;
    margin: 3mm 0 0 auto;
}

    .print-totals th {
        padding: 0.8mm 4mm 0.8mm 0;
        font-weight: 600;
        text-align: left;
    }

    .print-totals td {
        padding: 0.8mm 0;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .print-totals .grand th,
    .print-totals .grand td {
        padding-top: 1.5mm;
        border-top: 0.4mm solid #000;
        font-size: 12pt;
        font-weight: 700;
    }

.print-words {
    margin: 4mm 0 0;
    font-size: 11pt;
}

.print-settles,
.print-note {
    margin: 3mm 0 0;
}

.print-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 16mm;
}

    .print-signatures div {
        width: 55mm;
        padding-top: 1.5mm;
        border-top: 0.2mm solid #000;
        text-align: center;
    }

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .print-sheet,
    .print-sheet.portrait,
    .print-sheet.landscape {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
}

/* ---- QR codes and item labels ---- */
.qr {
    display: block;
}

.item-qr {
    width: 7rem;
    height: 7rem;
}

.item-qr-card {
    max-width: 46rem;
}

.label-chosen {
    max-width: 46rem;
}

.label-copies {
    width: 5rem;
}

.label-sheet {
    display: flex;
    flex-wrap: wrap;
    gap: 3mm;
    padding: 1rem;
    color: #000;
}

.item-label {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 1.5mm;
    width: var(--label-w);
    height: var(--label-h);
    padding: 1.5mm 2mm;
    overflow: hidden;
    background: #fff;
    outline: 1px dashed #c9b3c8;   /* cut guide on screen only */
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.15;
}

    .item-label .qr {
        flex: none;
        width: var(--qr);
        height: var(--qr);
    }

.label-text {
    flex: 1;
    min-width: 0;
}

.label-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 7.5pt;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.label-number {
    margin-top: 0.6mm;
    font-size: 7pt;
}

.label-detail {
    font-size: 6.5pt;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.label-price {
    margin-top: 0.6mm;
    font-size: 10pt;
    font-weight: 700;
    white-space: nowrap;
}

@media print {
    .label-sheet {
        gap: 0;
        padding: 0;
    }

    .item-label {
        outline: none;
        break-inside: avoid;
    }

    /* Label rolls: one label per page. */
    .label-sheet.roll {
        display: block;
    }

        .label-sheet.roll .item-label {
            break-after: page;
        }

    /* A4 sheets: three across with the 2.5 mm gutter of 63.5 x 38.1 mm label paper. */
    .label-sheet.sheet {
        column-gap: 2.5mm;
    }
}

/* ---- WhatsApp sending ---- */
details.card > summary {
    cursor: pointer;
}

.wa-preview {
    max-width: 26rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    background: #e7f7e1;
    color: #111;
}

.wa-preview-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wa-customers {
    max-height: 26rem;
    overflow-y: auto;
}

/* ---- clickable grid rows ---- */
.data-grid tr.row-link {
    cursor: pointer;
}

.data-grid a.row-link-anchor {
    color: inherit;
    text-decoration: none;
}

.data-grid a.row-link-anchor:focus-visible {
    outline: 2px solid #ef5696;
    outline-offset: 2px;
}

.data-grid td.row-actions {
    cursor: default;
}

/* ---- approvals ---- */
.approval-changes th[scope="row"] {
    width: 12rem;
    font-weight: 600;
}

.approval-changes td.before {
    color: #8a1c1c;
}

.approval-changes td.after {
    color: #14633a;
}

/* ---- document view (invoices, returns, payments) ---- */
.doc-kind,
.doc-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a6a7c;
}

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

@media (max-width: 991.98px) {
    .doc-summary {
        grid-template-columns: 1fr;
    }
}

.doc-card {
    padding: 1rem 1.25rem;
    border: 1px solid #eadfe9;
    border-radius: 0.75rem;
    background: #fff;
}

.doc-party {
    margin: 0.15rem 0 0.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
    color: #351337;
    overflow-wrap: anywhere;
}

.doc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.doc-facts,
.doc-breakdown,
.doc-totals {
    margin: 0;
}

    .doc-facts > div,
    .doc-breakdown > div,
    .doc-totals > div {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.3rem 0;
    }

    .doc-facts > div + div {
        border-top: 1px solid #f3ecf2;
    }

    .doc-facts dt,
    .doc-breakdown dt,
    .doc-totals dt {
        font-weight: 400;
        color: #6b5d6d;
    }

    .doc-facts dd,
    .doc-breakdown dd,
    .doc-totals dd {
        margin: 0;
        font-weight: 600;
        text-align: end;
        overflow-wrap: anywhere;
    }

.doc-money {
    background: #fbf5f9;
    border-color: #f1d5e4;
}

.doc-amount {
    margin: 0.1rem 0 0.4rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: #351337;
    font-variant-numeric: tabular-nums;
}

    .doc-amount span {
        font-size: 1rem;
        font-weight: 600;
        color: #7a6a7c;
    }

.doc-breakdown dd,
.doc-totals dd,
.doc-lines td.text-end {
    font-variant-numeric: tabular-nums;
}

.doc-words {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1d5e4;
    font-size: 0.9rem;
    color: #6b5d6d;
}

.doc-lines {
    border: 1px solid #eadfe9;
    border-radius: 0.75rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .doc-lines thead th {
        background: #fbf5f9;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #6b5d6d;
        border-bottom: 1px solid #eadfe9;
        white-space: nowrap;
    }

    .doc-lines td,
    .doc-lines th {
        padding: 0.6rem 0.9rem;
    }

    .doc-lines tbody tr:last-child td {
        border-bottom: 0;
    }

.doc-line-no {
    width: 2.5rem;
    color: #9a8c9b;
}

.doc-item-no {
    font-size: 0.8rem;
    color: #7a6a7c;
    text-decoration: none;
}

    .doc-item-no:hover {
        text-decoration: underline;
    }

.doc-totals {
    width: min(100%, 22rem);
    margin-inline-start: auto;
    padding: 0.5rem 1.25rem;
    border: 1px solid #eadfe9;
    border-radius: 0.75rem;
    background: #fff;
}

    .doc-totals .grand {
        margin-top: 0.25rem;
        padding-top: 0.55rem;
        border-top: 2px solid #351337;
        font-size: 1.1rem;
    }

    .doc-totals .grand dt,
    .doc-totals .grand dd {
        font-weight: 700;
        color: #351337;
    }

/* ---- record view (customers, items, ...) ---- */
.record-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0;
    max-width: 62rem;
    margin: 0;
    border: 1px solid #eadfe9;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

    .record-view > div {
        padding: 0.7rem 1.1rem;
        border-bottom: 1px solid #f3ecf2;
        border-inline-end: 1px solid #f3ecf2;
        margin: 0 -1px -1px 0;
    }

    .record-view dt {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #7a6a7c;
    }

    .record-view dd {
        margin: 0.1rem 0 0;
        font-weight: 600;
        color: #2a1a2b;
        overflow-wrap: anywhere;
        min-height: 1.5rem;
    }

    .record-view dd.empty {
        font-weight: 400;
        color: #b9adba;
    }

/* ---- promo codes ---- */
.promo-applied {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem 0.3rem 0.75rem;
    border: 1px solid #f1d5e4;
    border-radius: 0.375rem;
    background: #fbf5f9;
}

svg.promo-qr-thumb {
    width: 3.25rem;
    height: 3.25rem;
    display: block;
}

.promo-sheet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6mm;
    padding: 1rem;
}

.promo-card {
    box-sizing: border-box;
    width: 90mm;
    padding: 7mm 6mm 6mm;
    border: 0.4mm solid #351337;
    border-radius: 4mm;
    background: #fff;
    color: #000;
    text-align: center;
    break-inside: avoid;
}

    .promo-card .promo-logo {
        max-width: 46mm;
        max-height: 20mm;
    }

.promo-title {
    margin-top: 3mm;
    font-size: 12pt;
    font-weight: 600;
}

.promo-offer {
    margin: 1mm 0 2mm;
    font-size: 26pt;
    font-weight: 800;
    line-height: 1.1;
    color: #351337;
}

    .promo-offer span {
        font-size: 13pt;
    }

svg.promo-qr {
    display: block;
    width: 42mm;
    height: 42mm;
    margin: 0 auto;
}

.promo-code {
    margin-top: 1mm;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13pt;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.promo-terms {
    margin-top: 2mm;
    font-size: 8.5pt;
}

.promo-shop {
    margin-top: 2mm;
    font-size: 8.5pt;
    color: #444;
}

@media print {
    .promo-sheet {
        padding: 0;
    }
}

/* ---- stock item: details | picture + QR, suppliers underneath ---- */
.item-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .item-layout {
        grid-template-columns: 1fr;
    }
}

.item-layout .record-view {
    max-width: none;
}

.item-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .item-side .card {
        border-color: #eadfe9;
        border-radius: 0.75rem;
    }

    .item-side .item-qr-card {
        max-width: none;
    }

.item-picture {
    display: block;
    width: 100%;
    max-height: 26rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #fbf5f9;
}

.item-picture-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    aspect-ratio: 1 / 1;
    border: 2px dashed #eadfe9;
    border-radius: 0.5rem;
    color: #b9adba;
}

    .item-picture-empty .bi {
        font-size: 2.5rem;
    }

.item-suppliers {
    max-width: none;
}

/* ---- taking a photo ---- */
.photo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
    border-radius: 0.5rem;
    background: #1b0d1c;
    overflow: hidden;
}

    .photo-stage video,
    .photo-stage img {
        display: block;
        width: 100%;
        max-height: 65vh;
        object-fit: contain;
    }

.photo-stage-note {
    position: absolute;
    color: #fff;
    opacity: 0.8;
}

.item-picture-pending {
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    background: #fff4d6;
    color: #6b4e00;
}

img.approval-picture {
    width: 9rem;
    height: 9rem;
    object-fit: contain;
    border: 1px solid #eadfe9;
    border-radius: 0.5rem;
    background: #fbf5f9;
}

/* ---- activity ---- */
.activity-log td.activity-details {
    max-width: 32rem;
    overflow-wrap: anywhere;
    color: #5c4d5e;
}

/* ---- date boxes (dd-mm-yyyy) ---- */
.date-input {
    position: relative;
    flex-wrap: nowrap;
}

    .date-input input[type="text"] {
        min-width: 7.5rem;
    }

/* The browser's own picker opens from this input; it stays invisible under the calendar button. */
.date-input-native {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
}

/* ---- Online shop screens (staff side) ---- */
.shop-nav-badge { font-size: .7rem; margin-left: auto; }
.orders-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .orders-layout { grid-template-columns: 1fr; } }
.orders-list { border: 1px solid var(--bs-border-color); border-radius: .5rem; background: #fff; max-height: calc(100vh - 190px); overflow-y: auto; }
.orders-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--bs-border-color); color: inherit; text-decoration: none; }
.orders-row:hover { background: #f8f5f8; }
.orders-row.is-selected { background: #f1e8f1; border-left: 3px solid #351337; }
.chat-staff-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #adb5bd; }
.chat-staff-dot.is-online { background: #2fb36a; }
.staff-chat-messages { height: min(55vh, 520px); overflow-y: auto; padding: 14px; background: #faf8fa; display: flex; flex-direction: column; gap: 10px; }
.staff-chat-msg { max-width: 75%; display: flex; flex-direction: column; }
.staff-chat-msg.from-staff { align-self: flex-end; align-items: flex-end; }
.staff-chat-bubble { padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; }
.from-customer .staff-chat-bubble { background: #fff; border: 1px solid var(--bs-border-color); border-bottom-left-radius: 4px; }
.from-staff .staff-chat-bubble { background: #351337; color: #fff; border-bottom-right-radius: 4px; }

/* ---- Stock list: picture thumbnails, larger on hover ---- */
.data-grid th.grid-leading, .data-grid td.grid-leading { width: 56px; padding-top: 3px; padding-bottom: 3px; }
.grid-thumb { position: relative; display: inline-block; width: 40px; height: 40px; }
.grid-thumb > img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--bs-border-color); display: block; }
.grid-thumb-big { display: none; position: fixed; left: 0; top: 0; z-index: 1050;
    width: 220px; height: 220px; padding: 4px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.22); pointer-events: none; }
.grid-thumb-big img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.grid-thumb:hover .grid-thumb-big { display: block; }
.grid-thumb-none { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: #f6f3f6; color: #c9bfc8; }

/* ---- Email campaigns ---- */
.email-preview { width: 100%; height: 640px; border: 0; background: #f4eff3; border-radius: 0 0 .5rem .5rem; }
