/* Page template, group 02-products (owner approved modules-mockup/02-products, 21.10.2026). Only this group's pages; shared components live in design-v3-compact.css section 15. */
/* group 02 · prefix of the page template rules (as design-v3-compact.css, section 15) */
/* server-side «Статус: Все ▾» of the orders table: a chip of the colour of the marketplace; the page script puts it into the panel of the table right after the search (a row above the table without a script) */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-tablecard { position:relative; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-tablecard > .tpl-status { display:block; margin:12px 20px 0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-status > summary { box-sizing:border-box; height:36px; padding:0 12px; border:0; border-radius:10px; background:var(--accent-soft); color:var(--primary); font:600 14px/36px var(--font); white-space:nowrap; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-status .menu__item { display:block; width:100%; text-align:left; text-decoration:none; font-weight:500; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-status .menu__item.is-on { font-weight:700; color:var(--primary); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .table-tools > .tpl-status { margin:0; }
/* a page with no period (stocks FBS, связки): only the cabinet (WB), «Обновлено» and «Обновить» of the period line stay */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-noperiod .tpl-seg, html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-noperiod .tpl-period__dates { display:none; }
/* wrappers of the tables that live inside a tablecard in a block of their own (taken off sale: the table and the table folded by article): the card's panel margin must not push the table in */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-tablecard > .tpl-bare { margin:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-tablecard > .row.tpl-center { justify-content:center; margin-top:4px; }
/* «Действия ▾»: a form in the list (the rename of a связка) */
html.look-flat.look-accent body.v2.v3[data-marketplace] .menu__form { display:flex; flex-direction:column; gap:6px; margin:6px; min-width:260px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .menu__form label { margin:0; font-size:13px; color:var(--muted); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .menu__form input[type=text] { width:100%; }
/* the sorter: the date, the order, the tick and the button in one row */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-form-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:16px; margin-top:16px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-field { display:flex; flex-direction:column; gap:4px; min-width:200px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-field label { margin:0; font-size:13px; color:var(--muted); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-field :is(input,select) { height:40px; margin:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-check { display:inline-flex; align-items:center; gap:8px; margin:0 0 8px; font-weight:400; font-size:14px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-form-row > #submit-btn { margin-left:auto; }
/* the form of a composition (the pop-up of «Изменить состав») */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-end { justify-content:flex-end; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-wrap-row { flex-wrap:wrap; align-items:flex-end; gap:16px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-grow { flex:1; min-width:220px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-block { display:block; margin:10px 0 0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-gap { margin:12px 0 0; }
/* the page «Идёт сортировка» (was a <style> block of job.html) */
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; max-width: 640px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-bar { height: 18px; background: var(--surface); border-radius: 9px; overflow: hidden; margin: 14px 0 6px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-bar > div { height: 100%; width: 0; background: var(--primary); border-radius: 9px; transition: width .4s linear; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps { list-style: none; padding: 0; margin: 16px 0 0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps li { padding: 4px 0 4px 28px; position: relative; color: var(--muted); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps li::before { content: "○"; position: absolute; left: 4px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps li.now { color: var(--text); font-weight: 600; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps li.now::before { content: "●"; color: var(--primary); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps li.done { color: var(--v3-green); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-steps li.done::before { content: "✓"; color: var(--v3-green); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .job-meta { color: var(--muted); font-size: 13px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .groups-search-tools .groups-new { margin-left:auto; }
/* the list of связки: four cards in a row (two on a tablet, one on a phone), the name in one line in the colour of the marketplace; the same panel for Ozon and WB: search, the status, «Новая связка» on the right */
html.look-flat.look-accent body.v2.v3[data-marketplace] .group-cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:1100px) { html.look-flat.look-accent body.v2.v3[data-marketplace] .group-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { html.look-flat.look-accent body.v2.v3[data-marketplace] .group-cards { grid-template-columns:minmax(0,1fr); } }
html.look-flat.look-accent body.v2.v3[data-marketplace] .group-card__head h3 { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .group-card__head h3 a { color:var(--primary); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .groups-search-tools > .table-tabs { order:1; margin:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .groups-search-tools .groups-new { order:5; margin-left:auto; }

/* «Изменить остатки» таблицы «Остатки FBS» (stock_edit.js): столбец виден, пока идёт правка, даже если он скрыт в «Виде таблицы» */
table.stock-edit :is(th,td)[data-col="free"] { display:table-cell !important; white-space:nowrap; }
.stock-tools { display:inline-flex; align-items:center; gap:8px; }
.stock-toggle { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.stock-warehouse { height:40px; max-width:340px; }
table.stock-edit input.purchase-input.stock-input { width:84px; }
table.stock-edit input.purchase-input.stock-input.is-dirty { border-color:var(--primary) !important; color:var(--primary) !important; font-weight:600; }
table.stock-edit .stock-was { display:block; margin:0 0 2px; font-size:12px; line-height:14px; color:var(--v3-muted); }
table.stock-edit .stock-was[hidden] { display:none; }
.stock-list { width:100%; margin-bottom:12px; }
