/* Neoflex web shop. A client's colour comes from /brand.css (--accent, --accent-dark, --accent-ink, --accent-soft). */
:root {
    --accent: #0f7b6c;
    --accent-dark: #0b5e52;
    --accent-ink: #ffffff;
    --accent-soft: #0f7b6c1a;
    --ink: #1d2430;
    --muted: #667085;
    --line: #e4e7ec;
    --bg: #f6f7f9;
    --card: #ffffff;
    --promo: #c4320a;
    --fav: #e5243b;
    --ok-bg: #ecfdf3;
    --ok-ink: #05603a;
    --err-bg: #fef3f2;
    --err-ink: #b42318;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px; }
main.plain { display: flex; align-items: center; justify-content: center; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
a { color: var(--accent-dark); }
h1 { font-size: 24px; margin: 0 0 16px; }
h1 small { font-size: 14px; font-weight: 400; color: var(--muted); }
h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { flex: none; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1480px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { height: 44px; max-width: 200px; object-fit: contain; }
.hsearch { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px;
           background: var(--bg); border: 1px solid var(--line); border-radius: 21px; color: var(--muted); }
.hsearch input { flex: 1; border: 0; background: transparent; padding: 0; height: 100%; min-width: 0; }
.hsearch input:focus { outline: none; }
.hsearch:focus-within { border-color: var(--accent); background: #fff; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.mainnav a:hover { background: var(--bg); }
.mainnav a.on { color: var(--accent-dark); background: var(--accent-soft); }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tools form { margin: 0; }
.who { font-size: 14px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 4px; }
.icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
        border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.icon:hover { background: var(--bg); }
.icon.on { color: var(--accent-dark); background: var(--accent-soft); }
.icon.danger { color: var(--err-ink); }
.badge { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
         background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.guest-top { display: flex; justify-content: flex-end; padding: 8px 24px; background: transparent; border-bottom: 0; position: static; }

/* language picker and small menus */
details { position: relative; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.langs > summary { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.langs > summary:hover { background: var(--bg); }
.langs-menu, .tpl-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 6px;
                         background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
                         display: flex; flex-direction: column; gap: 2px; }
.langs-menu button, .tpl-list button { text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; color: var(--ink); }
.langs-menu button:hover, .tpl-list button:hover { background: var(--bg); }
.langs-menu button.on { color: var(--accent-dark); font-weight: 600; background: var(--accent-soft); }

/* ---- buttons and fields ---- */
button { font: inherit; cursor: pointer; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
           border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.primary:hover { background: var(--accent-dark); }
.primary:disabled { opacity: .6; }
.block { display: flex; width: 100%; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px;
          background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; }
.button:hover { background: var(--bg); }
.button.danger { background: var(--err-ink); border-color: var(--err-ink); color: #fff; }
.button.danger:hover { background: #912018; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; }
input, textarea, select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.box { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* messages */
.ok, .error, .notice { padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.ok { background: var(--ok-bg); color: var(--ok-ink); }
.error { background: var(--err-bg); color: var(--err-ink); }
.error.small { background: none; padding: 0; margin: 4px 0 0; font-size: 13px; }
.notice { background: #fffaeb; color: #93370d; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 10px;
         background: #1d2430; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(16, 24, 40, .25); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--err-ink); }

/* ---- login ---- */
.login { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.login-logo img { max-width: 320px; max-height: 120px; object-fit: contain; }
.login-logo .wordmark { font-size: 28px; font-weight: 800; color: var(--accent-dark); }
.login-card { width: 100%; background: var(--card); padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { text-align: center; margin-bottom: 6px; }
.login-card > p.muted { text-align: center; margin: 0 0 20px; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-card label { color: var(--ink); font-weight: 600; }
.login-card input { font-weight: 400; }
.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 46px; }
.pw .icon { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.login-row a { color: var(--ink); font-weight: 600; text-decoration: none; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--accent-dark); font-weight: 500; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---- catalogue ---- */
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.shop.no-groups { grid-template-columns: minmax(0, 1fr) 340px; }
.shop.no-panel { grid-template-columns: 240px minmax(0, 1fr); }
.shop.no-groups.no-panel { grid-template-columns: minmax(0, 1fr); }
.groups { background: var(--card); border-radius: var(--radius); padding: 10px; position: sticky; top: 88px; max-height: calc(100vh - 108px);
          overflow: auto; box-shadow: var(--shadow); }
.group { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.group.main { font-weight: 600; }
.group.sub { padding-left: 22px; color: var(--muted); }
.group small { color: var(--muted); font-weight: 400; }
.group:hover { background: var(--bg); }
.group.on { background: var(--accent-soft); color: var(--accent-dark); }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sortform { margin: 0; display: flex; gap: 6px; }
.sortform select { padding: 7px 10px; min-width: 170px; }
.toolbar .count { margin-right: auto; }
.views { display: flex; gap: 2px; }
.views .icon { width: 36px; height: 36px; color: var(--muted); border: 1px solid transparent; }
.views .icon.on { color: var(--accent-ink); background: var(--accent); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: #eceef2; border-radius: 10px; }
.tabs a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.count { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 4px 16px rgba(16, 24, 40, .08); }
.photo { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; padding: 14px 44px 8px; border-radius: var(--radius) var(--radius) 0 0; background: #fff; }
.photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nophoto { color: var(--muted); font-size: 13px; }
.card-tools { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.card-tools form { margin: 0; }
.card-tools .icon { width: 36px; height: 36px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); color: var(--muted); }
.card-tools .icon:hover { color: var(--ink); }
.icon.fav.on { color: var(--fav); background: #fff; }
.icon.fav.on .ico { fill: var(--fav); }
.tpl > summary.icon { list-style: none; }
.tpl-menu { min-width: 220px; }
.tpl-title { padding: 6px 10px 8px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tpl-list { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; }
.tpl-new { display: flex; gap: 4px; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.tpl-new input { flex: 1; min-width: 0; padding: 7px 9px; font-size: 14px; }
.tpl-new .icon { width: 36px; height: 36px; background: var(--accent); color: var(--accent-ink); }
.info { padding: 6px 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 15px; margin: 0; line-height: 1.35; font-weight: 600; min-height: 2.7em;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* what's already in the cart: a small badge on the photo */
.incart-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px;
                border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.incart-badge .ico { width: 15px; height: 15px; }
.price { font-size: 20px; font-weight: 700; }
.price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.price s { color: var(--muted); font-weight: 400; font-size: 14px; }
.price .promo { color: var(--promo); }
.price.none { font-size: 14px; font-weight: 400; color: var(--muted); }
.incart { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 8px; border-radius: 10px; }
.add { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; margin: 0; }
.stepper { display: grid; grid-template-columns: 40px 1fr 40px; gap: 6px; }
.stepper button { height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--bg); }
.stepper input { text-align: center; min-width: 0; height: 40px; }
.unit { font-size: 13px; color: var(--muted); }
.grid.v-large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.v-large .photo { height: 300px; }
.grid.v-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.grid.v-small .photo { height: 140px; padding: 10px 36px 6px; }
.grid.v-small .card-tools .icon { width: 30px; height: 30px; }
.grid.v-small .info { padding: 4px 10px 8px; }
.grid.v-small h3 { font-size: 13px; }
.grid.v-small .price { font-size: 16px; }
.grid.v-small .add { padding: 0 10px 10px; }
.grid.v-small .stepper { grid-template-columns: 30px 1fr 30px; }
.grid.v-small .stepper button, .grid.v-small .stepper input { height: 34px; }
.grid.v-small .add .primary span { display: none; }
/* list: one product per line */
.grid.v-list { grid-template-columns: 1fr; gap: 8px; }
.grid.v-list .card { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; }
.grid.v-list .photo { width: 72px; height: 72px; padding: 0; flex: none; }
.grid.v-list .incart-badge { left: auto; right: -6px; top: -6px; padding: 2px 6px; font-size: 11px; }
.grid.v-list .incart-badge .ico { display: none; }
.grid.v-list .info { flex-direction: row; align-items: center; gap: 16px; padding: 0; }
.grid.v-list h3 { flex: 1; min-height: 0; -webkit-line-clamp: 1; }
.grid.v-list .card-tools { position: static; flex-direction: row; order: 3; }
.grid.v-list .card-tools .icon { box-shadow: none; }
.grid.v-list .add { order: 4; flex-direction: row; padding: 0; width: 290px; }
.grid.v-list .add .stepper { grid-template-columns: 36px 64px 36px; }
.grid.v-list .add .primary { width: auto; flex: 1; }
.empty { padding: 24px 0; }
.pages { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pages a { padding: 6px 11px; border-radius: 6px; background: var(--card); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pages a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* the cart panel next to the catalogue */
.side { position: sticky; top: 88px; }
.cartpanel { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; max-height: calc(100vh - 108px);
             display: flex; flex-direction: column; }
.cartpanel h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.plines { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.plines li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pname { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.prow { display: flex; align-items: center; gap: 8px; }
.prow form { margin: 0; }
.pstep { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.pstep button { width: 32px; height: 36px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.pq { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 2px 0; }
.pq input { width: 52px; padding: 3px 2px; border: 0; text-align: center; font-weight: 700; }
.pq small { font-size: 11px; color: var(--muted); }
.pamount { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.prow .icon { width: 34px; height: 34px; }
.ptotals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ptotals dt { color: var(--muted); }
.ptotals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ptotals .grand { font-weight: 700; font-size: 17px; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }

/* ---- cart page ---- */
.cartpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main summary" "main order"; gap: 16px 24px; align-items: start; }
.cartpage.is-empty { grid-template-columns: 1fr; grid-template-areas: "main"; }
.cartmain { grid-area: main; }
.summary { grid-area: summary; }
.orderform { grid-area: order; display: flex; flex-direction: column; gap: 14px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cart-head h1, .cart-head h2 { margin: 0; }
.cart-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart-actions form { margin: 0; }
.savetpl > summary { list-style: none; }
.savetpl .tpl-menu { flex-direction: row; padding: 8px; gap: 6px; min-width: 300px; }
.savetpl .tpl-menu input { flex: 1; min-width: 0; }
.clines { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cline { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 120px 40px; gap: 16px; align-items: center; background: var(--card);
         border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cline form { margin: 0; }
.cphoto { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.cphoto img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cname { font-weight: 600; margin-bottom: 4px; }
.cmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.code { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cstep { grid-template-columns: 38px 64px 38px; align-items: center; }
.cstep .unit { grid-column: 1 / -1; text-align: center; font-size: 12px; }
.camount { text-align: right; display: flex; flex-direction: column; }
.camount b { font-size: 16px; }
.camount small { font-size: 12px; color: var(--muted); }

/* ---- templates ---- */
.tplpage { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.tpltabs { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.tpltabs a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.tpltabs a small { color: var(--muted); }
.tpltabs a:hover { background: var(--bg); }
.tpltabs a.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.tplpage .cline { grid-template-columns: 72px minmax(0, 1fr) auto 110px 40px; box-shadow: none; }

/* ---- scanning ---- */
.scanpage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.scanmain > .box { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.scanfind { margin: 0; }
.scanrow { display: flex; gap: 8px; }
.scanrow input { flex: 1; min-width: 0; font-size: 20px; letter-spacing: .04em; }
.camera { position: relative; border-radius: 10px; overflow: hidden; background: #000; max-height: 320px; }
.camera video { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.camera .aim { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.scanhit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.scanhit .cinfo { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.scanhit .cphoto { width: 96px; height: 96px; }
.scanadd { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(150px, 220px) auto 1fr; gap: 10px; align-items: center; margin: 0; }
.scanadd .stepper input { font-size: 20px; }

/* ---- tables (orders) ---- */
.lines { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lines th, .lines td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
.lines th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfc; }
.lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines tfoot td { border-bottom: 0; }
.lines tr.grand td { font-weight: 700; font-size: 16px; }
.status { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.status.new { background: #eff8ff; color: #175cd3; }
.status.done { background: var(--ok-bg); color: var(--ok-ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* ---- narrower screens ---- */
@media (max-width: 1280px) {
    .shop { grid-template-columns: 220px minmax(0, 1fr); }
    .shop.no-groups, .shop.no-groups.no-panel { grid-template-columns: minmax(0, 1fr); }
    .shop > .side { display: none; }
    .mainnav a { padding: 8px 8px; }
}
@media (max-width: 1100px) {
    .who { display: none; }
    .cartpage { grid-template-columns: 1fr; grid-template-areas: "main" "summary" "order"; }
}
@media (max-width: 900px) {
    .top-inner { flex-wrap: wrap; justify-content: center; height: auto; padding: 10px 14px; gap: 8px 12px; }
    .brand img { height: 36px; }
    .hsearch { order: 3; flex: 1 0 100%; max-width: none; height: 40px; }
    .mainnav { order: 4; max-width: 100%; overflow-x: auto; }
    .tools { margin-left: 0; }
    .toolbar .count { order: 5; flex: 1 0 100%; }
    .grid.v-list .card { flex-wrap: wrap; }
    .grid.v-list .info { flex: 1 1 calc(100% - 90px); flex-wrap: wrap; gap: 4px 12px; }
    .grid.v-list .card-tools { order: 2; }
    .grid.v-list .add { width: 100%; }
    main { padding: 14px; }
    .shop, .shop.no-groups, .shop.no-panel, .shop.no-groups.no-panel { grid-template-columns: 1fr; gap: 12px; }
    /* the groups become one scrolling row of chips above the products */
    .groups { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
    .group { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 6px 12px; }
    .group.sub { padding-left: 12px; }
    .group small { display: none; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .photo, .grid.v-medium .photo { height: 150px; padding: 10px 40px 6px; }
    .grid.v-large { grid-template-columns: 1fr; }
    .info { padding: 4px 12px 8px; }
    .add { padding: 0 12px 12px; }
    .stepper { grid-template-columns: 36px 1fr 36px; }
    .stepper button, .stepper input { height: 38px; }
    .add .primary span { display: none; }
    .cline, .tplpage .cline { grid-template-columns: 56px minmax(0, 1fr) 40px; }
    .cline .cphoto { width: 56px; height: 56px; }
    .cline .cstep { grid-column: 1 / 3; justify-self: start; }
    .cline .camount { grid-column: 2 / 3; text-align: left; }
    .cline > form:last-child { grid-row: 1; grid-column: 3; }
    .tplpage, .scanpage { grid-template-columns: 1fr; }
    .tpltabs { flex-direction: row; overflow-x: auto; }
    .scanpage > .side { position: static; }
    .scanadd { grid-template-columns: 1fr auto; }
    .scanadd .primary { grid-column: 1 / -1; }
}

/* ---- test orders, and the bar an admin sees while looking at the shop as a customer ---- */
.status.test { background: #f4ebff; color: #6941c6; }
.adminbar { background: #2b2140; color: #f4ebff; font-size: 14px; }
.adminbar .top-inner { justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; height: auto; min-height: 40px; padding: 8px 24px; }
.adminbar a { color: #fff; font-weight: 600; }
.adminbar-links { display: flex; gap: 16px; white-space: nowrap; }

/* ProMax's stock: customers see only whether it is in stock (the number is for the admin) */
.nostock { display: inline-block; font-size: 12px; font-weight: 600; color: #b42318; background: #fef3f2; border-radius: 10px; padding: 1px 8px; }
