/* Page template, group 04-analytics (owner approved modules-mockup/04-analytics, 21.10.2026). Only this group's pages; shared components live in design-v3-compact.css section 15. */

/* ---- shared by the pages of the group (the chips of the table card, the SKU place, panes) ---- */
/* a chip of the table row that opens a small panel: «Фильтры», «Тренд» (the same look as the filter of tables.js, .filter-btn + .table-panel) */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters { position:relative;display:inline-block;margin:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters > summary { list-style:none;cursor:pointer;user-select:none; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters > summary::-webkit-details-marker { display:none; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters > summary::after { content:" ▾"; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop { left:0;right:auto;top:42px;width:260px;padding:12px;display:flex;flex-direction:column;gap:8px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop .table-toggles { display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop .table-toggle { width:100%;justify-content:flex-start;text-align:left; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop--list a { display:block;padding:7px 10px;border-radius:8px;color:var(--text);text-decoration:none;font-weight:500; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop--list a:hover { background:var(--accent-soft); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop--list a.is-on { color:var(--primary);font-weight:700; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop form.fields { display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;border:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop form.fields label { display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-filters__pop form.fields :is(input,select) { width:100%;height:36px;min-height:0; }

/* the small label after a tile title («оценка сверху», «предварительно») */
html.look-flat.look-accent body.v2.v3[data-marketplace] .kpi__badge { margin-left:6px;font-size:11px;line-height:16px;padding:0 8px;vertical-align:middle; }

/* «История SKU»: the place of the product in the period line (components/_period.html, lead_template) */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-chip.tpl-sku { gap:8px;max-width:100%; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-sku label { margin:0;font-weight:600;font-size:14px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-sku input[type=text] { width:130px;height:34px;min-height:0;margin:0;padding:0 4px;border:0;background:transparent;font:inherit;font-weight:600;color:inherit;box-shadow:none; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-sku__name { color:var(--muted);max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-sku__x { color:var(--muted);text-decoration:none;font-size:18px;line-height:1;padding:0 2px; }

/* «Выкупы»: the list of cancels is a tab here - its own «Показать список отмен» line is not needed (the tab opens it) */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-pane-cancels .bo-cx { border:0;margin:0; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-pane-cancels .bo-cx__sum { display:none; }
html.look-flat.look-accent body.v2.v3[data-marketplace] [data-pane][hidden] { display:none; }
@media (max-width:520px) { html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-sku__name { display:none; } }

/* ---- «Отчёты Ozon / WB» (reports_common): the section switch above the period line, the colours of the cells (the portal's one red and one green, not the old #c8262b / #17834a) ---- */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-reptabs { margin:0 0 16px; }
/* the cells of the tables of the group (class tpl-04 on the card): the common rules of design-v3.css:47/49 and design-v3-compact.css:167 paint every number in the colour of the marketplace with !important;
   here one class more wins: red/green only where the picture has it (the change, the money that came or went, a non-buyout over the threshold), the rest is plain text */
html.look-flat.look-accent body.v2.v3[data-marketplace] .card.tpl-tablecard.tpl-04 table[data-table] :is(td[data-v3-signal],td[data-v3-signal] *,td[data-v3-number],td[data-v3-number] *,td.num,td.num *) { color:var(--text)!important;font-weight:400; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .card.tpl-tablecard.tpl-04 table[data-table] :is(td.rep-up,td.rep-out,td.rep-up *,td.rep-out *,.metric--red,.v--bad,.state--bad) { color:var(--v3-red)!important; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .card.tpl-tablecard.tpl-04 table[data-table] :is(td.rep-down,td.rep-in,td.rep-down *,td.rep-in *,.v--good,.state--ok) { color:var(--v3-green)!important; }
/* a good change of a cost is the colour of the marketplace in the reports (the ring and the chip say so), in the tables - green like every gain */
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-tablecard .rep-recon { margin:16px 20px; }

