/* Showroom: one phone-first column on top of style.css (its colour tokens, panels, inputs and buttons). */
.sr-main { max-width: 34rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
/* Tablets get a wider column; a wide screen puts the quick quote beside the scan and the product. */
@media (min-width: 720px) { .sr-main { max-width: 52rem; } }
@media (min-width: 1200px) {
  .sr-main { max-width: 88rem; }
  #pos-view-sell { display: grid; grid-template-columns: minmax(0, 1fr) 28rem; column-gap: 1.1rem; align-items: start; }
  #pos-view-sell > section { grid-column: 1; min-width: 0; }
  #pos-view-sell > section:last-child { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 7.2rem; max-height: calc(100vh - 7.6rem); overflow: auto; }
}
.showroom .panel { padding: 1.1rem 1.1rem; }
.showroom #sr-signin { margin: 2rem auto; }
.showroom .topbar { padding: 0 1rem; }
.topbar-user { display: flex; align-items: center; gap: .5rem; }
.quiet-link { color: var(--muted); font-size: .92rem; }
.sr-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.sr-row label { margin: .5rem 0; }
.sr-row > button { margin: .5rem 0; }
.sr-grow { flex: 1 1 12rem; }
.sr-choice { display: flex; align-items: center; font-weight: 500; }
.showroom button { min-height: 2.75rem; }

.sr-camera { position: relative; overflow: hidden; margin: .5rem 0; border-radius: var(--radius-sm); background: #000; aspect-ratio: 4 / 3; }
.sr-camera video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-aim { position: absolute; inset: 30% 12%; border: 3px solid rgb(255 255 255 / .85); border-radius: .5rem; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .25); }

/* Product and family head: a large photo (whole, on a neutral background, in a fixed 4:3 box so nothing jumps while it
   loads) above the text on a phone, beside it from 560px. */
.sr-product { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: start; }
@media (min-width: 560px) { .sr-product { grid-template-columns: minmax(14rem, 45%) minmax(0, 1fr); } }
.sr-product.sr-no-image { grid-template-columns: 1fr; }
.sr-product h3 { margin: .3rem 0 .2rem; overflow-wrap: anywhere; }
.sr-product-text { min-width: 0; }
.sr-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.sr-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showroom button.sr-photo { margin: 0; padding: 0; cursor: zoom-in; }
.showroom button.sr-photo:hover { background: var(--surface-2); border-color: var(--brand); }
.sr-zoom { position: absolute; right: .45rem; bottom: .45rem; padding: .15rem .6rem; border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff; font-size: .8rem; font-weight: 600; }
.sr-price { margin: .4rem 0 0; font-size: 1.8rem; font-weight: 700; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.sr-price small { font-size: .85rem; font-weight: 500; }
.sr-facts { margin: .6rem 0; padding: 0; list-style: none; font-size: .92rem; }
.sr-facts li { padding: .2rem 0; border-bottom: 1px solid var(--line); }
.sr-warn { color: #7a4b00; font-weight: 600; }
[data-theme="dark"] .sr-warn { color: #f3c978; }
.sr-add label { flex: 0 1 10rem; }
.sr-choices { margin: .5rem 0; padding: 0; list-style: none; }
.sr-choices li { border-bottom: 1px solid var(--line); }
.sr-choices button { width: 100%; margin: 0; text-align: left; border: 0; border-radius: 0; background: none; padding: .7rem .2rem; }
.sr-choices button:hover { background: var(--surface-2); }

.sr-lines { margin: .5rem 0; padding: 0; list-style: none; }
.sr-lines li { display: grid; grid-template-columns: 1fr 5.5rem auto; gap: .5rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sr-lines input { margin: 0; text-align: right; }
.sr-lines .sr-line-total { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 5rem; }
.sr-lines button { margin: 0; padding: .3rem .55rem; color: var(--danger); }
.sr-lines li.sr-line-section { display: block; padding: .7rem 0 .25rem; border-bottom: 0; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
/* The broken-pallet surcharge under its line (#128): a tick box with the line text, the amount on the right. */
.sr-surcharge { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .4rem .5rem; font-size: .9rem; }
.sr-surcharge .sr-surcharge-from { flex: 1 1 100%; margin: 0; text-align: left; font-size: .9rem; }
.sr-surcharge label { flex: 1 1 auto; display: flex; align-items: flex-start; gap: .4rem; margin: 0; font-weight: 400; min-width: 0; }
.sr-surcharge label input { flex: none; margin: .15rem 0 0; }
.sr-surcharge label span { min-width: 0; overflow-wrap: anywhere; }
.sr-surcharge-off .sr-line-total { color: var(--muted); text-decoration: line-through; }
/* Part-load freight per supplier: tick box and text, then the editable amount excl. VAT. */
.sr-freight-line label { display: flex; align-items: flex-start; gap: .4rem; margin: 0; font-weight: 400; min-width: 0; font-size: .9rem; }
.sr-freight-line label input { flex: none; margin: .15rem 0 0; }
.sr-freight-line label span { min-width: 0; overflow-wrap: anywhere; }
.sr-freight-line small { color: var(--muted); white-space: nowrap; }
/* Phones: the name gets its own row above quantity, amount and remove, so it is not squeezed. */
@media (max-width: 480px) {
  .sr-lines li { grid-template-columns: 5.5rem 1fr auto; }
  .sr-lines .sr-line-name, .sr-freight-line label { grid-column: 1 / -1; }
}
.sr-total { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; margin: .75rem 0; font-variant-numeric: tabular-nums; }
.sr-total dt, .sr-total dd { margin: 0; padding: .2rem 0; }
.sr-total dd { text-align: right; }
.sr-total .pos-discount-refused { color: var(--danger); font-weight: 600; }
.sr-total dt:last-of-type, .sr-total dd:last-of-type { padding-top: .4rem; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 700; }
.sr-client { margin: 1rem 0 .25rem; padding: .25rem .9rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sr-client legend { padding: 0 .3rem; font-weight: 600; }
.showroom textarea { font-family: var(--font); }

#sr-message { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 20; margin: 0 auto; max-width: 32rem; padding: .8rem 1rem; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
#sr-message:empty { display: none; }
/* Room under the page while the message shows, so the quote's total can scroll above it. */
body:has(#sr-message:not(:empty)) .sr-main { padding-bottom: 7rem; }
.sr-link, .sr-codes { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.sr-link h3, .sr-codes h3 { margin: 0 0 .4rem; font-size: 1rem; }
.sr-codes ul { margin: 0; padding: 0; list-style: none; }
.sr-codes li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.sr-codes button { margin: 0; flex: none; }
.sr-label-link { display: inline-block; margin-top: .6rem; }
/* Installed-app notices (#369): install hint, offline, updated. One short strip each, above the content. */
.sr-pwa:empty { display: none; }
.sr-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; margin: 0 0 .75rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.sr-notice p { margin: .25rem 0; flex: 1 1 14rem; }
.sr-notice .sr-row { align-items: center; }
.sr-notice .sr-row > button { margin: .15rem 0; min-height: 2.25rem; }
#sr-offline { border-color: #c98a00; background: #fff1d6; color: #5c3b00; }
[data-theme="dark"] #sr-offline { background: #3b2d10; color: #f3c978; border-color: #7a5a1a; }
.showroom .topbar h1 { gap: .5rem; }
.sr-brand { display: flex; flex: none; }
.sr-brand .optura-mark { height: 1.6rem; width: auto; }
.sr-brand .optura-mark.pos-hidden { display: none; }
/* The narrowest phones (320px): the title and the top bar's links must not run into each other. */
@media (max-width: 360px) {
  .showroom .topbar { gap: .5rem; padding: 0 .6rem; }
  .showroom .topbar h1 { gap: .35rem; font-size: .95rem; }
  .topbar-user { gap: .25rem; }
  .showroom .topbar-user .quiet-link, .showroom #sr-logout { font-size: .82rem; }
  .showroom #sr-logout { padding: .4rem .5rem; margin: 0; }
}

/* Family and category pages (plan 4.5.2): a table of sizes with a tick box and quantity each, and family cards. */
.sr-back { margin: 0 0 .6rem; padding-left: .2rem; }
.sr-back::before { content: "← "; }
.sr-sizes-wrap { margin: .75rem 0; overflow-x: auto; }
.sr-sizes { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sr-sizes caption { text-align: left; font-weight: 600; padding: .3rem 0; }
.sr-sizes th, .sr-sizes td { padding: .45rem .35rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sr-sizes thead th { font-size: .82rem; color: var(--muted); font-weight: 600; }
/* Words stay whole (no "KIE S"): a header wraps only between words, the article number never. */
.sr-sizes th, .sr-sizes td { overflow-wrap: normal; }
.sr-sizes .sr-sku { white-space: nowrap; }
.sr-sizes .sr-amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.sr-sizes .sr-tick input { width: 1.5rem; height: 1.5rem; margin: 0; }
.sr-sizes .sr-qty input { width: 4.5rem; margin: 0; text-align: right; }
.sr-sizes .sr-size { font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: normal; color: var(--text); background: none; }
/* Phones: each size is a small block (tick box, size and price, then SKU, EAN, unit, stock and quantity). */
@media (max-width: 640px) {
  .sr-sizes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sr-sizes tr { display: grid; grid-template-columns: 2.25rem 1fr auto; column-gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line);
    grid-template-areas: "tick size amount" "tick sku qty" "tick ean qty" "tick unit qty" "tick stock qty" "tick order order"; }
  .sr-sizes th, .sr-sizes td { display: block; padding: .05rem 0; border: 0; }
  .sr-sizes .sr-tick { grid-area: tick; align-self: center; }
  .sr-sizes .sr-size { grid-area: size; }
  .sr-sizes .sr-amount { grid-area: amount; text-align: right; }
  .sr-sizes .sr-sku { grid-area: sku; }
  .sr-sizes .sr-ean { grid-area: ean; }
  .sr-sizes .sr-unit { grid-area: unit; }
  .sr-sizes .sr-stock { grid-area: stock; }
  .sr-sizes .sr-order-cell { grid-area: order; min-width: 0; padding-top: .2rem; }
  .sr-sizes .sr-qty { grid-area: qty; align-self: end; justify-self: end; }
  .sr-sizes .sr-sku, .sr-sizes .sr-ean, .sr-sizes .sr-unit, .sr-sizes .sr-stock { font-size: .85rem; color: var(--muted); }
  .sr-sizes .sr-stock.sr-warn { color: #7a4b00; }
  [data-theme="dark"] .sr-sizes .sr-stock.sr-warn { color: #f3c978; }
  .sr-sizes td[data-label]::before { content: attr(data-label) " "; }
}
/* Family cards: the supplier's colour as a band on top and as a chip with its name. */
.sr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; margin: .5rem 0; }
.sr-card { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; margin: 0; padding: .6rem; text-align: left; font-weight: 400; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sr-card .sr-photo { margin-bottom: .3rem; }
.sr-card strong { font-weight: 600; overflow-wrap: anywhere; }
.sr-card span { font-size: .88rem; }

/* Colours (showroom.js colourClass): each supplier and each top product group gets one of ten, picked from its id.
   --sr-accent is for bands and borders, --sr-ink on --sr-tint is text with at least 7:1 contrast in both themes. The
   name is always written too, so the colour is never the only signal. */
.sr-c0 { --sr-accent: #2f6fb0; --sr-tint: #e4eefa; --sr-ink: #163d66; }
.sr-c1 { --sr-accent: #2e8540; --sr-tint: #e3f3e6; --sr-ink: #184a24; }
.sr-c2 { --sr-accent: #c25e00; --sr-tint: #fcecdb; --sr-ink: #663100; }
.sr-c3 { --sr-accent: #7b4bb7; --sr-tint: #efe7fa; --sr-ink: #43256b; }
.sr-c4 { --sr-accent: #0f8a8a; --sr-tint: #dff4f3; --sr-ink: #0a4a4a; }
.sr-c5 { --sr-accent: #c0394b; --sr-tint: #fbe5e8; --sr-ink: #6a1b27; }
.sr-c6 { --sr-accent: #9a7b00; --sr-tint: #f6efd3; --sr-ink: #4f3f00; }
.sr-c7 { --sr-accent: #3f51b5; --sr-tint: #e7e9f8; --sr-ink: #232e6b; }
.sr-c8 { --sr-accent: #8d5a3b; --sr-tint: #f3e9e2; --sr-ink: #4b2f1e; }
.sr-c9 { --sr-accent: #b0408f; --sr-tint: #f8e4f2; --sr-ink: #5f1d4b; }
.sr-c-none { --sr-accent: var(--line-strong); --sr-tint: var(--surface-2); --sr-ink: var(--text); }
[data-theme="dark"] .sr-c0 { --sr-accent: #79acdf; --sr-tint: #1a2a3c; --sr-ink: #cfe2f6; }
[data-theme="dark"] .sr-c1 { --sr-accent: #74c487; --sr-tint: #17301e; --sr-ink: #cdeed5; }
[data-theme="dark"] .sr-c2 { --sr-accent: #f0a35c; --sr-tint: #36260f; --sr-ink: #fbe0c4; }
[data-theme="dark"] .sr-c3 { --sr-accent: #b896e6; --sr-tint: #2a2140; --sr-ink: #e6d9f8; }
[data-theme="dark"] .sr-c4 { --sr-accent: #5cc8c6; --sr-tint: #12302f; --sr-ink: #c9f0ee; }
[data-theme="dark"] .sr-c5 { --sr-accent: #ee8a97; --sr-tint: #3a1b21; --sr-ink: #f9d5da; }
[data-theme="dark"] .sr-c6 { --sr-accent: #d9bb4a; --sr-tint: #322c12; --sr-ink: #f3e6b3; }
[data-theme="dark"] .sr-c7 { --sr-accent: #8e9ce6; --sr-tint: #1e2340; --sr-ink: #d9ddf8; }
[data-theme="dark"] .sr-c8 { --sr-accent: #cf9c7c; --sr-tint: #33251c; --sr-ink: #f1ddd0; }
[data-theme="dark"] .sr-c9 { --sr-accent: #e48ccb; --sr-tint: #38192f; --sr-ink: #f6d5ec; }
.sr-accent { border-left: .4rem solid var(--sr-accent); padding-left: .8rem; }
.sr-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .1rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .82rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sr-card .sr-chip { font-size: .78rem; }
/* A page heading in the colour of its top group or supplier; a group further down gets the lighter tint. */
.sr-band { margin: .2rem 0 .6rem; padding: 0; color: var(--text); overflow-wrap: anywhere; }

/* Browsing: application groups, suppliers and product groups as tiles in the house style, the same as the choice tiles
   in the rest of the app (Hans 9 Nov 2026, 0911-21: the coloured buttons "zijn enorm lelijk en niet passend bij de rest
   van de software"): one neutral surface, a thin line, the brand colour only for focus and hover. A breadcrumb trail
   above every page. */
.sr-browse-button { width: 100%; margin: .5rem 0 0; }
.sr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: .5rem; margin: .5rem 0 1rem; }
.showroom .sr-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; min-width: 0; min-height: 44px; margin: 0; padding: .6rem .75rem; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 400; box-shadow: none; }
.showroom .sr-tile:focus-visible { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
@media (hover: hover) { .showroom .sr-tile:hover { background: var(--surface); border-color: var(--brand-strong); } }
.showroom .sr-tile.sr-sub, .showroom .sr-tile.sr-sub:hover { background: var(--surface); }
.sr-tile strong { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.sr-tile span { font-size: .85rem; color: var(--muted); }
.sr-tile small { font-size: .78rem; overflow-wrap: anywhere; }
/* A supplier's brand colour (0911-22), set by the user in Leveranciers: a small square before its name, framed so a
   light colour still shows on a light tile and a dark one on a dark tile. */
.sr-supplier-brand { display: inline-block; flex: none; width: .8em; height: .8em; margin-right: .4em; border-radius: 2px; background: var(--brand); box-shadow: 0 0 0 1px var(--line); vertical-align: -.05em; }
.sr-supplier-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .6rem; }
.sr-supplier-chips .chip { min-height: 40px; }
/* Not the main app's sticky screen menu (style.css nav): a plain line of steps. */
.showroom .sr-crumbs { position: static; display: block; margin: 0; padding: 0; overflow: visible; background: none; }
.sr-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .25rem; margin: 0 0 .5rem; padding: 0; list-style: none; font-size: .9rem; }
.sr-crumbs li { min-width: 0; overflow-wrap: anywhere; }
.sr-crumbs li + li::before { content: "›"; margin-right: .25rem; color: var(--muted); }
.showroom .sr-crumb { min-height: 2rem; margin: 0; padding: .2rem .35rem; border: 0; background: none; color: var(--brand-strong); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.showroom .sr-crumb:hover { background: var(--surface-2); }
.sr-crumbs [aria-current] { padding: .2rem .35rem; font-weight: 600; }

/* Ordering from the supplier: per supplier the price list's order unit, pallet and layer, pieces per m², weight and
   surcharge rule; the hint under a quantity says what that quantity means in pieces, packs and pallets. */
.sr-order { margin: 1rem 0 .5rem; }
.sr-order h4 { margin: 0 0 .5rem; }
.sr-order-block { margin: .5rem 0; padding: .55rem .8rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.sr-order-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0 0 .35rem; font-size: .9rem; }
.sr-order-facts { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: .15rem 1rem; margin: 0; font-size: .92rem; }
.sr-order-facts dt { color: var(--muted); overflow-wrap: anywhere; }
.sr-order-facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sr-order-block .sr-warn { margin: .35rem 0 0; }
.sr-order-hint { margin: .25rem 0 .5rem; padding: .4rem .7rem; border-left: .25rem solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--info-bg); font-size: .9rem; overflow-wrap: anywhere; }
.sr-order-hint p { margin: .1rem 0; }
.sr-sizes .sr-order-cell { font-size: .85rem; }
@media (min-width: 641px) { .sr-sizes .sr-order-cell { min-width: 9rem; } }

/* The photo at full size (dialog). */
#sr-lightbox { width: min(64rem, 96vw); max-width: 96vw; max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgb(0 0 0 / .35); }
#sr-lightbox::backdrop { background: rgb(0 0 0 / .72); }
.sr-lightbox-frame { padding: .5rem .8rem .9rem; }
.sr-lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sr-lightbox-head h2 { min-width: 0; margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.showroom #sr-lightbox-close { flex: none; min-width: 2.75rem; margin: 0; font-size: 1.2rem; color: var(--text); }
#sr-lightbox-img { display: block; width: 100%; height: auto; max-height: calc(94vh - 5rem); margin-top: .4rem; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-2); }

/* --- The POS as its own app (Hans, 27 Oct 2026): brand bar, two views, concepts, menu, tour --------------------- */
/* The top bar in the company's accent once one is set (pos-brand.js sets --pos-bar-bg/--pos-bar-fg on <html>);
   without one it stays Optura's spruce bar. Its controls read in the bar's own foreground colour. */
.pos-bar { --text: var(--pos-bar-fg, #f4f6f1); --muted: color-mix(in srgb, var(--pos-bar-fg, #f4f6f1) 78%, transparent);
  background: var(--pos-bar-bg, var(--spruce)); color: var(--pos-bar-fg, #f4f6f1); border-bottom-color: var(--pos-accent, var(--water)); }
:root[data-theme="dark"] .pos-bar { background: var(--pos-bar-bg, #0a2520); }
.pos-bar .quiet-link { color: var(--text); }
.pos-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pos-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-sub { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
#pos-brand-logo { display: block; height: 2.1rem; max-width: 9rem; width: auto; object-fit: contain; border-radius: .25rem; background: #fff; padding: .15rem .3rem; }
/* The account button: the person's initial in a round chip. */
.showroom .pos-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; min-height: 2.5rem; height: 2.5rem; margin: 0; padding: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--pos-bar-fg, #f4f6f1) 16%, transparent); border: 1px solid color-mix(in srgb, var(--pos-bar-fg, #f4f6f1) 35%, transparent); color: var(--pos-bar-fg, #f4f6f1); font-weight: 700; font-size: 1rem; }
.showroom .pos-avatar:hover { background: color-mix(in srgb, var(--pos-bar-fg, #f4f6f1) 26%, transparent); }

/* The two views: a segmented row under the bar, sticky so it stays reachable while the quote grows. */
.pos-tabs { position: sticky; top: 3.5rem; z-index: 9; display: flex; gap: .35rem; max-width: 34rem; margin: 0 auto; padding: .6rem 1rem 0; background: var(--bg); }
@media (min-width: 720px) { .pos-tabs { max-width: 52rem; } }
@media (min-width: 1200px) { .pos-tabs { max-width: 88rem; } }
.pos-tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.6rem; height: .6rem; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.showroom .pos-tabs button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .55rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.showroom .pos-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (max-width: 479px) {  /* three tabs (Configurators, D98 point 5): each as wide as its own name, so they stay on one line from 360 px */
  .pos-tabs { gap: .25rem; padding-left: .75rem; padding-right: .75rem; }
  .showroom .pos-tabs button { flex: 1 1 auto; padding: .5rem .6rem; font-size: .9rem; }
}
.pos-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--pollen); color: var(--spruce); font-size: .78rem; font-weight: 700; }
.pos-view > .panel:first-child { margin-top: .75rem; }

/* Sign-in: the company's name (or the Optura lockup) above the form, the welcome line under the heading. */
.pos-signin { text-align: left; }
.pos-signin-brand { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; margin: 0 0 .9rem; font: 800 1.25rem/1.15 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.pos-signin-brand img { height: 2.75rem; max-width: 12rem; width: auto; object-fit: contain; }
.pos-signin-brand .optura-mark { height: 2rem; width: auto; }
.pos-signin-brand small { display: block; font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }

/* The quote in the making: heading with its state, the actions as one block. */
.pos-quote-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; }
.pos-quote-head h2 { margin: 0; }
.pos-state { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pos-state::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
.pos-state-dirty { color: #7a4b00; border-color: #e0b35a; }
.pos-state-dirty::before { background: #e0a000; }
[data-theme="dark"] .pos-state-dirty { color: #f3c978; border-color: #7a5a1a; }
.pos-state-sent { color: var(--brand-strong); border-color: var(--brand); }
.pos-state-sent::before { background: var(--brand); }
.pos-note { margin: .2rem 0 .4rem; font-size: .88rem; }
.pos-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 .25rem; }
.pos-actions > button { margin: 0; min-height: 3rem; }
.pos-actions > #sr-save, .pos-actions > #sr-send { grid-column: 1 / -1; }
.showroom .pos-send { border-color: var(--brand); color: var(--brand-strong); font-weight: 650; }
.showroom .pos-send:hover { background: var(--brand-soft); }
@media (min-width: 560px) {
  .pos-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pos-actions > #sr-save { grid-column: span 2; }
  .pos-actions > #sr-send { grid-column: span 2; }
}
#sr-saved { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid var(--brand); }
#sr-saved > button { margin: 0; }

/* The concept list: one card per concept, the open ones first. */
.pos-concepts { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
@media (min-width: 900px) { .pos-concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .pos-concepts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pos-concept { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem; border: 1px solid var(--line); border-left: .4rem solid var(--brand); border-radius: var(--radius-sm); background: var(--surface-2); }
.pos-concept-sent { border-left-color: var(--line-strong); }
.pos-concept-current { box-shadow: 0 0 0 2px var(--brand-soft); }
.pos-concept-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.pos-concept-head strong { min-width: 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.pos-concept-total { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-concept-facts { margin: 0; font-size: .88rem; }
.pos-buy-price { margin: 0; padding: .35rem .6rem; border-radius: var(--radius-sm); background: var(--brand-soft); font-size: .88rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pos-concept .pos-state { align-self: flex-start; }
.pos-concept-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.pos-concept-actions > button { margin: 0; min-height: 2.5rem; padding: .4rem .8rem; }
.showroom .pos-remove { color: var(--danger); margin-left: auto; }
.pos-empty-state { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.5rem 1rem; text-align: center; color: var(--muted); }
.pos-empty-state p { max-width: 28rem; margin: 0; }
.showroom .pos-empty-state button { margin: .25rem 0 0; }

/* Dialogs: the account menu and the tour. */
.pos-dialog { width: min(26rem, 94vw); padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 12px 40px rgb(0 0 0 / .35); }
.pos-dialog::backdrop { background: rgb(0 0 0 / .55); }
.pos-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pos-dialog-head h2 { margin: 0; font-size: 1.1rem; }
.showroom .pos-dialog-head button { flex: none; min-width: 2.75rem; margin: 0; font-size: 1.1rem; color: var(--text); }
.pos-who { margin: .6rem 0 .2rem; }
.pos-theme { margin: .8rem 0; }
.pos-theme-label { display: block; margin: 0 0 .3rem; font-weight: 500; font-size: .93rem; }
.showroom .theme-switch { display: flex; gap: 0; }
.showroom .theme-switch button { flex: 1 1 0; margin: 0; border-radius: 0; min-height: 2.75rem; }
.showroom .theme-switch button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.showroom .theme-switch button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.showroom .theme-switch button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pos-menu-links { display: grid; gap: .5rem; margin-top: 1rem; }
.pos-menu-links > button, .pos-link-button { width: 100%; margin: 0; }
.pos-link-button { display: block; padding: .6rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-align: center; text-decoration: none; font-weight: 550; color: var(--text); background: var(--surface); }
.pos-link-button:hover { background: var(--surface-2); border-color: var(--brand); }
.pos-tour { text-align: center; }
.pos-tour-art { display: flex; justify-content: center; margin: .25rem 0 .5rem; color: var(--text); }
.pos-tour-art svg { width: min(16rem, 70vw); height: auto; }
.pos-tour h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.pos-tour p { margin: 0 auto; max-width: 22rem; color: var(--muted); }
.pos-tour-dots { display: flex; justify-content: center; gap: .4rem; margin: 1rem 0 .25rem; }
.pos-tour-dots span { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
.pos-tour-dots span.on { background: var(--brand); }
.pos-tour-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: .75rem; }
.showroom .pos-tour-actions button { margin: 0; flex: 1 1 0; }
/* A reseller's own business details and their own quotes and invoices. */
.pos-business { width: min(36rem, 94vw); max-height: 92vh; overflow-y: auto; }
.pos-business label { display: block; }
.showroom .pos-business .pos-dialog-head button { width: auto; }
.pos-business input:not([type=color]):not([type=file]) { width: 100%; box-sizing: border-box; }
.pos-business .sr-row > label { flex: 1 1 8rem; min-width: 0; }
.pos-business input[type=color] { width: 3.5rem; height: 2.75rem; padding: .15rem; }
.pos-business input[type=file] { max-width: 100%; }
.pos-form-error { margin: .5rem 0 0; color: var(--danger); font-weight: 550; }
.pos-empty-line { margin: .5rem 0 0; }
.pos-removal { margin: .5rem 0 0; padding: .6rem .8rem; border: 1px solid var(--danger); border-radius: var(--radius-sm); color: var(--text); font-weight: 550; }
.showroom #pos-own-archive { margin: .75rem 0 0; }
.pos-own-list { margin: .5rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.pos-own { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.pos-own-main { flex: 1 1 12rem; min-width: 0; }
.pos-own-main strong { overflow-wrap: anywhere; }
.pos-own-main .muted { display: block; font-size: .88rem; }
.pos-own-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.showroom .pos-own > button { margin: 0; min-height: 2.5rem; padding: .4rem .8rem; }
#pos-print-frame { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Narrow phones: the title keeps room next to the account chip; the full-app link lives in the menu once signed in. */
@media (max-width: 360px) { .pos-sub { display: none; } #pos-brand-logo { max-width: 6rem; } }

/* Discount on the whole quote, within the person's allowance: marked when above it, the server refuses it too. */
#pos-discount-wrap { display: grid; gap: .25rem; }
#sr-discount { width: 7rem; }
#sr-discount[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 2px rgba(179, 38, 30, .25); }
/* Required recipient details (address, phone, email) are marked, as the note above the form says. */
.sr-client label:has(> input[required]) > span::after { content: " *"; color: var(--accent, #1f5fa8); font-weight: 600; }

/* Configurators tab (pos-configurators.js): one tile per configurator; Leidingen then asks the kind. */
.pos-cfg-kinds { margin-top: 1.1rem; }
.pos-cfg-kinds h3 { margin: 0 0 .5rem; font-size: 1rem; }

/* Verify 27 Nov 2026: the line amount says it is excl. btw (the tile above shows incl. btw). */
.sr-line-total small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
