/* HALO design system. Light theme in the spirit of Ozon Seller.
   All colours/sizes are tokens: a marketplace theme (e.g. Wildberries) only overrides them. */
@font-face {
  font-family: Onest;
  src: url("fonts/Onest-Ozon.dcb5dbfb1dd8.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --font: Onest, "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --primary: #005bff;
  --primary-hover: #0049cf;
  --link: #005bff;
  --text: #000000;
  --muted: #737373;
  --bg: #ffffff;
  --panel: #f5f7fa;          /* light tinted section background */
  --line: #e4e8ee;
  --btn2-bg: rgba(55, 175, 255, .1);
  --btn2-hover: rgba(55, 175, 255, .2);
  --ok-bg: #e8f7ee;     --ok-fg: #009900;     --ok-line: #b9e4c9;
  --warn-bg: #fdebeb;   --warn-fg: #ff0000;   --warn-line: #f4c2be;
  --err-bg: #fdebeb;    --err-fg: #ff0000;    --err-line: #f4c2be;
  --radius-sm: 8px; --radius: 16px; --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 26, 52, .04), 0 4px 16px rgba(0, 26, 52, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 19px; margin: 0 0 12px; font-weight: 650; }
h3 { font-size: 16px; margin: 18px 0 6px; font-weight: 650; }
p { margin: 0 0 10px; }
strong { font-weight: 650; }

/* ---- channel strip (alpha only) ---- */
.channel-strip { background: #5b2cc9; color: #fff; text-align: center; font-size: 13px; padding: 5px 12px; }

/* ---- top bar ---- */
.topbar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.topbar__in { max-width: 1264px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.logo:hover { text-decoration: none; }
.mainnav { display: flex; gap: 2px; align-self: stretch; }
.mainnav a { display: flex; align-items: center; padding: 0 14px; color: var(--text); font-size: 15px; border-bottom: 2px solid transparent; }
.mainnav a:hover { color: var(--primary); text-decoration: none; }
.mainnav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topbar__right .who { color: var(--muted); }
.company-switch select { height: 32px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-size: 13px; max-width: 180px; }
.logout-form { display: inline; margin: 0; }
.logout-form button { background: none; color: var(--link); border: 0; padding: 0; margin: 0; height: auto; font: inherit; font-weight: 500; cursor: pointer; }
.logout-form button:hover { background: none; text-decoration: underline; }

/* ---- sub-navigation: tabs under the top bar (sub-pages of a section) ---- */
.subnav { border-bottom: 1px solid var(--line); background: #fff; }
.subnav__in { max-width: 1264px; margin: 0 auto; padding: 0 24px; display: flex; gap: 6px; }
.subnav a { padding: 12px 14px 10px; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--primary); text-decoration: none; }
.subnav a.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
/* Same look as .subnav, but scoped inside one page (e.g. /profile/'s own tabs) instead of the
   full-bleed bar under the header - a page with a few short sub-pages of its own, not a whole
   menu section (owner's rule 2026-09-28: no giant single-page settings screens). */
.profile-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.profile-tabs a { padding: 12px 14px 10px; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.profile-tabs a:hover { color: var(--primary); text-decoration: none; }
.profile-tabs a.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.topbar__right a.active-link { font-weight: 600; }

/* ---- page ---- */
.page { max-width: 1264px; margin: 0 auto; padding: 28px 24px 56px; }
.page--narrow { max-width: 560px; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead .sub { color: var(--muted); font-size: 14px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 16px 24px; max-width: 1264px; margin: 0 auto; }

/* ---- cards and panels ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--2, .grid--3 { grid-template-columns: minmax(0,1fr); } .topbar__in { gap: 12px; padding: 0 14px; } .page { padding: 18px 14px 40px; } }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.stat { font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 22px; color: var(--text); font-weight: 700; margin-top: 2px; }

/* ---- pills / badges ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 550; background: var(--panel); color: var(--text); }
.pill--ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill--warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill--err { background: var(--err-bg); color: var(--err-fg); }
.pill--blue { background: var(--btn2-bg); color: var(--primary); }

/* ---- messages (green / yellow / red across HALO) ---- */
.ok, .warning, .error { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid; font-size: 14px; }
.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.warning { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.error { background: var(--err-bg); color: var(--err-fg); border-color: var(--err-line); }
.ok .hint, .warning .hint, .error .hint { color: inherit; opacity: .8; }

/* ---- buttons ---- */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 14px; }
button:hover, .btn:hover { background: var(--primary-hover); text-decoration: none; }
/* Browsers auto-focus the first button when a <dialog> opens via showModal() with no prior click (e.g. the reminder popup) - without
   this, that button gets the browser's raw default focus rectangle (a thick black box) instead of a themed ring. */
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-secondary { background: var(--btn2-bg); color: var(--primary); }
.btn-secondary:hover { background: var(--btn2-hover); }
.btn-danger { background: var(--err-bg); color: var(--err-fg); }
.btn-danger:hover { background: #f9d6d3; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; margin-top: 0; }
form.inline { display: inline; margin: 0; }
button.linkbtn, summary.linkbtn { display: inline; height: auto; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
button.linkbtn:hover, summary.linkbtn:hover { background: none; text-decoration: underline; }
.linkbtn--danger, button.linkbtn--danger:hover { color: var(--err-fg); }
.linkbtn--muted { color: var(--muted) !important; font-weight: 500 !important; }
/* the management card of a campaign: one filled button, everything else is quiet text */
.mgmt { margin-top: 8px; }
.mgmt-row { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.mgmt-row .k { flex: 0 0 96px; color: var(--muted); font-size: 13px; }
.mgmt-row .v { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.mgmt-row .v .hint { margin: 0; }
.mgmt-live { flex-basis: 100%; }
.mgmt-live summary { list-style: none; }
.mgmt-live summary::-webkit-details-marker { display: none; }
.mgmt-live form { margin-top: 6px; }
form.mgmt-foot { display: block; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
form.inline button { margin-top: 0; }

/* ---- forms ---- */
form { margin: 0 0 6px; }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 550; color: var(--text); }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], select, textarea, [data-server-filters] input[type=search] {
  width: 100%; max-width: 440px; height: 40px; padding: 0 12px; border: 1px solid #cfd6e0; border-radius: var(--radius-sm);
  display: block; background: #fff; font: inherit; color: var(--text); }
input[type=file] { display: block; width: 100%; max-width: 440px; padding: 8px; border: 1px dashed #b7c2d3; border-radius: var(--radius-sm); background: var(--panel); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 91, 255, .15); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); vertical-align: -3px; margin-right: 6px; }
.field-sm input, .field-sm select { max-width: 160px; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, .045); }
.download-list a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; margin: 6px 10px 6px 0; background: var(--btn2-bg); color: var(--primary); border-radius: var(--radius-sm); font-weight: 600; }
.download-list a:hover { background: var(--btn2-hover); text-decoration: none; }

/* ---- tabs (pill style) ---- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border-radius: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { margin: 0; height: 36px; padding: 0 18px; background: transparent; color: var(--text); font-weight: 550; border-radius: 12px; }
.tabs button:hover { background: rgba(0, 26, 52, .05); }
.tabs button[aria-selected=true] { background: var(--primary); color: #fff; }
[hidden] { display: none !important; }
.tabpanel[hidden] { display: none; }

/* ---- login ---- */
.auth { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.auth .card { width: 100%; max-width: 420px; padding: 30px 32px; }
.auth h1 { text-align: center; margin-bottom: 20px; }
.auth input[type=text], .auth input[type=password] { max-width: none; }
.auth button { width: 100%; margin-top: 22px; }

/* ---- campaign page (Ozon-like layout) -------------------------------------------------- */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); text-decoration: none; }
.crumbs .sep { color: #737373; }
.camp-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.camp-title h1 { margin: 0; font-size: 30px; }
.infocards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.infocards .card { margin-bottom: 0; padding: 20px 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin: 0; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 16px 0 0; }
.kv dt { color: var(--muted); font-size: 13px; margin: 0; }
.kv dd { margin: 2px 0 0; font-size: 18px; font-weight: 650; }
.kv > div { margin: 0; }

/* A wrapping grid of small link-cards for a list of named collections (e.g. Связки): harmonious with
   very few of them (unlike a narrow, half-empty table) and with many (wraps sideways instead of one long
   scroll). Not a data-table: no product rows, so the product-table search/export rules do not apply. */
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 4px 0; }
.group-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.group-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.group-card__head h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.group-card__head h3 a { color: var(--text); text-decoration: none; }
.group-card__head h3 a:hover { color: var(--primary); text-decoration: underline; }
.group-card__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.group-card[hidden] { display: none; }

/* The same compact groups workspace on Ozon and WB. */
.groups-nav, .groups-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 12px; }
.groups-nav a { text-decoration:none; }
.groups-nav .groups-view { margin-left:auto; }
.mode-switch { margin:0 0 12px; }      /* «По товарам / По связкам» над страницей юнит-экономики */
.calc-for { margin:0 0 8px; font:600 15px/22px var(--font); }      /* «Для связки «…»: новый товар» над формой калькулятора */
.calc-for__note { margin:0 0 12px; }
/* Категория товаров связки (владелец, 25.10.2026): одна — обычным шрифтом; несколько — основная красным и « +N», список в подсказке. */
.group-card__cat { display:flex; align-items:baseline; gap:6px; min-width:0; font-size:14px; line-height:20px; color:var(--muted); }
.group-card__label { flex:none; }
.group-cat { display:inline-flex; justify-content:flex-start; gap:4px; width:fit-content; flex:0 1 auto; min-width:0; max-width:100%; white-space:nowrap; color:var(--text); cursor:help; }      /* «+N» stands right after the name, never at the edge of the cell */
.group-cat__t { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.group-cat b { flex:none; }
.group-cat b { font-weight:600; }
.group-cat--multi, .group-cat--multi b { color:var(--v3-red); }
.group-cat--none { color:var(--muted); }
td[data-col="category"] { text-align:left; }
td[data-col="category"] .group-cat { display:block; max-width:340px; white-space:normal; }
td[data-col="category"] .group-cat__t { display:inline; overflow:visible; }
td[data-col="category"] .group-cat b { display:inline; margin-left:4px; white-space:nowrap; }
.groups-list .table-tools .table-search { flex:0 1 400px; min-width:180px; }
.groups-fill-filter[hidden] { display:none; }
.group-card__metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; }
.group-card__metrics > div { min-width:0; }
.group-card__metrics > div:nth-child(2) { text-align:center; }
.group-card__metrics > div:last-child { text-align:right; }
.group-card__metrics dt { color:var(--muted); font-size:12px; line-height:16px; white-space:nowrap; }
.group-card__metrics dd { color:var(--primary); margin:0; font-size:14px; line-height:20px; white-space:nowrap; }
.group-card__meta > span { min-width:0; }
.group-card__meta form { flex:none; }
/* «Настроить выбранные» in the table of связки (owner, 26.10.2026): a small floating panel at the bottom right of the window, open while the table is scrolled; the bar of the ticked products (.bulkbar--float) is its base */
.bulkbar--float.groups-bulk { left:auto; right:16px; bottom:16px; transform:none; display:block; width:min(480px,calc(100vw - 24px)); box-sizing:border-box; padding:12px 16px; }
.groups-bulk[hidden] { display:none; }
.groups-bulk__head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.groups-bulk__head h2 { margin:0; font:600 15px/24px var(--font); }
.groups-bulk .bulkfill__row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 12px; margin:8px 0 0; }
.groups-bulk .bulkfill__row label { display:flex; flex-direction:column; gap:4px; margin:0; font-size:14px; line-height:20px; font-weight:400; color:var(--muted); }
.groups-bulk .bulkfill__row input[type=text] { width:136px; max-width:100%; height:40px; box-sizing:border-box; margin:0; text-align:center; }
.groups-bulk .bulkfill__row select { width:136px; height:40px; box-sizing:border-box; margin:0; }
.groups-bulk__acts { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
.groups-bulk__acts .btn-sm { margin:0; }
.groups-bulk .bulkfill__note { margin:8px 0 0; font-size:14px; }
.bulkfill__note:empty { display:none; }
@media (max-width:1100px) { body:has(.groups-bulk:not([hidden])) .savebar { bottom:200px; } }
.group-actions.group-actions--compact { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-bottom:10px; }
.group-actions--compact .group-actions__row { flex:1 1 440px; flex-wrap:nowrap; gap:8px; min-width:0; }
.group-actions--compact .group-actions__row > label { flex:none; font-size:14px; }
.group-actions--compact .group-actions__row > input[type=text], .group-actions__row > .group-picker { flex:1 1 180px; width:auto; min-width:120px; max-width:320px; }
.group-picker input[type=text], .group-picker select { width:100%; min-width:0; box-sizing:border-box; }
.group-picker .combo__list { background:var(--surface); border-color:var(--line); }
.group-picker .combo__list li { overflow-wrap:anywhere; }
.group-picker .combo__list li.is-on { background:var(--band); }
.group-picker input[hidden], .group-picker select[hidden] { display:none; }
.group-actions--compact #ungrouped-count { flex:none; font-size:14px; }
.group-actions.group-actions--compact[hidden] { display:none; }
@media(max-width:650px) {
  .groups-list .table-tools .table-search { flex-basis:100%; }
  .groups-nav .groups-view { margin-left:0; }
  .group-actions--compact .group-actions__row { flex-wrap:wrap; }
  .group-actions--compact .group-actions__row > label { flex-basis:100%; }
  .group-actions--compact .group-actions__row > input[type=text], .group-actions--compact .group-picker { flex:1 1 160px; max-width:none; }
}

/* Settings: a narrow drop-down block above the product list */
.settings-drop { margin-bottom: 18px; }
.note-audience { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.note-audience legend { font-weight: 700; }
.note-audience label { display: flex; align-items: center; gap: 6px; }
.note-audience__people { width: 100%; max-height: 180px; overflow: auto; padding: 8px; border-top: 1px solid var(--line); }
.note-audience__people[hidden] { display: none; }
.note-audience__people label { margin: 4px 0; }
.note-decision { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.note-decision input { min-width: 220px; flex: 1; }
.note-register { margin-top: 22px; }
.note-register .table-wrap { overflow-x: auto; }
.note-register table { width: 100%; border-collapse: collapse; }
.note-register th, .note-register td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.stock-alert-settings label { display: block; margin: 10px 0; font-weight: 600; }
.stock-alert-settings input[type=checkbox] { margin-right: 8px; }
.ads-control-bar { display: grid; gap: 14px; margin-bottom: 16px; }
.ads-control-bar h2 { margin: 0 0 4px; }
.ads-control-bar .hint { margin: 0; }
.ads-control-bar__acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 12px; }
.ads-act { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--band, #f4f6fa); }
.ads-act__t { margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.ads-launch { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.ads-launch__pwbox { flex: 1 1 140px; min-width: 0; }
.ads-launch .ads-launch__pw { width: 100%; height: 36px; padding: 0 12px; margin: 0; }
.ads-launch button { flex: none; height: 36px; margin: 0; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.ads-control-bar__more { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.ads-control-bar__more form { margin: 0; }
.ads-control-bar__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
html.look-flat button.ads-ctl-link { display: inline; height: auto; margin: 0; padding: 4px 0; background: none; border: 0; border-radius: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
html.look-flat button.ads-ctl-link:hover { background: none; color: var(--primary); text-decoration: none; }
html.look-flat button.ads-ctl-link--danger { color: #d0021b; }
html.look-flat button.ads-ctl-link--danger:hover { background: none; color: #a00014; text-decoration: underline; }
/* «Массовая настройка» кампаний соинвеста: блок «Подставить в отмеченные» над таблицей и полоса с кнопкой «Отметить все» */
.ads-bulk-fill { margin: 14px 0 18px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #f7f9fd 0%, #f2f5fb 100%); }
.ads-bulk-fill h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.ads-bulk-fill > .hint { margin: 0 0 14px; font-size: 13px; }
.ads-bulk-fill__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 14px; margin-bottom: 16px; }
@media (max-width: 1100px) { .ads-bulk-fill__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ads-bulk-fill__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ads-bulk-fill .fillf { min-width: 0; }
.ads-bulk-fill .fillf__head { display: flex; align-items: center; justify-content: flex-start; gap: 9px; height: 22px; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.ads-bulk-fill .fillf__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-bulk-fill__go { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.ads-bulk-fill__go .hint { margin: 0; font-size: 12.5px; }
.ads-bulk-fill__go button { margin: 0; }
/* one look for every field of the page: the same height, radius, border and focus; no native clock or chevron */
html.look-flat .ads-bulk-fill input[type=text], html.look-flat .ads-bulk-fill input[type=number], html.look-flat .ads-bulk-fill input[type=time], html.look-flat .ads-bulk-fill select,
html.look-flat .ads-act input[type=date], html.look-flat .ads-act input[type=password] {
  width: 100%; height: 40px; margin: 0; padding: 0 12px; border: 1px solid #d5dbe6; border-radius: 12px; background-color: #fff; color: var(--text);
  font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; box-shadow: none; transition: border-color .12s, box-shadow .12s; }
.ads-bulk-fill input:hover, .ads-bulk-fill select:hover, .ads-act input:hover { border-color: #b5bfd0; }
.ads-bulk-fill input:focus, .ads-bulk-fill select:focus, .ads-act input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 91, 255, .15); outline: none; }
.ads-bulk-fill input::placeholder, .ads-act input::placeholder { color: #8a94a6; }
input[type=time]::-webkit-calendar-picker-indicator { display: none; }
input[type=time] { appearance: none; -webkit-appearance: none; }
html.look-flat .ads-bulk-fill select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23737f94' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
/* the «менять» switch of a field */
html.look-flat .ads-bulk-fill input.fill-use { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #cfd6e3; position: relative; cursor: pointer; transition: background .15s; vertical-align: middle; }
html.look-flat .ads-bulk-fill input.fill-use::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 30, 60, .25); transition: transform .15s; }
html.look-flat .ads-bulk-fill input.fill-use:checked { background: var(--primary); }
html.look-flat .ads-bulk-fill input.fill-use:checked::after { transform: translateX(12px); }
html.look-flat .ads-bulk-fill input.fill-use:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: none; }
.ads-bulk-steps { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; font-size: 13px; }
.ads-bulk-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ads-bulk-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ads-bulk .req, .ads-bulk-fill .req, th .req { color: var(--err-fg, #d0021b); font-weight: 700; }
.ads-messages:empty { display: none; }
.ads-messages { scroll-margin-top: 12px; }
/* the table of «Массовая настройка» is made to fit the screen: narrow cells, short fields (the rule of the owner: as little horizontal scrolling as possible);
   the selector is made stronger than the general «dense» padding of the look */
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] th, .ads-bulk .tablewrap table.dense[data-table="ads.bulk"] td { padding-left: 6px; padding-right: 6px; }
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] input.purchase-input { width: 70px; padding: 0 4px; }
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] input.purchase-input[type=number] { width: 54px; }
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] input.purchase-input--time { width: 88px; }
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] td.cell2 { min-width: 0; max-width: 200px; }
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] td.cell2 .t { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-bulk .tablewrap table.dense[data-table="ads.bulk"] td .state { white-space: nowrap; }
html.look-flat .tablewrap input.purchase-input.is-missing { border-color: #ff0000; background: #fff4f4; }
html.look-flat .tablewrap input.purchase-input.is-missing::placeholder { color: #d0021b; }
.ads-bulk-tools { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 8px; }
.ads-bulk-tools .hint { margin: 0; }
.ads-overview .drr-hero { margin: 12px 0 0; }
.ads-settings .settings-pop { padding: 18px 24px 22px; }
.ads-settings h2 { margin-top: 0; }
.settings-drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 16px; box-shadow: var(--shadow); }
.settings-drop > summary::-webkit-details-marker { display: none; }
.settings-drop__btn { font-weight: 650; color: var(--primary); white-space: nowrap; }
.settings-drop__sum { color: var(--muted); font-size: 14px; }
.settings-drop[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.settings-pop { max-width: 640px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 4px 18px 16px; box-shadow: var(--shadow); }
.settings-pop--wide { max-width: none; }
.report-scroll { max-height: 380px; overflow: auto; }
table.report { width: 100%; }
table.report td, table.report th { white-space: nowrap; padding: 7px 12px; }
table.report th { position: sticky; top: 0; background: #fff; }
table.report .zero { color: #737373; }
.settings-pop h3 { margin: 14px 0 6px; font-size: 14px; }
.settings-pop .hint { margin: 6px 0 0; font-size: 12px; }
.settings-pop label { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.settings-pop input[type=text], .settings-pop select { height: 34px; padding: 0 10px; font-size: 14px; }
.settings-pop .mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.settings-pop button[type=submit] { margin-top: 14px; }
.settings-pop .row { margin-top: 14px; }
.settings-pop .row > button, .fbo-dialog .row > button { margin-top: 0; }
.settings-pop .copy-form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.settings-pop .copy-form select { max-width: 340px; }

/* Product table */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.toolbar .search { max-width: 320px; margin: 0; }
.tablewrap { overflow-x: auto; margin-top: 6px; }
.tablewrap td, .tablewrap th { white-space: nowrap; padding-left: 9px; padding-right: 9px; }
.excl-form { max-width: 560px; margin-bottom: 8px; }
.textarea-list { display: block; width: 100%; height: auto; min-height: 150px; padding: 10px 12px; line-height: 1.45; resize: vertical; margin-bottom: 12px; }   /* the general field style gives 40px: too small for a list */
.tablewrap > table { width: auto; }   /* as wide as the content: no big gaps between columns (the free width stays at the right) */
.th-note { display: block; font-weight: 400; font-size: 11px; color: #737373; line-height: 1.2; }   /* a small remark under a header word */
.tablewrap th { white-space: normal; vertical-align: bottom; line-height: 1.25; min-width: 72px; }
.tablewrap th[data-col="pick"] { min-width: 0; }   /* a long header wraps instead of widening its column */
.tablewrap td.name { white-space: normal; min-width: 240px; max-width: 320px; }   /* an 80-character title takes two lines */
.tablewrap td.cut { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long title in one line, the full text in the tooltip */
.tablewrap table.dense td { padding: 5px 10px; }   /* tables with many rows (40 campaigns): a row is about 30px */
.tablewrap table.dense th { padding: 6px 10px; }
.tablewrap #camp-table td[data-col="schedule"] { white-space: normal; overflow-wrap: break-word; }
.tablewrap table.dense td.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; width: 190px; max-width: 190px; }   /* a title in one line, the full text is in the tooltip: a row stays low */
.tablewrap table.dense td.art { min-width: 200px; max-width: 230px; }   /* an article of 50 characters takes two lines, not four */
.tablewrap table.dense .btn-sm { height: 24px; padding: 0 10px; font-size: 12.5px; }
.tablewrap td.art { white-space: normal; overflow-wrap: anywhere; min-width: 200px; max-width: 230px; }   /* articles are up to 50 characters: they wrap, so one long code does not stretch the whole column */
.tablewrap .num { text-align: right; }
/* "Лёгкий вид" toggle (owner's request 2026-09-24): hides the product name under the article/SKU and
   narrows that cell, on top of the existing .dense row-height treatment (JS toggles both classes
   together) - fits more of a 1351-row catalog on screen at once. */
table.light-view td.cell2 .s { display: none; }
/* The inner title follows its column when resized; a fixed 150px title was clipped by the next cell. */
table.light-view td.cell2 .t,
html.look-flat table.light-view td.cell2 .t {
  display:block; width:auto; max-width:100%; min-width:0; white-space:normal; overflow:visible; text-overflow:clip;
}
table.light-view .purchase-input { height: 26px; padding: 0 8px; }   /* the 40px default input height was the actual tallest thing in a dense row */
/* overflow-x: auto on .tablewrap silently makes overflow-y compute to auto too (CSS spec rule), which
   would make a plain "top: 60px" stick to .tablewrap's own (non-scrolling) box instead of the page - it
   never actually sticks. Giving the wrapper its own real vertical scroll box sidesteps that: the header
   sticks correctly to ITS OWN box, and a 1351-row table no longer stretches the whole page either. */
.tablewrap.sticky-head { max-height: 70vh; overflow-y: auto; }
.tablewrap.sticky-head th { position: sticky; top: 0; z-index: 5; background: #fff; }
.tablewrap.sticky-head:fullscreen { max-height: 100vh; background: #fff; padding: 16px; }   /* "На весь экран" button, Fullscreen API */
.grouprow th { border-bottom: 0; padding-bottom: 0; }
.grouprow .grouptitle { text-align: center; color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .infocards { grid-template-columns: minmax(0,1fr); } }

/* Table settings (gear above a table, like in Ozon Seller) */
.table-tools { position: relative; display: flex; justify-content: flex-end; align-items: center; margin: 2px 0 6px; }
.table-tools .table-search { order: -1; width: 360px; height: 34px; padding: 0 12px 0 36px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 12px center; }   /* the search box on the left, the filter and the gear on the right */
.table-tools .table-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.gear-btn { margin: 0; height: 32px; width: 34px; padding: 0; font-size: 18px; line-height: 1; background: var(--btn2-bg); color: var(--primary); border-radius: 10px; }
.gear-btn:hover { background: var(--btn2-hover); }
.table-panel { position: absolute; right: 0; top: 38px; z-index: 30; width: 310px; max-height: 70vh; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 26, 52, .18); padding: 14px 16px; }
.table-panel[hidden] { display: none; }
.table-panel__title { font-weight: 650; margin-bottom: 4px; }
.table-panel ul { list-style: none; margin: 10px 0; padding: 0; }
.table-panel li { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; cursor: grab; font-size: 14px; }
.table-panel li:hover { background: var(--panel); }
.table-panel li.dragging { opacity: .35; }
.table-panel .handle { color: #737373; user-select: none; letter-spacing: -2px; }
.table-panel input[type=checkbox] { margin: 0; }
.table-panel__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Analytics page */
.periodbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.periodbar a.pill { text-decoration: none; color: var(--text); }
.periodbar a.pill.pill--blue { color: var(--primary); }
.periodbar__custom { display: flex; align-items: center; gap: 6px; margin: 0 8px; }
.periodbar__custom input[type=date] { height: 32px; padding: 0 8px; width: auto; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 8px; }
.kpi { margin-bottom: 0; padding: 16px 18px 12px; }
.kpi__title { color: var(--muted); font-size: 13px; }
.kpi__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.kpi__value { font-size: 24px; font-weight: 700; }
.kpi__value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.delta { font-size: 13px; font-weight: 650; }
.delta--good { color: #005bff; }
.delta--bad { color: #ff0000; }
.delta--flat { color: var(--muted); }
svg.trend, svg.kpi-chart { display: block; }
.bundle-form { max-width: 520px; margin-top: 16px; }
.bundle-form textarea { width: 100%; }
@media (max-width: 900px) { .kpis { grid-template-columns: minmax(0,1fr); } }

/* «Аналитика продвижения HALO» (owner, 2026-09-24: a list of ~70 groups is a table like every other long
   list on the site - «Остатки FBO», campaigns, «Товары без связки» - sortable/searchable via tables.js,
   not a grid of cards. The rich dial+chart (.drr-hero, unchanged) is reserved for the one group "starred"
   open above the table - the same "few numbers, one hero" shape as «Аналитика продвижения»/«Главная»).
   Zone colours the ДРР cell itself (is this group's ДРР good/normal/bad); the Δ column is the trend
   (better/worse than the previous period) - the two can disagree and that is meaningful, not a mistake. */
table[data-table="groups.drr"] tr.zone-good td.v { color: var(--primary); }
table[data-table="groups.drr"] tr.zone-normal td.v { color: var(--ok-fg); }
table[data-table="groups.drr"] tr.zone-bad td.v { color: var(--err-fg); }
table[data-table="groups.drr"] tr.is-open { background: var(--btn2-bg); }
.star-btn { display: inline-block; text-decoration: none; font-size: 16px; line-height: 1; color: var(--muted); }
.star-btn:hover { color: var(--primary); text-decoration: none; }
tr.is-open .star-btn { color: var(--primary); }

/* sortable columns */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--primary); }
th.sortable[data-sort="asc"]::after { content: " \25B2"; font-size: 10px; color: var(--primary); }
th.sortable[data-sort="desc"]::after { content: " \25BC"; font-size: 10px; color: var(--primary); }
svg.trend, svg.kpi-chart { height: auto; }

/* chart tooltips: a band over every day, the dot of the hovered day grows */
rect.hit { fill: transparent; }
circle.pt { pointer-events: none; transition: r .1s; }
rect.hit:hover + circle.pt { r: 7px; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #0f172a; color: #fff; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; line-height: 1.5; box-shadow: 0 6px 20px rgba(15, 23, 42, .25); white-space: nowrap; }
/* tip ⓘ (ui.js): the same dark box as the chart tooltip, the text wraps and keeps line breaks */
.tip { background: none; border: 0; padding: 0 2px; margin: 0; font: inherit; font-size: 12px; line-height: 1; color: var(--muted); cursor: pointer; }
.tip:hover, .tip:focus-visible { color: var(--text); }
.fresh .tip { color: inherit; }
.chart-tip.tip-pop { white-space: pre-line; max-width: min(320px, calc(100vw - 12px)); font-weight: 500; }
.chart-tip__date { font-size: 12px; color: #737373; }
.chart-tip__row { font-weight: 600; }
.chart-tip__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }

/* the ДРР panel: brand-blue card, Halo bright and big, Ozon muted */
.drr-hero { border-radius: 22px; padding: 22px 26px 18px; margin-bottom: 20px; color: #fff; box-shadow: 0 12px 34px rgba(29, 78, 216, .28);
  background: radial-gradient(900px 420px at 88% -25%, #4f8cff 0, #1d4ed8 46%, #1e3a8a 100%); }
.drr-hero h2 { margin: 0 0 10px; font-size: 16px; color: #fff; opacity: .9; }
.drr-hero__top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.drr-dial { flex: 0 1 350px; min-width: 260px; max-width: 100%; }
.drr-side { flex: 1 1 300px; }
.drr-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
  background: #fff; color: #005bff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.drr-claim { font-size: 19px; line-height: 1.4; font-weight: 600; margin: 14px 0 8px; }
.drr-claim b { font-weight: 700; }
.drr-claim .hl { font-size: 27px; font-weight: 800; white-space: nowrap; text-shadow: 0 0 18px rgba(255, 255, 255, .65); }
.drr-sub { font-size: 13px; opacity: .85; margin: 0 0 14px; }
.drr-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.drr-mini + .drr-mini { margin-top: 10px; }
.drr-m { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center;
  min-height: 92px; min-width: 0; border-radius: 14px; padding: 14px 12px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.drr-m .k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .72; line-height: 1.3; }
.drr-m .v { font-size: 27px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drr-m--o .v { opacity: .7; font-weight: 600; }
.drr-legend { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12.5px; margin-top: 6px; opacity: .92; }
.drr-legend i { display: inline-block; width: 28px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.drr-legend__halo { background: linear-gradient(90deg, #fff, #bae6fd); }
.drr-legend__ozon { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 6px, transparent 6px 10px); }
svg.drr-chart { height: auto; }
.drr-hero path.line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drr-draw 1.3s ease-out .1s forwards; }
.drr-hero .fadein { opacity: 0; animation: drr-fade .9s ease-out .7s forwards; }
.drr-hero .needle { animation: drr-sweep 1.8s cubic-bezier(.22, 1, .36, 1) both; }
.drr-hero .guide { stroke: rgba(255, 255, 255, .7); stroke-width: 1.3; stroke-dasharray: 4 4; opacity: 0; pointer-events: none; }
circle.pt.on { r: 8px; }
@keyframes drr-draw { to { stroke-dashoffset: 0; } }
@keyframes drr-fade { to { opacity: 1; } }
@keyframes drr-sweep { from { transform: rotate(0deg); } }
/* The page loads first, the dial and the chart play afterwards (see the script in base.html); during the play the heavy blurred shadows are off and the
   ~60 dots of the chart do not animate one by one: they appear when the line is drawn. */
html.anim-wait .drr-hero .needle, html.anim-wait .card-dial .needle, html.anim-wait .drr-hero path.line, html.anim-wait .drr-hero .fadein { animation-play-state: paused; }
html.hero-anim .drr-hero .needle, html.hero-anim .card-dial .needle, html.hero-anim .drr-hero path.line { filter: none !important; }
.drr-hero .pt.fadein { animation: none; opacity: 1; }
html.hero-anim .drr-hero .pt.fadein { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .drr-hero path.line { animation: none; stroke-dashoffset: 0; }
  .drr-hero .fadein { animation: none; opacity: 1; }
  .drr-hero .needle { animation: none; }
}

/* campaign state in the analytics table */
.state { display: inline; font-size: 13px; font-weight: 500; white-space: nowrap; }   /* a status is plain coloured text, not a button */
.state--on { color: #005bff; }
.state--off { color: #737373; }
.state--wrap { white-space: normal; line-height: 1.3; }
.state--unknown { color: #737373; }

/* row filter of a table (Ozon-like "Статус" drop-down) */
.table-tools .table-filter { position: relative; margin-right: 8px; }
.filter-btn { margin: 0; height: 32px; padding: 0 14px; font-size: 14px; background: var(--btn2-bg); color: var(--primary); border-radius: 10px; }
.filter-btn:hover { background: var(--btn2-hover); }
.filter-btn { display: inline-flex; align-items: center; max-width: 280px; }
.filter-btn__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-filter .table-panel { left: 0; right: auto; width: 250px; }
.table-filter .table-panel li { cursor: pointer; }

/* FBO pages */
.fbo-tiles { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.fbo-tile { flex: 1 1 160px; background: #fff; border: 1px solid var(--border, #e5eaf3); border-radius: 16px; padding: 12px 16px; }
.fbo-tile .k { font-size: 12.5px; color: #737373; }
.fbo-tile .v { font-size: 26px; font-weight: 800; color: #005bff; }
.fbo-tile .v .of { font-size: 15px; font-weight: 600; color: #737373; }
.fbo-tile--bad .v { color: #ff0000; }
.state--bad { color: #ff0000; }
.state--warn { color: var(--v3-amber, #b26a00); }   /* amber: the ONE yellow of the portal (--v3-amber, both themes): little left, 8–14 days, needs a look */
.state--low { color: var(--v3-amber, #b26a00); }
svg.sales-chart { height: auto; }
.sales-chart .guide { stroke: #94a3b8; stroke-width: 1.3; stroke-dasharray: 4 4; opacity: 0; pointer-events: none; }
.fbo-dialog { border: 0; border-radius: 20px; padding: 22px 26px 24px; width: min(640px, 94vw); max-height: 88vh; overflow: auto; box-shadow: 0 24px 70px rgba(15, 23, 42, .35); }
.fbo-dialog--wide { width: min(960px, 96vw); }
.fbo-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.fbo-dialog__close { position: absolute; right: 16px; top: 28px; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 10px; font-size: 24px; line-height: 1; background: transparent; color: #737373; }      /* 40 x 40 like every button, in the row of the first line of the window (28.10.2026) */
.fbo-dialog__help { display: flex; justify-content: flex-end; margin-right: 48px; }      /* «Инструкция» of the window stands left of the cross, not under it */
.fbo-dialog h2 { margin: 0 48px 6px 0; font-size: 20px; }
.fbo-dialog h3 { margin: 18px 0 6px; font-size: 15px; }
.fbo-dialog table { width: 100%; }
.pick-list { max-height: 55vh; overflow: auto; border: 1px solid var(--v3-line, #e5eaf3); border-radius: 12px; }
.pick-list table { margin-top: 0; }
.pick-list th { position: sticky; top: 0; background: #fff; }
.pick-off { opacity: .55; }
.fbo-dialog tr.total td { font-weight: 700; border-top: 2px solid var(--v3-line, #e5eaf3); }
.fbo-split { display: flex; gap: 22px; flex-wrap: wrap; }
.fbo-split > div { flex: 1 1 300px; min-width: 0; }

/* =====================================================================================================================
   LOOK "Ozon Seller" (2026-09-21): white page, blocks without frames, like Ozon Seller itself. The class look-flat (and look-accent) is
   always set on <html> in base.html.
   ===================================================================================================================== */
html.look-flat {
  --text: #001a34; --muted: #5b6577; --line: #e9edf3; --chip: #dfe4ec; --band: #f4f6fa; --btn2-bg: #eef1f6; --btn2-hover: #e3e8f0;
  --radius-sm: 10px; --radius: 14px; --radius-lg: 16px; --shadow: none;
}
html.look-flat body { font-size: 14px; line-height: 1.4; }
html.look-flat h1 { font-size: 30px; font-weight: 800; letter-spacing: -.015em; }
html.look-flat h2 { font-size: 20px; font-weight: 750; }
html.look-flat h3 { font-size: 15px; font-weight: 700; }

/* buttons: one blue, the rest grey with dark text (as in Ozon Seller) */
html.look-flat button, html.look-flat .btn { border-radius: 12px; font-size: 14px; font-weight: 600; }
html.look-flat .btn-secondary { background: var(--btn2-bg); color: var(--text); }
html.look-flat .btn-secondary:hover { background: var(--btn2-hover); }
html.look-flat .btn-danger { background: #fdecea; color: #ff0000; }
html.look-flat .btn-sm { height: 34px; border-radius: 10px; padding: 0 14px; }
html.look-flat button.linkbtn, html.look-flat summary.linkbtn { color: var(--link); font-size: 14px; }

/* fields: a thin frame, rounded */
html.look-flat [data-server-filters] input[type=search],
html.look-flat input[type=text], html.look-flat input[type=password], html.look-flat input[type=email], html.look-flat input[type=date], html.look-flat input[type=number],
html.look-flat select, html.look-flat textarea {
  border: 1px solid var(--chip); border-radius: 12px; background: #fff; }
html.look-flat .fields { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
html.look-flat .fields label { display: block; margin: 0 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
html.look-flat .fields input { height: 36px; width: 210px; padding: 0 12px; margin: 0; }
html.look-flat .fields button { margin: 0; height: 36px; }

/* the tools over a table (search, filter, gear): the same chips as the filters of Ozon Seller */
html.look-flat .table-tools .table-search { border: 1px solid var(--chip); border-radius: 12px; height: 36px; }
html.look-flat .filter-btn, html.look-flat .gear-btn { background: #fff; color: var(--text); border: 1px solid var(--chip); height: 36px; border-radius: 12px; font-weight: 500; }
html.look-flat .filter-btn:hover, html.look-flat .gear-btn:hover { background: var(--band); }
html.look-flat .gear-btn { width: 38px; color: var(--muted); }

/* tables: a grey band as the header, thin lines between rows, no frames, two-line cells */
html.look-flat .tablewrap table { border-collapse: separate; border-spacing: 0; }
html.look-flat .tablewrap th { background: var(--band); color: var(--muted); font-weight: 500; font-size: 13px; border-bottom: 0; padding-top: 10px; padding-bottom: 10px; }
html.look-flat .tablewrap th:first-child { border-radius: 10px 0 0 10px; }
html.look-flat .tablewrap th:last-child { border-radius: 0 10px 10px 0; }
html.look-flat .tablewrap td { border-bottom: 1px solid #eef1f5; font-size: 14px; vertical-align: middle; }
html.look-flat .tablewrap tbody tr:hover td, html.look-flat .tablewrap tr:hover > td { box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, .045); }
html.look-flat .tablewrap td.cell2 { white-space: normal; min-width: 230px; max-width: 380px; }
html.look-flat .cell2 .t { font-weight: 550; color: var(--text); overflow-wrap: anywhere; }
html.look-flat .cell2 .s, html.look-flat .tablewrap td .s { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
html.look-flat .cell2 .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.look-flat .cell2 .s a { color: var(--muted); }
html.look-flat .cell2 .s a:hover { color: var(--link); }
html.look-flat .tablewrap table.dense td { padding: 8px 10px; }
html.look-flat .tablewrap table.dense th { padding: 8px 10px; }
html.look-flat input[type=checkbox] { width: 16px; height: 16px; margin: 0; vertical-align: middle; }

/* bars that open (settings, add products, last check): a chip-like bar, no shadow */
html.look-flat .settings-drop > summary { box-shadow: none; border: 1px solid var(--chip); border-radius: 14px; background: #fff; padding: 11px 18px; }
html.look-flat .settings-pop { border-color: var(--chip); }
html.look-flat .settings-drop__btn { color: var(--text); font-weight: 650; }

/* the tiles above the list */
html.look-flat .fbo-tile { border: 1px solid var(--line); border-radius: 16px; box-shadow: none; background: #fff; }
html.look-flat .fbo-tile .v { color: var(--text); }
html.look-flat .fbo-tile--bad .v { color: #ff0000; }

/* the management card: rows on one axis */
html.look-flat .mgmt-row { align-items: center; padding: 12px 0; }
html.look-flat .mgmt-row .k { flex: 0 0 110px; font-size: 13px; }
html.look-flat .mgmt-row .v { align-items: center; }
html.look-flat form.mgmt-foot { padding-top: 12px; margin-top: 0; }

/* flat, on white (blocks are separated by space, only the small boxes keep a frame) */
html.look-flat body { background: #fff; }
html.look-flat .card { background: transparent; border: 0; box-shadow: none; padding: 0; margin-bottom: 34px; }
html.look-flat .infocards .card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 0; background: #fff; }
html.look-flat .card > h2:first-child, html.look-flat .card > .toolbar h2 { margin-bottom: 14px; }

html.look-flat .pagehead > div:first-child { flex: 1 1 420px; min-width: 0; }
html.look-flat .mgmt-row .k { align-self: flex-start; padding-top: 8px; }
html.look-flat .settings-drop[open] > summary { border-radius: 14px; }
html.look-flat .settings-pop { border: 1px solid var(--chip); border-radius: 14px; margin-top: 8px; padding: 16px 18px; background: #fff; }

/* ===================================================================================================================
   Touches: a bar under a number - how close a product is to its norm, how full the daily limit is - and a
   7-day line in the tile of the spend. look-accent = a blue "hero" band over the page with the main numbers, everything else white.
   ===================================================================================================================== */
html.look-flat .bar { height: 4px; border-radius: 3px; background: #e6ebf3; margin-top: 6px; min-width: 60px; overflow: hidden; }
html.look-flat .bar i { display: block; height: 100%; border-radius: 3px; background: #005bff; }
html.look-flat .bar--ok i { background: #1a9b57; }
html.look-flat .bar--warn i { background: #f0a000; }
html.look-flat .bar--hot i { background: #ff0000; }
html.look-flat .bar--done i { background: #1a9b57; }
html.look-flat .kv .bar { grid-column: 1 / -1; margin-top: 4px; }
html.look-flat .fbo-tile { position: relative; overflow: hidden; }
html.look-flat .fbo-tile .spark { position: absolute; right: 14px; bottom: 12px; width: 96px; height: 30px; color: #005bff; opacity: .9; }


/* ---- look-accent: the blue band with the main numbers ---- */
html.look-accent .hero { background: linear-gradient(120deg, #0048d6 0%, #005bff 45%, #4d94ff 100%); border-radius: 22px; padding: 26px 28px 24px; margin-bottom: 30px; color: #fff; position: relative; overflow: hidden; }
html.look-accent .hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
html.look-accent .hero > * { position: relative; z-index: 1; }
html.look-accent .hero h1, html.look-accent .hero .pagehead .sub, html.look-accent .hero .sub strong { color: #fff; }
html.look-accent .hero .pagehead .sub { opacity: .85; }
html.look-accent .hero .btn-secondary { background: rgba(255, 255, 255, .18); color: #fff; }
html.look-accent .hero .btn-secondary:hover { background: rgba(255, 255, 255, .28); }
html.look-accent .hero .fbo-tiles { margin: 18px 0 0; }
html.look-accent .hero .fbo-tile { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
html.look-accent .hero .fbo-tile .k { color: rgba(255, 255, 255, .8); }
html.look-accent .hero .fbo-tile .v, html.look-accent .hero .fbo-tile .v .of { color: #fff; }
html.look-accent .hero .fbo-tile .spark { color: #fff; opacity: .9; }
html.look-accent .infocards .card:first-child { background: linear-gradient(135deg, #0048d6 0%, #005bff 55%, #4d94ff 100%); border: 0; color: #fff; }
html.look-accent .infocards .card:first-child h2, html.look-accent .infocards .card:first-child dd { color: #fff; }
html.look-accent .infocards .card:first-child dt, html.look-accent .infocards .card:first-child .hint { color: rgba(255, 255, 255, .78); }
html.look-accent .infocards .card:first-child .state { color: #fff; opacity: .9; }
html.look-accent .infocards .card:first-child .bar { background: rgba(255, 255, 255, .25); }
html.look-accent .infocards .card:first-child .bar i { background: #fff; }
html.look-accent .infocards .card:first-child .bar--warn i { background: #ffd166; }
html.look-accent .infocards .card:first-child .bar--hot i { background: #ff8a8a; }


/* ===================================================================================================================
   "Ozon+" (2026-09-21): the look of Ozon Seller with our own touches. Tabs with counters over a table, one "Действия" menu, a back link,
   notices as soft chips. Everything is inside look-flat.
   =================================================================================================================== */
html.look-flat .table-tabs { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
html.look-flat .table-tab { background: none; color: var(--muted); height: auto; margin: 0; padding: 10px 0 11px; border-radius: 0; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; }
html.look-flat .table-tab:hover { color: var(--text); background: none; }
html.look-flat .table-tab.is-on { color: var(--text); font-weight: 650; border-bottom-color: var(--primary); }
html.look-flat .table-tab.is-empty { opacity: .55; }
html.look-flat .table-tab__n { font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 7px; border-radius: 999px; background: #e9edf3; color: #000000; }
html.look-flat .table-tab.is-on .table-tab__n { background: #dbe7ff; color: #005bff; }

/* a menu that opens under a grey button ("Действия ▾") */
html.look-flat details.menu { position: relative; display: inline-block; }
html.look-flat details.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
html.look-flat details.menu > summary::-webkit-details-marker { display: none; }
html.look-flat .menu__caret { font-size: 12px; opacity: .7; }
html.look-flat .menu__list { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--chip); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 26, 52, .14); }
html.look-flat .menu__list form { display: block; margin: 0; }
html.look-flat button.menu__item { display: block; width: 100%; text-align: left; height: auto; margin: 0; padding: 9px 12px; background: none; color: var(--text); border-radius: 9px; font-size: 14px; font-weight: 500; }
html.look-flat button.menu__item:hover { background: var(--band); }
html.look-flat button.menu__item--danger { color: #ff0000; }

/* the back link over the title, like "← FBS" in Ozon Seller */
html.look-flat .crumbs { margin-bottom: 10px; }
html.look-flat .crumbs__back { color: var(--muted); font-size: 14px; }
html.look-flat .crumbs__back:hover { color: var(--link); text-decoration: none; }

/* notices as soft chips (as the coloured notices under the title in Ozon Seller) */
html.look-flat .warning, html.look-flat .error, html.look-flat .ok { border: 0; border-radius: 14px; padding: 10px 16px; font-size: 14px; }
html.look-flat .warning { background: #fde8e6; color: #ff0000; }
html.look-flat .error { background: #fde8e6; color: #ff0000; }
html.look-flat .ok { background: #e3f6ec; color: #009900; }

/* small refinements: smooth hover, a clear focus ring */
html.look-flat button, html.look-flat a, html.look-flat .table-tab, html.look-flat .tablewrap td { transition: background-color .12s, color .12s, border-color .12s; }
html.look-flat input:focus, html.look-flat select:focus, html.look-flat textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 91, 255, .14); outline: none; }
html.look-flat #roster-remove:disabled { display: none; }   /* the button appears when something is ticked, like the actions of a selection in Ozon Seller */

/* the dashboard on the list page: the same blue panel with the dial as in "Аналитика продвижения", the day's numbers in it */
.dash-hero { margin-bottom: 26px; }
.dash-hero .drr-hero__top { margin-bottom: 0; align-items: center; }
.dash-hero .drr-dial { flex: 0 1 300px; min-width: 240px; }
.dash-hero .drr-sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dash-hero .drr-claim { margin: 12px 0 6px; font-size: 18px; }
.dash-hero .fbo-tiles { margin: 6px 0 0; }
.dash-hero .fbo-tile { flex: 1 1 150px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff; padding: 10px 14px; }
.dash-hero .fbo-tile .k { color: rgba(255, 255, 255, .8); }
.dash-hero .fbo-tile .v, .dash-hero .fbo-tile .v .of { color: #fff; }
.dash-hero .fbo-tile .v { font-size: 24px; }
.dash-hero .fbo-tile .spark { color: #fff; opacity: .9; }
html.look-flat .dash-hero .fbo-tile { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); }
html.look-flat .dash-hero .fbo-tile .v, html.look-flat .dash-hero .fbo-tile .v .of { color: #fff; }
html.look-flat .dash-hero .fbo-tile .spark { color: #fff; }

/* the small dial in the blue card of a campaign */
.card-dial { max-width: 250px; margin: 6px auto 0; }
.card-dial .needle { animation: drr-sweep 1.8s cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { .card-dial .needle { animation: none; } }

/* groups of small cards keep their frame in the flat look (the numbers of the analytics, the cards of the home page) */
html.look-flat .kpis .card, html.look-flat .grid .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 0; }
html.look-flat .kpis, html.look-flat .grid { margin-bottom: 26px; }
/* the campaign card with the dial: the numbers on the left, the dial on the right */
html.look-accent .card--dial { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 18px; align-items: center; }
html.look-accent .card--dial .card-head, html.look-accent .card--dial > .hint { grid-column: 1 / -1; }
html.look-accent .card--dial .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-top: 14px; }
html.look-accent .card--dial .card-dial { margin: 8px 0 0; max-width: none; }
.dash-hero .fbo-tile .spark { top: 13px; bottom: auto; right: 12px; width: 54px; height: 20px; }   /* the 7-day line in the corner, not over the text */
html.look-flat .dash-hero .fbo-tile .spark { top: 14px; bottom: auto; right: 12px; width: 52px; height: 18px; }

/* "Показано 100 из 1351 · Показать ещё" under a long table */
.table-more { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 4px 4px; color: var(--muted); font-size: 13px; }
.table-more[hidden] { display: none; }

/* a status is a quiet coloured word, not a heavy one (owner 2026-09-21: "слишком жирные надписи режут глаз") */
html.look-flat .tablewrap .state { font-weight: 500; }
html.look-flat .tablewrap .cell2 .s .state { font-weight: 500; }
html.look-flat .tablewrap th.center, html.look-flat .tablewrap td.center { text-align: center; }

/* "Активна" is green (owner 2026-09-21); on the blue card of a campaign a light green, so that it can be read */
.state--ok { color: #009900; }
.infocards .card:first-child .state--ok { color: #ffffff; opacity: 1; }

/* the "Excel" button of a table, a chip like the filters */
.export-btn { margin: 0 8px 0 0; height: 36px; padding: 0 14px; font-size: 14px; font-weight: 500; background: #fff; color: var(--text); border: 1px solid var(--chip, #dfe4ec); border-radius: 12px; }
.export-btn:hover { background: var(--band, #f4f6fa); }
.export-btn:disabled { opacity: .6; cursor: default; }

/* ---- notes (Аналитика → Заметки) and the notes card of the home page ---- */
a.table-tab { text-decoration: none; }
.notes { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.note { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.note--due { background: #fff9ec; border-color: #f3d99b; box-shadow: inset 4px 0 0 #f0a000; }
.note__body { flex: 1 1 320px; min-width: 0; }
.note__head { font-size: 15px; font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.note__text { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.note__meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.note__bell { color: #000000; font-weight: 500; }
.note__bell.is-due { color: #ff0000; font-weight: 650; }
.note__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 0 1 auto; max-width: 100%; }
.note__link { font-size: 14px; font-weight: 600; color: var(--link); }
.note-form { max-width: 960px; }
.note-form textarea, .note-form input[type=text] { width: 100%; max-width: none; box-sizing: border-box; }
.note-remind { margin: 12px 0 4px; padding: 12px 14px; background: var(--band, #f4f6fa); border-radius: 14px; }
.note-remind__q { font-weight: 650; margin-bottom: 6px; }
.note-radio { display: block; font-weight: 400; margin: 4px 0; font-size: 14px; }
.note-remind__when { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 2px; }
.note-remind__when[hidden] { display: none; }
.note-remind__when input { height: 36px; width: 170px; }
.note-remind .hint { margin: 8px 0 0; }
.note-empty { padding: 18px 4px; }
.note-due-hint { margin: 0 0 8px; color: #ff0000; }
.notes-home--due { border-color: #f3d99b; }
.stub__list { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; }
/* the buttons go under the text by themselves (flex-wrap) when the text would get narrower than 320 px */
.note__done { color: #009900; }
.settings-pop .note-radio, .note-radio { font-size: 14px; color: var(--text); }
.note-remind__when input[type=date], .note-remind__when input[type=time] { height: 36px; width: 170px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; border: 1px solid var(--chip, #dfe4ec); border-radius: 12px; }
html.look-flat .notes-home { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 22px; }
.notes-home .card-head { margin-bottom: 6px; }

/* ---- the dashboard of the home page ---- */
.kpis--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis--home .kpi__value { font-size: 21px; }
.kpis__note { margin: 4px 0 20px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-col .card { margin-bottom: 0; }
html.look-flat .dash-col .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 0; }
.attention__list, .limits, .soon { list-style: none; margin: 8px 0 0; padding: 0; }
.att { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1f5; font-size: 14px; }
.attention__list .att:first-child { border-top: 0; }
.att::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: #94a3b8; }
.att--red::before { background: #ff0000; } .att--yellow::before { background: #ff0000; } .att--blue::before { background: #005bff; } .att--ok::before { background: #009900; }
.att a { color: var(--text); } .att a:hover { color: var(--link); }
p.att { border-top: 0; margin: 8px 0 0; }
.limits li { padding: 8px 0; border-top: 1px solid #eef1f5; }
.limits li:first-child { border-top: 0; }
.limits__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.limits__row span { color: var(--muted); white-space: nowrap; }
.limits .bar { margin-top: 6px; }
.soon li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid #eef1f5; }
.soon li:first-child { border-top: 0; }
.soon__name { min-width: 0; }
.soon__name .t { font-weight: 550; }
.soon__name .s, .soon__days .s { font-size: 12.5px; color: var(--muted); }
.soon__name .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.soon__days { text-align: right; white-space: nowrap; }
.soon__days strong { font-size: 18px; color: #ff0000; }
@media (max-width: 1100px) { .kpis--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns: minmax(0,1fr); } }

/* a star on a note (up to two starred notes go to the home page) and a folded note */
.note__star { background: none; color: #737373; font-size: 22px; line-height: 1; height: 32px; width: 32px; padding: 0; margin: 0; border-radius: 10px; }
.note__star:hover { background: var(--band, #f4f6fa); color: #005bff; }
.note__star.is-on { color: #005bff; }
.note--pinned { border-color: #f3d99b; }
.note-fold > summary { list-style: none; cursor: pointer; }
.note-fold > summary::-webkit-details-marker { display: none; }
.note-fold__line { font-size: 15px; color: var(--text); }
.note-fold__line::after { content: "  ▾"; color: var(--muted); font-size: 12px; }
.note-fold[open] .note-fold__line { display: none; }
.note-fold .note__text { margin-top: 0; }
.notes-home__more { margin: 10px 0 0; }

/* the notes card of the home page: a soft green, under the graphics */
html.look-flat .notes-home, .notes-home { background: linear-gradient(180deg, #f3fbf6 0%, #eaf7ef 100%); border: 1px solid #cfe8d8; border-radius: 18px; padding: 18px 20px; margin: 0 0 22px; }
.notes-home h2 { color: #009900; }
.notes-home .note__link { color: #009900; }
.notes-home .note { background: #fff; border-color: #d6ecde; }
.notes-home .note--due { background: #fff9ec; border-color: #f3d99b; }
.notes-home .btn-secondary { background: #e6f4ec; color: #009900; }
.notes-home .btn-secondary:hover { background: #d9eee2; }
.notes-home .note__done { color: #009900; }
.notes-home .hint { color: #009900; }
.notes-home__more a { color: #009900; font-weight: 600; }
.fbs-low__note { margin: 10px 0 0; }
.soon__days strong.soon--red { color: #ff0000; }
.soon__days strong.soon--amber { color: #ff0000; }
.soon__days strong.soon--calm { color: #000000; }

/* FBS orders: the switch above the table, a table that folds, the card of what waits to be collected */
.viewswitch { display: flex; gap: 8px; margin: 0 0 12px; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "\25B8"; color: var(--muted); font-size: 14px; transition: transform .12s; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary h2 { margin: 0; }
details.fold[open] > summary { margin-bottom: 12px; }
.kpi__note { font-size: 13px; color: var(--muted); line-height: 1.5; }


/* table tools: the categories box, the pin of a header, the border that is dragged to change a width */
.tablewrap th { position: relative; }
.tablewrap td.cat { white-space: nowrap; }
.tablewrap table:not(.col-fixed) td.cat { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.tablewrap table.col-fixed td { overflow: hidden; text-overflow: ellipsis; }
.tablewrap table.col-fixed td.cell2 { max-width: none; }
.pin-btn { position: absolute; top: 2px; right: 3px; width: 14px; height: 14px; cursor: pointer; opacity: 0; transition: opacity .12s;
  background: no-repeat center / 14px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4v6l-2 4v2h10v-2l-2-4V4'/><path d='M12 16v5'/><path d='M8 4h8'/></svg>"); }
.tablewrap th:hover .pin-btn { opacity: .75; }
.tablewrap th .pin-btn:hover { opacity: 1; }
.tablewrap th .pin-btn.is-on { opacity: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4v6l-2 4v2h10v-2l-2-4V4'/><path d='M12 16v5'/><path d='M8 4h8'/></svg>"); }
.col-grip { position: absolute; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; z-index: 3; touch-action: none; }
.col-grip::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 3px; width: 1px; background: transparent; }
.tablewrap th:hover .col-grip::after, .col-grip:hover::after { background: #2563eb; width: 2px; left: 2px; }
body.col-resizing { cursor: col-resize; user-select: none; }
.tablewrap th.is-pinned, .tablewrap td.is-pinned { position: sticky; z-index: 2; }
.tablewrap th.is-pinned { z-index: 4; }
html.look-flat .tablewrap td.is-pinned { background: #fff; }
.tablewrap td.is-pinned-last, .tablewrap th.is-pinned-last { box-shadow: 6px 0 6px -6px rgba(15, 23, 42, .28); }


/* cells are centred; the article with the name, the SKU, the category and the last column keep the left edge (owner, 2026-09-21);
   2026-10-08: text columns (a связка's name, a status, a change, a note, a reason) are on the left too - text left, numbers centred */
html.look-flat .tablewrap th, html.look-flat .tablewrap td { text-align: center; }
html.look-flat .tablewrap th[data-col="sku"], html.look-flat .tablewrap td[data-col="sku"],
html.look-flat .tablewrap th[data-col="offer"], html.look-flat .tablewrap td[data-col="offer"],
html.look-flat .tablewrap th[data-col="name"], html.look-flat .tablewrap td[data-col="name"],
html.look-flat .tablewrap th[data-col="title"], html.look-flat .tablewrap td[data-col="title"],
html.look-flat .tablewrap th[data-col="article"], html.look-flat .tablewrap td[data-col="article"],
html.look-flat .tablewrap th[data-col="category"], html.look-flat .tablewrap td[data-col="category"],
html.look-flat .tablewrap th[data-col="group"], html.look-flat .tablewrap td[data-col="group"],
html.look-flat .tablewrap th[data-col="status"], html.look-flat .tablewrap td[data-col="status"],
html.look-flat .tablewrap th[data-col="change"], html.look-flat .tablewrap td[data-col="change"],
html.look-flat .tablewrap th[data-col="note"], html.look-flat .tablewrap td[data-col="note"],
html.look-flat .tablewrap th[data-col="reason"], html.look-flat .tablewrap td[data-col="reason"],
html.look-flat .tablewrap th[data-col="conflict"], html.look-flat .tablewrap td[data-col="conflict"],
html.look-flat .tablewrap td.name, html.look-flat .tablewrap td.art, html.look-flat .tablewrap td.cell2, html.look-flat .tablewrap td.cut,
html.look-flat .tablewrap .col-last, html.look-flat .tablewrap table:not([data-table]) th:last-child, html.look-flat .tablewrap table:not([data-table]) td:last-child { text-align: left; }
html.look-flat .tablewrap th.col-last, html.look-flat .tablewrap td.col-last { padding-left: 18px; }

/* the "Показывать категории" switch in a chip like the neighbouring buttons */
.hint.table-filter-note { margin: 6px 0; }      /* «Включён фильтр: …» above a table; inside the card of the page template it has the 20 px of the card (design-v3-compact.css) */
.cat-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 36px; margin: 0 8px 0 0; padding: 0 14px 0 11px; box-sizing: border-box;
  background: #fff; color: var(--text); border: 1px solid var(--chip, #dfe4ec); border-radius: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color .12s, border-color .12s; }
.cat-toggle:hover { background: var(--band, #f4f6fa); }
.cat-toggle.is-on { background: #f1f6ff; border-color: #b7cffb; }
.cat-toggle__box { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cat-toggle__track { position: relative; flex: none; width: 32px; height: 18px; border-radius: 999px; background: #c9d1de; transition: background-color .15s; }
.cat-toggle__track i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 26, 52, .28); transition: transform .15s; }
.cat-toggle__box:checked + .cat-toggle__track { background: var(--primary); }
.cat-toggle__box:checked + .cat-toggle__track i { transform: translateX(14px); }
.cat-toggle__box:focus-visible + .cat-toggle__track { box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.cat-toggle__note { color: var(--muted); font-size: 12px; font-weight: 400; }
.cat-toggle__note:empty { display: none; }

/* with the categories on, the groups of one category are tinted in turn */
html.look-flat .tablewrap tr.grp-alt > td { background: #f3f7fd; }
html.look-flat .tablewrap tr.grp-alt:hover > td { background: #e9f0fb; }

/* a line under the value of a card: what the percentage is in real numbers ("12 из 70 заказов") */
.kpi__sub { margin: -2px 0 4px; font-size: 13px; color: var(--muted); }


/* the freshness line ("Данные загружены ..."): green, so that it does not get lost among the grey hints (owner, 2026-09-21) */
.fresh { color: var(--ok-fg, #0a7a35); font-weight: 600; }
.fresh--none { color: var(--warn-fg, #f57c00); }

/* switches in the row of the tabs */
.table-toggles { margin-left: auto; align-self: center; display: inline-flex; gap: 8px; padding-bottom: 6px; }
html.look-flat .table-toggle { height: 30px; margin: 0; padding: 0 14px; border-radius: 999px; border: 1px solid var(--chip, #dfe4ec); background: #fff; color: var(--text);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
html.look-flat .table-toggle:hover { background: var(--band, #f4f6fa); }
html.look-flat .table-toggle.is-on { background: #eaf1ff; border-color: #a9c4fb; color: #005bff; }
/* value chips over a table (tables.js setupChips, data-chips): the title, the chips, «Сбросить» and «Показано N из M» in one line that wraps;
   no colours of their own - the chips are the switches above */
html.look-flat .table-tabs.table-chips { align-items: center; gap: 8px 12px; border-bottom: 0; margin: 0 0 8px; }
.table-chips .table-toggles { margin-left: 0; padding-bottom: 0; flex-wrap: wrap; }
.table-chips__title { color: var(--muted); font-size: 13.5px; }
.table-chips__shown { margin: 0 0 0 auto; font-size: 13px; }
.table-chips .table-toggle.is-empty { opacity: .55; }
.table-chips .table-toggle .table-tab__n { margin-left: 2px; }


/* "Остатки FBO": the warehouse that opens its products, the note about the young history */
.hint--note { color: var(--warn-fg, #f57c00); font-weight: 500; }
tr.wh-row { cursor: pointer; }
tr.wh-row td[data-col="name"]::before { content: "\25B8"; display: inline-block; width: 18px; color: var(--muted); transition: transform .12s; }
tr.wh-row.is-open td[data-col="name"]::before { transform: rotate(90deg); }
html.look-flat .tablewrap tr.wh-detail > td { padding: 8px 0 16px 26px; background: #f8faff; white-space: normal; text-align: left; }


/* the switch between two views of a page (Товары | Склады): a solid segmented control, not a pair of small pills (owner, 2026-09-21) */
.viewswitch { display: inline-flex; gap: 4px; padding: 4px; margin: 2px 0 18px; background: var(--band, #f4f6fa); border: 1px solid var(--line, #e9edf3); border-radius: 14px; }
html.look-flat .viewswitch .pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 150px; padding: 0 28px; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 16px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; border: 0;
  transition: background-color .12s, color .12s, box-shadow .12s; }
html.look-flat .viewswitch .pill:hover { color: var(--text); background: rgba(255, 255, 255, .6); }
html.look-flat .viewswitch .pill.pill--blue { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 26, 52, .16), 0 0 0 1px rgba(0, 26, 52, .04); }
@media (max-width: 700px) { html.look-flat .viewswitch .pill { min-width: 0; padding: 0 16px; font-size: 15px; } }

/* "Снято с продажи": the switch above the table and the little table of warehouses under an article */
.tools-row { display: flex; justify-content: flex-end; margin: 0 0 8px; }
table.inner { width: 100%; border-collapse: collapse; font-size: 13px; }
table.inner th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 12px; border-bottom: 1px solid var(--line, #e9edf3); background: transparent; }
table.inner td { padding: 6px 12px; border-bottom: 1px solid var(--line, #e9edf3); white-space: nowrap; }
table.inner .num { text-align: right; }
tr.wh-row[data-inline] { cursor: pointer; }
tr.wh-row[data-inline] td[data-col="sku"]::before { content: "\25B8"; display: inline-block; width: 18px; color: var(--muted); transition: transform .12s; }
tr.wh-row[data-inline].is-open td[data-col="sku"]::before { transform: rotate(90deg); }
html.look-flat .tablewrap table.inner td, html.look-flat .tablewrap table.inner th { text-align: left; }
html.look-flat .tablewrap table.inner td.num, html.look-flat .tablewrap table.inner th.num { text-align: center; }


/* the opened part of a row: as wide as what is visible of the table, it stays at the left edge while the table is scrolled sideways */
.wh-detail__in { position: sticky; left: 0; box-sizing: border-box; width: 100%; }

/* ==================================================================================================================
   Top bar that fits from 1000 px (2026-09-24): the menu items never wrap and the right part is shortened step by step,
   so there is no sideways scroll of the page and «Цены и акции» stays on one line.
   ================================================================================================================== */
.mainnav a { white-space: nowrap; }
.topbar__right { white-space: nowrap; flex: none; }
@media (max-width: 1240px) { .topbar__in { gap: 18px; padding: 0 16px; } .mainnav a { padding: 0 10px; } }
@media (max-width: 1120px) { .topbar__right .who { display: none; } .mainnav a { font-size: 14px; } .topbar__right { gap: 10px; } }
@media (max-width: 1000px) { .topbar__in { gap: 10px; padding: 0 10px; } .mainnav a { padding: 0 7px; font-size: 13.5px; } }

/* ==================================================================================================================
   Юнит-экономика: the strip with the company settings, the tip, the bar of a selection, the bar of unsaved changes,
   the colours of values and states, the field for a purchase price in a row.
   ================================================================================================================== */
.v--bad { color: #ff0000; }
.v--low { color: #ff0000; }
.nil { color: #737373; }                      /* an empty value: a pale dash, so a column of dashes does not shout */
.state--ok { color: #009900; }
.state--off { color: var(--muted); }          /* «Нет данных о закупке» is the usual state of most rows, not an alarm */
.tablewrap td.num { font-variant-numeric: tabular-nums; }

.infobar { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 10px 14px; margin: 0 0 14px; border-radius: 14px; background: #eef4ff; font-size: 13px; line-height: 1.45; color: var(--text); }
.infobar[hidden] { display: none; }
.infobar__i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; line-height: 20px; text-align: center; font-style: italic; }
html.look-flat .infobar__x { flex: none; margin: 0 0 0 auto; padding: 0 6px; height: auto; background: none; color: var(--muted); font-size: 20px; font-weight: 400; line-height: 1; border-radius: 6px; }
html.look-flat .infobar__x:hover { background: rgba(0, 26, 52, .07); color: var(--text); }

.econ-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; padding: 12px 18px; margin: 0 0 10px; background: var(--band, #f4f6fa); border-radius: 14px; }
.econ-strip__item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.econ-strip__item span { font-size: 12px; color: var(--muted); }
.econ-strip__item b { font-size: 14px; font-weight: 650; color: var(--text); white-space: nowrap; }
.econ-strip__edit { margin-left: auto; font-size: 14px; font-weight: 600; }
.econ-ready { margin: 0 0 12px; }
.econ-actions { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.econ-actions .cat-toggle { margin: 0; }
.table-tools .cat-toggle + .btn { margin-right: 8px; }
.table-tools > .btn-sm { height: 36px; border-radius: 12px; margin: 0 8px 0 0; }   /* the full screen button: the same 36 px as its neighbours */

.bulkbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 8px 14px; margin: 0 0 8px; border-radius: 12px; background: #eaf1ff; font-size: 14px; }
.bulkbar[hidden] { display: none; }
.bulkbar label { margin: 0; font-weight: 500; }
.bulkbar input[type=text] { width: 110px; height: 36px; }
.bulkbar .btn-sm { height: 36px; border-radius: 12px; }

.savebar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 20px; border-radius: 16px; background: #001a34; color: #fff; box-shadow: 0 10px 30px rgba(0, 26, 52, .35); font-size: 14px; }
.savebar[hidden] { display: none; }
.savebar button { margin: 0; height: 36px; border-radius: 12px; }
.savebar .btn-secondary { background: rgba(255, 255, 255, .14); color: #fff; }
.savebar .btn-secondary:hover { background: rgba(255, 255, 255, .24); }
/* the bar is centred by left:50% + translate, which would shrink it to half of the screen and fold its content into a column: it takes the width of its content */
.savebar { width: max-content; max-width: calc(100vw - 32px); }
.savebar span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.savebar span[hidden] { display: none; }
.savebar #ticked_wrap, .savebar #typed_wrap { gap: 8px 12px; }
.savebar select { height: 36px; margin: 0; }
.savebar .secret-tools { margin: 0; min-height: 0; }
.savebar .secret-tools .linkbtn, .savebar .linkbtn { color: #9cc4ff; white-space: nowrap; }
.savebar #typed_wrap { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .2); }
.savebar #ticked_wrap[hidden] + #typed_wrap { padding-left: 0; border-left: 0; }

/* a purchase price in a row: a soft field without a heavy frame (1351 empty white boxes were visual noise) */
html.look-flat .tablewrap input.purchase-input { width: 92px; max-width: 100%; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: var(--band, #f4f6fa); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
html.look-flat .tablewrap input.purchase-input::placeholder { color: #737373; }
html.look-flat .tablewrap input.purchase-input:hover { border-color: var(--chip, #dfe4ec); background: #fff; }
html.look-flat .tablewrap input.purchase-input:focus { border-color: var(--primary); background: #fff; }
/* «28,50 / 113,43»: two numbers in a cell are never cut with «…» */
html.look-flat .tablewrap td.two { white-space: nowrap; min-width: 122px; text-overflow: clip; }
html.look-flat .tablewrap td.chk { font-size: 16px; }


/* the row of table tools: buttons never break their words into two lines; when the window is narrow the row wraps instead */
.table-tools { flex-wrap: wrap; row-gap: 8px; }
.table-tools > * { white-space: nowrap; flex: none; }
.table-tools .export-btn { white-space: nowrap; }
html.look-flat .table-tools > .btn-sm { height: 36px; }

/* «На весь экран» on the economics page: the whole form (tabs, search, tools, table) goes full screen, and the table takes the free height */
#purchase_form:fullscreen { background: #fff; box-sizing: border-box; height: 100vh; padding: 14px 20px; overflow: hidden; display: flex; flex-direction: column; }
#purchase_form:fullscreen .tablewrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0; }
#purchase_form:fullscreen .tablewrap th { position: sticky; top: 0; z-index: 5; }      /* only in the full screen the table scrolls inside itself, so only there the header sticks */


/* ==================================================================================================================
   Юнит-экономика, forms and cards (settings, product, group): fields in two columns, units inside the field,
   breadcrumbs, the «Расчёт» card of a product, the confirmation box of a group.
   ================================================================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); text-decoration: none; }
.crumbs span:last-child { color: var(--text); }

.pagehead .sub--name { font-size: 16px; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--band, #f4f6fa); color: var(--text); font-size: 13px; font-weight: 500; }

html.look-flat .pagehead h1 { font-size: 28px; font-weight: 700; }
html.look-flat .card h2 { font-size: 18px; font-weight: 650; }

.econ-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.econ-two--product { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.econ-two--flat { gap: 8px 32px; margin-bottom: 4px; }
.econ-two > .card { margin-bottom: 0; }
@media (max-width: 900px) { .econ-two, .econ-two--product { grid-template-columns: minmax(0,1fr); } }
.calc-card { position: sticky; top: 78px; }

.field { margin: 0 0 16px; }
.field > label { margin: 0 0 6px; }
.field > label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 0 10px; }
.field .hint { margin: 5px 0 0; }
.field input[type=text], .field input[type=password], .field textarea, .field select { max-width: 380px; }
.field-unit { position: relative; max-width: 380px; }
.field-unit input[type=text] { max-width: none !important; width: 100%; padding-right: 44px; }
.field-unit > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; white-space: nowrap; }
.field-unit input[type=text] { padding-right: calc(16px + 1ch * 4); }
.hint-note { color: var(--muted); font-style: italic; }
.econ-example { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: #eef4ff; font-size: 13px; line-height: 1.5; }
.econ-example:empty { display: none; }
.formbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 24px; }
.formbar button, .formbar .btn { margin: 0; }
.formbar--inline { margin: 14px 0 0; }

.calc-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.calc-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-head span { font-size: 12px; color: var(--muted); }
.calc-head b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-head small { font-size: 12px; color: var(--muted); line-height: 1.35; }
@media (max-width: 1100px) { .calc-head { grid-template-columns: minmax(0,1fr); } }
.calc-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.calc-table td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.calc-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table tr.calc-total td { font-weight: 650; border-bottom: 0; padding-top: 10px; }
.calc-table tr.calc-total + tr.calc-total td { padding-top: 0; border-top: 1px solid var(--line); }
.v--ok { color: #009900; }

.confirm-box { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.confirm-box h3 { margin: 0 0 10px; font-size: 16px; }
.infobar--warn { background: #fde8e6; color: #ff0000; }
.infobar--warn .infobar__i { background: #ff0000; font-style: normal; }
.confirm-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.confirm-row button { margin: 0; }
.confirm-row .hint { align-self: center; }


/* the menu «Загрузить закупку» (links and a file picker as menu items), the sources table, the empty state */
html.look-flat a.menu__item, html.look-flat label.menu__item { display: block; margin: 0; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
html.look-flat a.menu__item:hover, html.look-flat label.menu__item:hover { background: var(--band); text-decoration: none; }
.table-tools > details.menu { margin: 0 8px 0 0; }
.table-tools > details.menu > summary { height: 36px; border-radius: 12px; padding: 0 14px; }
.sources { width: 100%; border-collapse: collapse; }
.sources td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.sources tr:last-child td { border-bottom: 0; }
.sources__name { width: 34%; font-weight: 550; }
.sources__act { text-align: right; white-space: nowrap; }
.sources__act form { display: inline-block; margin: 0; }
.sources__act .btn { margin: 0; }
.fileform { display: block; margin-top: 8px; text-align: right; }
.fileform > summary { list-style: none; cursor: pointer; }
.fileform > summary::-webkit-details-marker { display: none; }
.fileform form { margin-top: 8px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.fileform input[type=file] { width: auto; max-width: 260px; }
.empty-state { text-align: center; padding: 44px 24px; }
.empty-state__ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #e3f6ec; color: #009900; font-size: 26px; line-height: 52px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { max-width: 560px; margin: 0 auto 10px; }
.empty-state .btn { margin-top: 10px; }

/* ---- shared loading and empty states (11.10.2026) ----
   .skel-lines: grey bars instead of the word «Загрузка…» while a panel/journal/dialog loads (the shimmer is the same as on the home page);
   .halo-empty: the one «nothing here» block — a short title and, when there is something to do, one line saying what; --chart is the small variant in a card. */
@keyframes skel-shine { to { background-position-x: -200%; } }
.skel-lines { display: grid; gap: 10px; padding: 8px 2px; }
.skel-lines > i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(110deg, #eceff5 30%, #f7f8fb 50%, #eceff5 70%); background-size: 200% 100%; animation: skel-shine 1.4s linear infinite; }
.skel-lines > i:nth-child(1) { width: 92%; } .skel-lines > i:nth-child(2) { width: 76%; } .skel-lines > i:nth-child(3) { width: 58%; }
td > .skel-lines { min-width: 220px; }
@media (prefers-reduced-motion: reduce) { .skel-lines > i, .hk--skeleton { animation: none; } }
.halo-empty { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 18px 20px; color: var(--muted); font-size: 13px; background: var(--v3-band, #f7f9fd); border-radius: 12px; }
.halo-empty[hidden] { display: none; }
.halo-empty__t { color: #3d4a5c; font-size: 14px; font-weight: 600; }
.halo-empty__s { max-width: 460px; }
.halo-empty--chart { min-height: 96px; padding: 10px 14px; gap: 0; background: #f7f9fd repeating-linear-gradient(90deg, #d5dbe6 0 6px, transparent 6px 11px) 0 72% / 100% 1px no-repeat; }
.halo-empty--chart .halo-empty__t { font-size: 13px; font-weight: 500; color: var(--muted); background: #f7f9fd; padding: 0 8px; }
.halo-empty--tall { aspect-ratio: 420 / 150; }
html[data-theme=dark] .halo-empty, html[data-theme=dark] .halo-empty--chart .halo-empty__t { background-color: var(--v3-surface, #142031); }
html[data-theme=dark] .halo-empty { color: var(--v3-muted, #a0acc0); }
html[data-theme=dark] .halo-empty__t { color: var(--v3-text, #edf2f9); }
html[data-theme=dark] .skel-lines > i { background: linear-gradient(110deg, #1b2a40 30%, #25364f 50%, #1b2a40 70%); background-size: 200% 100%; }

/* the price calculator: the category drop-down, field errors, the two zone cards */
.combo { position: relative; max-width: 560px; }
.combo input[type=text] { max-width: none; width: 100%; }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--chip, #dfe4ec); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 26, 52, .14); }
.combo__list[hidden] { display: none; }
.combo__list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.combo__list li:hover { background: var(--band, #f4f6fa); }
.combo__list li small { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.combo__list li.combo__empty { color: var(--muted); cursor: default; }
.combo__list li.combo__empty:hover { background: none; }
.field-error { margin: 5px 0 0; font-size: 13px; color: #ff0000; }
.calc-zones { align-items: stretch; }
.calc-zone h2 { margin-top: 0; }
.calc-zone--fits { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 8%, transparent); }      /* the colour of the marketplace, both themes */
.calc-head--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-head b { font-size: 26px; }
.calc-level { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.calc-level--ok { color: #009900; }
.calc-level--low { color: #ff0000; }
.calc-level--bad { color: #ff0000; }
.calc-zone__note { margin: 0 0 12px; }
.calc-table-price { margin-bottom: 14px; }


/* «Цена Ozon» is the green number of the unit-economics tables (owner's request 2026-09-24) */
html.look-flat #products_table td[data-col="ozon_price"],
html.look-flat #group_table td[data-col="ozon_price"] { color: #009900; font-weight: 550; }

.mark-exception { margin-left: 2px; color: #ff0000; font-weight: 700; cursor: help; }   /* «*»: the связка is allowed a profit below the company minimum */

.formbar { flex-wrap: wrap; }
.formbar button, .formbar .btn { white-space: nowrap; }

/* the confirming password: a text field drawn as dots (Chrome's password manager does not touch it), «Показать пароль», the Caps Lock warning */
.secret-input { -webkit-text-security: disc; text-security: disc; }
.secret-input.is-shown { -webkit-text-security: none; text-security: none; }
.secret-tools { display: flex; align-items: center; gap: 14px; margin: 5px 0 0; min-height: 20px; }
.secret-tools .linkbtn { font-size: 13px; }
.secret-caps { font-size: 13px; font-weight: 600; color: #ff0000; }
.secret-passkey { font-size: 13px; color: var(--muted, #6b7280); }
.confirm-row .secret-tools, .formbar .secret-tools { margin-top: 2px; }

/* «Инструкция»: a window with the how-to of a page */
.help-btn { margin: 0; }
dialog.help-dialog { border: 0; border-radius: 20px; padding: 0; width: min(780px, calc(100% - 32px)); max-height: 88vh; color: var(--text); box-shadow: 0 24px 80px rgba(0, 26, 52, .35); }
dialog.help-dialog::backdrop { background: rgba(0, 26, 52, .45); }
.help-dialog__in { display: flex; flex-direction: column; max-height: 88vh; }
.help-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 12px; border-bottom: 1px solid var(--line); }
.help-dialog__head h2 { margin: 0; font-size: 20px; }
.help-dialog__x { margin: 0; height: 32px; width: 32px; padding: 0; background: none; color: var(--muted); font-size: 24px; font-weight: 400; line-height: 1; border-radius: 8px; }
.help-dialog__x:hover { background: var(--band, #f4f6fa); color: var(--text); }
.help-dialog__body { padding: 8px 24px 12px; overflow-y: auto; font-size: 14px; line-height: 1.55; }
.help-dialog__body h3 { margin: 18px 0 6px; font-size: 16px; }
.help-dialog__body p { margin: 8px 0; }
.help-dialog__body ol, .help-dialog__body ul { margin: 6px 0 6px 20px; padding: 0; }
.help-dialog__body li { margin: 5px 0; }
.help-dialog__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 12px 24px 16px; border-top: 1px solid var(--line); text-align: right; }
.help-dialog__foot button, .help-dialog__foot .btn { margin: 0; }

/* «Инструкция»: a soft blue so that it stands out a little and invites a read, without shouting */
html.look-flat .help-btn { background: #e6f0ff; color: #005bff; border: 1px solid #c3d9ff; font-weight: 600; }
html.look-flat .help-btn:hover { background: #d6e6ff; border-color: #a9c8ff; }
.help-btn::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: #0b4fc4; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }



/* «Продажи» (2026-09-25): a drop is brick red, growth is green; the two biggest movers and any product's chart sit above the table. */
.fbo-tile--good .v { color: #009900; }
tr.row--alert > td:first-child { box-shadow: inset 3px 0 0 #ff0000; }
tr.row--boom > td:first-child { box-shadow: inset 3px 0 0 #16874a; }
tr.row--alert > td { background: #fff8f8; }
tr.row--boom > td { background: #f6fcf8; }
.sales-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 16px; }
.sales-card { margin-bottom: 0; }
.sales-card--down { border-top: 3px solid #ff0000; }
.sales-card--up { border-top: 3px solid #16874a; }
.sales-card--focus { grid-column: 1 / -1; }
.sales-card__k { font-size: 12px; color: var(--muted, #7a889b); text-transform: uppercase; letter-spacing: .04em; }
.sales-card__t { font-weight: 700; font-size: 16px; margin: 4px 0; }
.sales-card__t span { font-weight: 400; color: var(--muted, #7a889b); font-size: 13px; }
.sales-card__n { margin-bottom: 6px; }
.sales-card__legend { font-size: 12px; color: var(--muted, #7a889b); display: flex; gap: 6px; align-items: center; }
.sales-card .lg { display: inline-block; width: 18px; height: 0; border-top: 3px solid #94a3b8; margin-left: 10px; }
.sales-card--down .lg--now { border-top-color: #ff0000; margin-left: 0; }
.sales-card--up .lg--now { border-top-color: #16874a; margin-left: 0; }
.sales-card .lg--prev { border-top-style: dashed; }
.sales-card__h { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sales-card__h span { font-size: 12px; background: #f1f5f9; border-radius: 999px; padding: 2px 10px; color: #000000; }
/* «Связки» → «Показать таблицей»: a required setting that is still empty */
html.look-flat .tablewrap input.purchase-input.is-missing { border-color: #ff0000; }
#group-table td.chk { text-align: center; }
.conflict-mark { font-weight: 700; }   /* the red «!» of a связка that overlaps another one */

/* the bar of the ticked products in «Юнит-экономика»: always in view at the bottom of the window, the two money buttons are the main ones */
.bulkbar--float { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; margin: 0; padding: 10px 16px; gap: 10px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 26, 52, .28); max-width: calc(100vw - 24px); }
.bulkbar__count { font-size: 15px; }
.bulkbar__group { display: inline-flex; align-items: center; gap: 8px; }
.bulkbar__group--main { display: inline-flex; gap: 10px; }
.bulkbar__group--main .btn { height: 38px; padding: 0 18px; font-size: 15px; font-weight: 600; }
body:has(.bulkbar--float:not([hidden])) .savebar { bottom: 92px; }
/* «ДРР общий» in the list of campaigns, by the owner's standard (ads/charts.py zone_of): below 8 % good, 8-10 % normal, above 10 % bad */
td.drr--good { color: var(--primary); font-weight: 600; }
td.drr--normal { color: var(--ok-fg); font-weight: 600; }
td.drr--bad { color: var(--err-fg); font-weight: 600; }
/* the freshness line on the BLUE card of a campaign: black on a light chip, never green/red on blue */
.infocards .card:first-child .fresh, .infocards .card:first-child .fresh--none { color: #000; background: rgba(255, 255, 255, .92); padding: 2px 10px; border-radius: 8px; display: inline-block; font-weight: 600; }
.infocards .card:first-child a.on-blue { color: #fff; text-decoration: underline; }
.journal__body { padding-top: 10px; }
.journal__body table { width: 100%; }

/* Столбец с текстом по левому краю (журнал функций): общий стиль таблиц центрирует ячейки */
html.look-flat .tablewrap th.left, html.look-flat .tablewrap td.left { text-align: left; }

/* ---- Sorter upload: two big drop zones (owner, 2026-09-28: the small «Выберите файл» fields were hard to hit, files landed in the neighbouring field) ---- */
.dz-lead { margin: 0 0 14px; color: var(--muted); }
.dropzones { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-bottom: 14px; }
@media (max-width: 760px) { .dropzones { grid-template-columns: minmax(0,1fr); } }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 230px; padding: 26px 20px;
  border: 2px dashed #9fb3d1; border-radius: var(--radius); background: var(--panel); text-align: center; cursor: pointer; margin: 0; font-weight: 400;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.dropzone:hover { border-color: var(--primary); background: #eef4ff; }
.dropzone.is-over { border-color: var(--primary); border-style: solid; background: #e3eeff; box-shadow: 0 0 0 5px rgba(0, 91, 255, .14); transform: scale(1.015); }
.dz-dragging .dropzone:not(.is-over):not(.has-file) { border-color: var(--primary); }
.dropzone.has-file { border-style: solid; border-color: #1a9c55; background: var(--ok-bg); }
.dropzone__input { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; border: 0; }
.dropzone__step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; }
.dropzone.has-file .dropzone__step { background: #1a9c55; }
.dropzone__icon { width: 58px; height: 58px; color: var(--primary); }
.dropzone.has-file .dropzone__icon { color: #1a9c55; }
.dropzone__title { font-size: 21px; font-weight: 700; }
.dropzone__hint { color: var(--muted); font-size: 15px; max-width: 280px; }
.dropzone__file { font-size: 15px; word-break: break-all; }
.dropzone__file b { font-weight: 650; }
.dropzone__file i { font-style: normal; color: var(--muted); white-space: nowrap; }
.dropzone__change { color: var(--primary); font-size: 14px; font-weight: 600; }
.dz-message { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14.5px; }
.dz-message--error { background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); }
.dz-message--warning { background: #fff6e0; color: #7a5a00; border: 1px solid #f0d080; }

/* sorter result: how many pieces were really added to the ledger (big), the rest is secondary */
.ledger { border: 1px solid; border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 14px; }
.ledger--added { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.ledger--already, .ledger--none { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-fg); }
.ledger__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ledger__main { font-size: 26px; line-height: 1.25; margin-bottom: 6px; }
.ledger__main strong { font-weight: 800; }
.ledger__side { font-size: 13px; opacity: .85; }

/* One HALO design system. Only marketplace tokens and existing hero surfaces change. */
body[data-marketplace="wildberries"] {
  /* WB accent = one lilac (--v3-wb: #8b3fe0 light / #c7a3ff dark), decision of the owner 15.10.2026 */
  --primary: var(--v3-wb); --primary-hover: color-mix(in srgb, var(--v3-wb) 80%, var(--v3-text)); --primary-dark: color-mix(in srgb, var(--v3-wb) 50%, var(--v3-text));
  --link: var(--v3-wb); --panel: color-mix(in srgb, var(--v3-wb) 5%, var(--v3-surface)); --line: color-mix(in srgb, var(--v3-wb) 14%, var(--v3-surface));
  --btn2-bg: color-mix(in srgb, var(--v3-wb) 10%, transparent); --btn2-hover: color-mix(in srgb, var(--v3-wb) 18%, transparent);
}
body[data-marketplace="wildberries"] .drr-hero,
html.look-accent body[data-marketplace="wildberries"] .hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-hover) 48%, var(--primary));
  box-shadow: 0 12px 34px color-mix(in srgb, var(--v3-wb) 20%, transparent);
}
body[data-marketplace="wildberries"] input:focus,
body[data-marketplace="wildberries"] select:focus,
body[data-marketplace="wildberries"] textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--v3-wb) 14%, transparent); }
html.look-flat body[data-marketplace="wildberries"] .table-tab.is-on .table-tab__n {
  background: var(--panel); color: var(--primary-dark);
}
body[data-marketplace="wildberries"] .note__star:hover,
body[data-marketplace="wildberries"] .note__star.is-on { color: var(--primary); }
html.look-flat body[data-marketplace="wildberries"] .help-btn {
  background: var(--panel); color: var(--primary); border-color: var(--line);
}
html.look-flat body[data-marketplace="wildberries"] .help-btn:hover {
  background: color-mix(in srgb, var(--v3-wb) 14%, var(--v3-surface)); border-color: var(--primary);
}
body[data-marketplace="wildberries"] .help-btn::before { background: var(--primary); color: var(--v3-surface); }
.mainnav .nav-disabled { color: var(--muted); padding: 12px 8px; font-size: 14px; white-space: nowrap; cursor: default; }
.mainnav .nav-disabled small { font-size: 9px; opacity: .7; }
body[data-marketplace="wildberries"] .drr-badge { color: var(--primary); }
body[data-marketplace="wildberries"] .delta--good { color: var(--primary); }
body[data-marketplace="wildberries"] .drr-legend__halo { background: linear-gradient(90deg,#fff,#d9c2ff); }

/* Brand marks are navigation links; the selected cabinet remains clear without recolouring the other brand. */
.marketplace-switch { border-bottom: 1px solid var(--line); background: #fff; }
.marketplace-switch__in { max-width: 1264px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 10px; }
.marketplace-switch__item { --brand: #005bff; --brand-tint: #eef5ff; display: inline-flex; align-items: center; justify-content: center; width: 176px; height: 52px; border: 2px solid var(--line); border-radius: 12px; background: #fff; flex: none; transition: background .15s, border-color .15s; }
.marketplace-switch__item--wb { --brand: var(--v3-wb); --brand-tint: color-mix(in srgb, var(--v3-wb) 8%, var(--v3-surface)); }
.marketplace-switch__item img { display: block; object-fit: contain; }
.marketplace-switch__item:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; }
.marketplace-switch__item[aria-current="page"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 2px 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.marketplace-switch__item:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* The WB placeholders take more space than the Ozon links. Keep the account controls inside the header. */
body[data-marketplace="wildberries"] .topbar__in { gap: 18px; }
body[data-marketplace="wildberries"] .mainnav a { padding-left: 12px; padding-right: 12px; }
body[data-marketplace="wildberries"] .mainnav .nav-disabled { padding-left: 6px; padding-right: 6px; }
body[data-marketplace="wildberries"] .topbar__right { gap: 10px; }
@media (max-width: 1400px) {
  body[data-marketplace="ozon"] .topbar__in { flex-wrap: wrap; height: auto; min-height: 60px; row-gap: 0; }
  body[data-marketplace="ozon"] .mainnav { order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; }
  body[data-marketplace="ozon"] .mainnav a { min-height: 44px; }
}
@media (max-width: 1120px) {
  body[data-marketplace="wildberries"] .topbar__in { flex-wrap: wrap; height: auto; min-height: 60px; row-gap: 0; }
  body[data-marketplace="wildberries"] .mainnav { order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; }
  body[data-marketplace="wildberries"] .mainnav a { min-height: 44px; }
}
@media (max-width: 600px) {
  .ads-control-bar__main, .ads-control-bar__acts, .ads-control-bar .ads-act { min-width: 0; }
  .ads-control-bar .ads-launch { flex-wrap: wrap; }
  .ads-control-bar .ads-launch > :is(.ads-launch__pw,.ads-launch__pwbox) { flex: 1 1 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .ads-control-bar .ads-launch > button { max-width: 100%; white-space: normal; height: auto; min-height: 36px; }
  .marketplace-switch__in { padding: 10px 14px; }
  .marketplace-switch__item { width: 154px; }
}

/* Владелец, 04.10.2026, все таблицы сайта. Заголовок переносится по словам, а если столбец сузили мышью (таблица переходит
   в фиксированную ширину) — и внутри слова, но не вылезает за край. Окно шестерёнки: подпись столбца переносится целиком,
   без прокрутки вбок. */
.tablewrap th { overflow-wrap: break-word; }
.tablewrap table.col-fixed th { overflow-wrap: anywhere; }
.table-panel { overflow-x: hidden; }
.table-panel > .hint { white-space: normal; overflow-wrap: anywhere; }
.table-panel li { align-items: flex-start; white-space: normal; }
.table-panel li > span:last-child, .table-panel li > label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.table-panel li > .handle, .table-panel li > input[type=checkbox] { flex: none; margin-top: 2px; }

/* Владелец, 04.10.2026: переключатель Ozon / Wildberries был огромным (плитки 176×52 с толстой рамкой). Теперь он как плашки
   периода: одна серая подложка, выбранный маркетплейс — белая кнопка с лёгкой тенью, логотипы высотой 16 px. */
.marketplace-switch__in { padding: 8px 24px; }
.marketplace-switch__group { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); }
.marketplace-switch__item { width: auto; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.marketplace-switch__item img { height: 16px; width: auto; opacity: .5; transition: opacity .15s; }
.marketplace-switch__item:hover { border: 0; background: rgba(255, 255, 255, .6); }
.marketplace-switch__item:hover img { opacity: .85; }
.marketplace-switch__item[aria-current="page"] { border: 0; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.marketplace-switch__item[aria-current="page"] img { opacity: 1; }
@media (max-width: 600px) { .marketplace-switch__in { padding: 8px 14px; } .marketplace-switch__item { width: auto; } }

/* «Команда»: права как меню сайта — раздел → страница → что можно делать (версии прав, 04.10.2026) */
.perm-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 8px 0 10px; }
.perm-section { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.perm-section legend { padding: 0 6px; margin-left: -6px; font-size: 14px; font-weight: 700; color: var(--text); }
.perm-section__note { margin: 0 0 8px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.perm-page + .perm-page { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.perm-page__title { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.perm-page label { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 4px; font-size: 13.5px; font-weight: 400; line-height: 1.35; }
.perm-page input[type=checkbox] { margin-top: 2px; flex: none; }
.perm-new { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #dbe7ff; color: #005bff; font-size: 11px; font-weight: 650; }
.perm-new-note { margin: 0 0 10px; }
.perm-module { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: 13.5px; font-weight: 400; line-height: 1.35; }
.perm-module input[type=checkbox] { margin-top: 2px; flex: none; }
.perm-module .hint { display: block; font-size: 12px; }
.perm-module.perm-locked { opacity: .65; cursor: not-allowed; }
.perm-module.perm-locked input[type=checkbox] { cursor: not-allowed; }
.perm-markets { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: stretch; }
.perm-market-col { min-width: 0; }
.perm-market-col .perm-section { margin-bottom: 8px; }
@media (max-width: 800px) { .perm-markets { grid-template-columns: minmax(0,1fr); } }
.perm-market { margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--line); font-size: 16px; font-weight: 700; }
.perm-owner-only { margin: 0 0 12px; }
/* Владелец, 04.10.2026, все таблицы сайта: если столбец сузили мышью (таблица переходит в фиксированную ширину), текст ячейки,
   который не влезает, переносится — по словам, а длинное слово по буквам, и не вылезает за край. */
.tablewrap table.col-fixed td, .tablewrap table.col-fixed td.cut, .tablewrap table.col-fixed td .t, .tablewrap table.col-fixed td .s {
  white-space: normal; overflow-wrap: anywhere; word-break: normal; text-overflow: clip; }
.tablewrap table.col-fixed td.cut { overflow: visible; max-width: none; }
/* the grey name under an article stays two lines with «…» (the owner's row-height rule), it only breaks inside long words */
/* «Продажи»: ссылки «график · диагностика» — обычный столбец, переносятся, если узко */
.tablewrap td.links-cell { white-space: normal; min-width: 90px; }

/* «Продажи»: ABC и ячейки в две строки */
.sales-totals__t td.left, .sales-totals__t th.left { text-align: left; white-space: normal; }
.abc { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 700; text-align: center; }
.abc--a { background: #dbe7ff; color: #005bff; } .abc--b { background: #eef1f5; color: #4d5a6b; } .abc--c { background: #f5f7fa; color: #8a94a3; }
.tablewrap td.two-line { white-space: normal; }

/* «Продажи» — лёгкая страница по уровням важности (владелец, 04.10.2026; docs/TZ_SALES_LIGHT.md) */
.sales-kpis .kpi__sub { margin: -2px 0 6px; font-size: 12.5px; color: var(--muted); }
.sales-moves__row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; font-size: 15px; }
html.look-flat .sales-moves__n { height: auto; margin: 0; padding: 0; border: 0; background: none; font-size: 28px; font-weight: 800; line-height: 1.1; cursor: pointer; }
html.look-flat .sales-moves__n:hover { background: none; text-decoration: underline; }
.sales-watch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 8px; }
html.look-flat .sales-watch .card.bubble { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0; min-width: 0; }
.sales-watch__card--falling { box-shadow: inset 4px 0 0 #ff6b6b; }
.sales-watch__card--rising { box-shadow: inset 4px 0 0 #2fbf71; }
.sales-watch .card-head h2 { font-size: 17px; }
.sales-watch__list { list-style: none; margin: 10px 0 6px; padding: 0; }
.sales-watch__list li { padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.sales-watch__list li:last-child { border-bottom: 0; }
.sales-watch__main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; }
.sales-watch__offer { font-weight: 650; text-align: left; overflow-wrap: anywhere; }
.sales-watch__n, .sales-watch__money { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.sales-watch__money { min-width: 92px; text-align: right; font-weight: 600; }
.sales-watch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sales-watch__fact { color: #4b5563; font-weight: 500; }
.sales-watch__fact.is-warn { color: #d9480f; }
.sales-watch__dot { color: #c2c8d0; }
.sales-kpis__legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sales-kpis__legend .lg { display: inline-block; width: 16px; height: 0; border-top: 3px solid #94a3b8; margin-left: 8px; }
.sales-kpis__legend .lg--now { margin-left: 0; border-top-color: var(--leg, #16874a); }
.sales-kpis__legend .lg--prev { border-top-width: 2px; border-top-style: dashed; }
.sales-watch__signal b { color: #005bff; }
html.look-flat .sales-watch__x { height: auto; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; }
html.look-flat .sales-watch__x:hover { color: var(--text); background: none; }
.sales-watch__all { margin-top: 4px; font-weight: 600; }
.sales-watch__empty { margin: 14px 0 4px; }
.sales-watch__note { margin: 4px 0 22px; }
.sales-table .card-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.sales-table .count-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); }
html.look-flat .sales-table .count-mode__item { height: 28px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; }
html.look-flat .sales-table .count-mode__item.is-on { color: var(--text); background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.sales-product__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 14px 0; }
.sales-product__num { padding: 10px 12px; border-radius: 12px; background: #f6f8fc; }
.sales-product__num span { display: block; font-size: 12px; color: var(--muted); }
.sales-product__num b { font-size: 19px; font-variant-numeric: tabular-nums; }
.sales-product__chart { margin: 4px 0 14px; }
.sales-product__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
.sales-product__grid h3 { margin: 0 0 8px; font-size: 15px; }
.sales-product__facts { list-style: none; margin: 0; padding: 0; }
.sales-product__facts li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #eef1f5; font-size: 13.5px; }
.sales-product__facts li.sales-product__hint { display: block; color: #8a5a00; }
.sales-product__facts li.sales-product__signal { color: #005bff; }
.sales-product__go { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) { .sales-watch, .sales-product__grid { grid-template-columns: minmax(0,1fr); } }
.sales-product .lg { display: inline-block; width: 18px; height: 0; border-top: 3px solid #94a3b8; margin-left: 10px; }
.sales-product .lg--now { border-top-color: #005bff; margin-left: 0; }
.sales-product .lg--prev { border-top-style: dashed; }

/* Shared column picker: only its list scrolls; actions stay within the viewport. */
.table-panel.table-panel--columns { position: fixed; right: auto; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; z-index: 50; }
.table-panel--columns .table-panel__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex: none; }
.table-panel--columns > .hint, .table-panel--columns > .table-panel__actions { flex: none; }
.table-panel--columns > ul { min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.group-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 16px; }
.group-actions__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.group-actions__row > label { flex: 0 0 150px; margin: 0; }
.group-actions__row > input[type=text], .group-actions__row > select { flex: 1 1 360px; min-width: 260px; max-width: 600px; width: auto; box-sizing: border-box; }
.group-actions__row > button { flex: none; margin: 0; max-width: 100%; box-sizing: border-box; }
.group-actions__row--summary > label { flex: none; margin-left: 24px; }
.group-actions__row--summary > input { width: auto; }
/* Stock semantics are independent of the selected marketplace's theme. */
table[data-marketplace=wb] .state--low { color: var(--v3-amber, #b26a00); }
.group-campaigns-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 32px; }
.group-campaigns-head h2 { min-width: 0; overflow-wrap: anywhere; }
.group-campaigns-head > .help-btn { flex: none; margin: 0; }
.fbo-dialog table.group-campaigns { table-layout: auto; width: 100%; min-width: 0; }
.group-campaigns [data-col=name], .group-campaigns .cell2 .t { white-space: normal; overflow-wrap: anywhere; }
.group-campaigns [data-col=status], .group-campaigns [data-col=last_spend] { white-space: nowrap; }
.group-campaigns [data-col=name] { width: 100%; }
@media (max-width: 650px) { .group-actions__row > label { flex-basis: 100%; } .group-actions__row > input[type=text], .group-actions__row > select { min-width: 0; flex-basis: 100%; } }

/* Product identifier copy controls: always visible, compact, with no exportable text. */
.copy-id-btn{display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;width:24px;min-width:24px;height:24px;min-height:0;padding:3px!important;margin:0 0 0 4px;border:0!important;border-radius:4px;background:transparent!important;color:var(--muted,#737373);box-shadow:none!important;cursor:pointer}
.copy-id-btn svg{fill:none;stroke:currentColor;stroke-width:1.6;pointer-events:none}
.copy-id-btn:hover,.copy-id-btn:focus-visible{color:var(--blue,#005bff);background:var(--blue-light,#edf4ff)!important}
.copy-id-btn:focus-visible{outline:2px solid currentColor;outline-offset:1px}
.copy-id-btn[data-copy-state=done]{color:#16833d}
.copy-id-btn[data-copy-state=error]{color:#c93636}
.copy-id-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media print{.copy-id-btn,.copy-id-status{display:none!important}}

.copy-id-line{display:flex;align-items:center;min-width:0}.copy-id-line>.bar-row__name{min-width:0;flex:1}

/* Account tools share the marketplace row; the top row is reserved for modules. */
.marketplace-switch__in { align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.marketplace-switch .topbar__right { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; gap: 12px 16px; min-width: 0; }
.marketplace-switch .who { display: inline; overflow-wrap: anywhere; }
.topbar__in .mainnav { min-width: 0; overflow-x: auto; }
@media (min-width: 900px) {
  body[data-marketplace] .topbar__in { flex-wrap: nowrap; height: 60px; }
  body[data-marketplace] .mainnav { order: initial; flex-basis: auto; }
}
@media (max-width: 600px) {
  .marketplace-switch .topbar__right { flex-basis: 100%; justify-content: flex-start; margin-left: 0; }
  .marketplace-switch__group { max-width: 100%; }
  .marketplace-switch__item { width: min(154px, 40vw); }
}

/* Two-level dials must shrink inside a narrow card instead of overflowing its padding. */
.drr-dial, .dash-hero .drr-dial, .drr-side { min-width: 0; }
.drr-dial svg { display: block; }
/* Search/query periods share the saved-data Sales component; no button top-margin in its form. */
.periodbar__custom button { margin: 0; height: 32px; }
.periodbar a.pill { height: 32px; padding: 0 12px; }
.periodbar a.pill:hover { background: var(--btn2-hover); }
.periodbar a.pill.pill--blue:hover { color: var(--primary); }

/* Search queries: reuse HALO fields, keeping this filter and phrase alignment local. */
[data-server-filters].fields { align-items: flex-end; }
html.look-flat [data-server-filters].fields label { margin: 0; min-width: 0; flex: 0 1 210px; }
[data-server-filters].fields input[type=search], [data-server-filters].fields select {
  width: 100%; max-width: none; height: 36px; box-sizing: border-box; padding: 0 12px; font: inherit;
}
[data-server-filters].fields input[type=search] { appearance: none; }
[data-server-filters].fields input[type=search]:focus, [data-server-filters].fields select:focus { border-color: var(--primary); }
html.look-flat .tablewrap table[data-table="search-queries-queries"] th[data-col="phrase"],
html.look-flat .tablewrap table[data-table="search-queries-queries"] td[data-col="phrase"] { text-align: left; }
html.look-flat .tablewrap table[data-table="search-queries-queries"] td[data-col="phrase"] { white-space: normal; overflow-wrap: anywhere; }
html.look-flat .tablewrap table[data-table="search-queries-queries"] td[data-col="phrase"] a { text-align: inherit; }

/* WB purchase import: one compact wizard above the current product list. */
.wb-import-dialog { padding:0; overflow:hidden; display:none; }
.wb-import-dialog[open] { display:flex; flex-direction:column; }
.wb-import-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 26px; border-bottom:1px solid var(--line,#e5e7eb); }
.wb-import-head h2 { margin:0; }
.wb-import-head .help-dialog__x { position:static; }
.wb-import-body { padding:22px 26px; min-height:0; overflow:auto; }
.wb-import-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; min-height:260px; padding:26px; border:2px dashed var(--line,#e5e7eb); border-radius:16px; cursor:pointer; text-align:center; }
.wb-import-drop input { position:absolute; width:1px; height:1px; opacity:0; }
.wb-import-drop:focus-within,.wb-import-drop.is-dragging { border-color:var(--accent,#005bff); }
.wb-import-fields { display:grid; gap:12px; margin:20px 0; }
.wb-import-fields .field { display:grid; grid-template-columns:190px minmax(0,1fr); align-items:center; gap:16px; margin:0; }
.wb-import-fields select { width:100%; min-width:0; }
.wb-import-fields input[type=number] { width:90px; }
.wb-import-details { margin:14px 0; }
.wb-import-details summary { cursor:pointer; color:var(--muted,#6b7280); }
.wb-import-details .field { margin:12px 0; }
.wb-import-details table button { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wb-import-footer { flex-shrink:0; display:flex; justify-content:flex-end; gap:12px; margin:0; padding:16px 26px; border-top:1px solid var(--line,#e5e7eb); }
.wb-import-results { overflow:auto; }
.wb-import-results td.art { max-width:240px; }
.wb-import-results .cell2 small { display:block; max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wb-import-results td[data-col=result] { max-width:190px; white-space:normal; }
@media(max-width:650px){.wb-import-fields .field{grid-template-columns:minmax(0,1fr);gap:4px;}.wb-import-head,.wb-import-body{padding:16px;}.wb-import-head h2{font-size:20px;}}

.wb-import-body > div > form, .wb-import-body > form { max-width:none; }
.wb-import-body h3 { margin:0 0 14px; }
.wb-import-body form:has([data-wb-import-sheet]) { display:flex; align-items:center; gap:16px; }
.wb-import-body form:has([data-wb-import-sheet]) label { width:190px; flex-shrink:0; margin:0; }

/* The wizard uses the same scroll/clipping boundary as all HALO tables. */
.wb-import-dialog .tablewrap { min-width:0; max-width:100%; }
.wb-import-dialog .tablewrap td { overflow:hidden; }
.wb-import-dialog .tablewrap .cell2 { min-width:0; max-width:100%; }
.wb-import-dialog .tablewrap .cell2 strong { white-space:normal; overflow-wrap:anywhere; }
.wb-import-dialog .tablewrap .cell2 small { max-width:100%; }
.wb-import-sample button[data-cell] { display:block; max-width:200px; width:100%; min-height:32px; height:auto; padding:6px; margin:0; border-radius:4px; background:transparent; color:var(--text); font-weight:400; text-align:left; line-height:1.4; }

/* Forms of the Wildberries unit economics are drawn like the Ozon ones: number and date fields follow the text fields */
.field input[type=number], .field input[type=date] { max-width: 380px; }
.field-unit input[type=number] { max-width: none !important; width: 100%; padding-right: calc(16px + 1ch * 4); }
.field-unit input[type=number]::-webkit-outer-spin-button, .field-unit input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-unit input[type=number] { -moz-appearance: textfield; }

/* The search box of a table stands at the left edge (its size is set further down, with the other table-tools rules) */
.table-tools .table-search { margin: 0 auto 0 0; }                          /* the search stands at the left edge in every table */

/* Shared feedback (ui.js, owner 2026-10-08): a locked button with a spinner, short messages at the bottom, a progress bar for long actions */
@keyframes halo-spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: halo-spin .7s linear infinite; }
button.is-busy, .btn.is-busy { cursor: progress; opacity: .8; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 16px; background: #1f2937; color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: min(560px, calc(100vw - 32px)); }
.toast--bad { background: #b91c1c; }
.toast__undo { background: none; border: 0; padding: 0; margin: 0; flex: none; white-space: nowrap; height: auto; color: #93c5fd; font: inherit; font-weight: 600; cursor: pointer; }      /* margin: the common button has margin-top 14px - «Отменить» sat lower than the text */
.progressbox { pointer-events: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 300px; box-shadow: 0 6px 20px rgba(0,0,0,.12); font-size: 13.5px; }
.progressbox .bar { margin-top: 8px; }
.progressbox--unknown .bar i { width: 30% !important; animation: halo-slide 1.2s ease-in-out infinite; }
@keyframes halo-slide { 0% { margin-left: 0; } 50% { margin-left: 70%; } 100% { margin-left: 0; } }
/* an editable cell while it is being saved, and right after */
td.cell-saving { background-image: linear-gradient(90deg, transparent, rgba(0,91,255,.06), transparent); }
td.cell-saved { box-shadow: inset 0 0 0 2px rgba(22,163,74,.35); transition: box-shadow .6s; }
td.cell-error { box-shadow: inset 0 0 0 2px rgba(220,38,38,.55); }
/* a row sold at a loss: a light red wash over the whole row (owner, 2026-10-08) */
.tablewrap tr.row-loss > td { background-color: rgba(220,38,38,.06); }
/* the link to the product on the marketplace + the small icon «в кабинет продавца» */
.sku-link { white-space: nowrap; }
.sku-cab { margin-left: 6px; color: var(--muted); text-decoration: none; font-size: 12px; opacity: .7; }
.sku-cab::before { content: "\2699"; }
.sku-cab:hover { opacity: 1; color: var(--primary); }

/* Home top row «Ozon | WB | Всего» (modules/_mp_cards.html) */
.kpis--mp .kpi__total { font-weight: 400; color: var(--muted); font-size: 12px; }
.kpi__mp { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.kpi__mp li { display: flex; gap: 6px; align-items: baseline; }
.kpi__mp span { color: var(--muted); }
.kpi__mp-ozon b { color: #005bff; }
.kpi__mp-wb b { color: #a1008a; }
.kpi__sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
html.look-flat .tablewrap table.home-buyouts th, html.look-flat .tablewrap table.home-buyouts td { text-align: left; }
html.look-flat .tablewrap table.home-buyouts th.num, html.look-flat .tablewrap table.home-buyouts td.num { text-align: center; }
.fbs-counts { display: flex; gap: 18px; margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.fbs-counts b { margin-left: 4px; }
.home-async--mp { min-height: 150px; }
.home-async > .hint { margin: 12px 0; }
/* the products table of «Юнит-экономика»: marks next to a price and the profit (owner, 2026-10-08) */
.mark-own, .mark-low { margin-left: 3px; font-weight: 700; color: #b45309; font-size: 12px; vertical-align: super; }
.mark-own { color: var(--primary); }
button.cell-reset { height: auto; padding: 0 2px; margin-left: 2px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
button.cell-reset:hover { color: var(--primary); }
td.cell-price { white-space: nowrap; }
.econ-legend { margin-top: 10px; }
.econ-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.econ-stack > .card { margin-bottom: 0; }

/* «Тарифы и новые цены» (owner, 2026-10-09): what changed, the upload boxes with their links, tidy file pickers */
.changes__list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.changes__list li { line-height: 1.5; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0; }
@media (max-width: 900px) { .upload-grid { grid-template-columns: minmax(0,1fr); } }
.upload-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.upload-box h3 { margin: 0 0 6px; font-size: 15px; }
.upload-box p { margin: 0 0 8px; }
.upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
input[type=file].file-input { font-size: 13px; color: var(--muted); max-width: 100%; }
input[type=file].file-input::file-selector-button { height: 32px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--chip, #dfe4ec); border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
input[type=file].file-input::file-selector-button:hover { background: var(--band, #f4f6fa); }
.what-next { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.what-next p { margin: 0 0 8px; }
.tariff-rows { display: grid; gap: 0; }
.tariff-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.tariff-row:first-child { border-top: 0; }
.tariff-row__name { font-weight: 600; }
.tariff-row__state { line-height: 1.6; }
.tariff-row__act { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tariff-row__act .upload-form { margin-top: 0; }
@media (max-width: 1000px) { .tariff-row { grid-template-columns: minmax(0,1fr); gap: 6px; } }
/* WB «Тарифы»: the delivery steps edited right in their row */
.steps-edit > summary { list-style: none; cursor: pointer; }
.steps-edit > summary::-webkit-details-marker { display: none; }
.steps-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-top: 8px; }
.steps-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 500; }
.steps-form input[type=text] { width: 80px; }

/* ---- «Тарифы и новые цены»: what to do now and until when (economics/future_flow.py, _future_flow.html). Ozon and Wildberries alike ---- */
.fp-hero { --fp-accent: var(--primary); --fp-bg: color-mix(in srgb, var(--primary) 9%, #fff); position: relative; display: flex; gap: 18px; align-items: center; margin: 0 0 14px;
  padding: 18px 22px 18px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.fp-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--fp-accent); }
.fp-hero--ok { --fp-accent: #1fa463; --fp-bg: #e8f7ee; }
.fp-hero--info { --fp-accent: var(--primary); --fp-bg: color-mix(in srgb, var(--primary) 9%, #fff); }
.fp-hero--warn { --fp-accent: #f5a400; --fp-bg: #fff4d6; }
.fp-hero--bad { --fp-accent: #e5372c; --fp-bg: #fdebeb; }
.fp-hero__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--fp-bg); color: var(--fp-accent); font-size: 24px; font-weight: 800; }
.fp-hero__body { flex: 1 1 auto; min-width: 0; }
.fp-hero__title { margin: 0 0 4px; font-size: 19px; line-height: 1.25; }
.fp-hero__text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 760px; }
.fp-hero__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fp-hero__when { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 118px; padding: 10px 16px; border-radius: 16px; background: var(--fp-bg); color: var(--fp-accent); text-align: center; line-height: 1.15; }
.fp-hero__when .fp-hero__date { font-size: 12.5px; font-weight: 600; opacity: .9; }
.fp-hero__when b { font-size: 34px; font-weight: 800; margin: 2px 0; }
.fp-hero__when small { font-size: 12px; }
.fp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.fp-step { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--panel); color: var(--muted); font-weight: 550; font-size: 14px; }
.fp-step__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; }
.fp-step--current { background: color-mix(in srgb, var(--primary) 9%, #fff); color: var(--text); box-shadow: inset 0 0 0 2px var(--primary); }
.fp-step--current .fp-step__n { border-color: var(--primary); color: var(--primary); }
.fp-step--done { color: var(--text); }
.fp-step--done .fp-step__n { border-color: #1fa463; background: #1fa463; color: #fff; }
.fp-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 18px; color: #fff; background: #f5a400; vertical-align: 1px; }
.fp-badge--bad { background: #e5372c; }
.fp-badge--ok { background: #1fa463; }
.fp-badge--info { background: var(--primary); }
/* one table at a time: the tabs replace the folds and the links «показать ↓» */
.fp-tabs { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.fp-tabs button { margin: 0; height: auto; padding: 8px 0 10px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); font-weight: 650; font-size: 15px; cursor: pointer; }
.fp-tabs button:hover { color: var(--text); }
.fp-tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--primary); }
.fp-tabs .fp-count { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 20px; }
.fp-tabs button[aria-selected=true] .fp-count { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); }
.fp-pane[hidden] { display: none; }
.fp-sign { display: grid; gap: 10px; max-width: 520px; }
.fp-sign__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--panel); }
.fp-sign__row b { display: block; font-size: 14.5px; }
.fp-sign__row small { color: var(--muted); }
@media (max-width: 860px) { .fp-hero { flex-wrap: wrap; } .fp-steps { grid-template-columns: minmax(0,1fr); } }
/* the words of a column title are never torn in the middle («Остато-к», «Расчётн-ая»): the column becomes as wide as its longest word */
html.look-flat .fp-pane .tablewrap th, .fp-pane .tablewrap th { overflow-wrap: anywhere; word-break: normal; hyphens: manual; }
.fp-eyebrow { display: block; margin: 0 0 2px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fp-how { margin-top: 6px; }
.fp-how__list { margin: 4px 0 6px 18px; padding: 0; line-height: 1.55; }

/* the tabs: a straight underline, never the rounded button of the rest of the site (the ends of the line used to curl up) */
html.look-flat .fp-tabs button, .fp-tabs button { border-radius: 0 !important; background: none !important; box-shadow: none !important; border-width: 0 0 2px 0 !important; border-style: solid !important; border-color: transparent !important; }
html.look-flat .fp-tabs button[aria-selected=true], .fp-tabs button[aria-selected=true] { border-color: var(--primary) !important; }
/* «Тарифы»: a short head with the check on its right, then compact aligned rows (name | in force | new | actions) */
.tariff-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.tariff-head h2 { margin: 0; }
.tariff-head__check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tariff-head__check form { margin: 0; }
.tariff-rows--compact .tariff-row { grid-template-columns: 200px minmax(200px, 1fr) minmax(250px, 1.3fr) auto; align-items: center; gap: 6px 20px; padding: 10px 0; }
.tariff-rows--compact .tariff-row__act { flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.tariff-rows--compact .tariff-row__act form { margin: 0; }
.tariff-rows--compact .tariff-row__wide { grid-column: 2 / -1; }
.tariff-rows--compact .tariff-row small { display: block; margin-top: 2px; }
@media (max-width: 1000px) { .tariff-rows--compact .tariff-row { grid-template-columns: minmax(0,1fr); } .tariff-rows--compact .tariff-row__wide { grid-column: auto; } .tariff-rows--compact .tariff-row__act { justify-content: flex-start; } }

/* «Что и когда вступает в силу»: the tables in the order of their dates; a card opens its table below */
.fp-tl { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.fp-tl__item { display: grid; grid-template-columns: 130px minmax(0, 1fr) 190px; gap: 8px 20px; align-items: center; width: 100%; margin: 0; padding: 12px 16px; height: auto;
  text-align: left; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; text-decoration: none; }
a.fp-tl__item { cursor: pointer; }
div.fp-tl__item { cursor: default; }
html.look-flat .fp-tl__item:hover, html.look-flat .fp-tl__item:active, html.look-flat .fp-tl__item:focus { background: #fff !important; color: inherit !important; box-shadow: none; border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); text-decoration: none; }
html.look-flat .fp-tl__item:hover { background: #f7f8fa !important; }
html.look-flat .fp-tl__item[aria-selected=true], html.look-flat .fp-tl__item[aria-selected=true]:hover { background: color-mix(in srgb, var(--primary) 4%, #fff) !important; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.fp-tl__item * { color: inherit; }
.fp-tl__item .fp-tl__kind, .fp-tl__item .fp-tl__open { color: var(--primary); }
.fp-tl__item .fp-tl__text, .fp-tl__item .fp-tl__date small { color: var(--muted); }
.fp-tl__item[aria-selected=true] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--primary) 4%, #fff); }
.fp-tl__date { display: flex; flex-direction: column; line-height: 1.25; }
.fp-tl__date b { font-size: 16px; }
.fp-tl__date small, .fp-tl__text { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.fp-tl__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-tl__kind { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fp-tl__state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.fp-tl__open { color: var(--primary); font-size: 13px; font-weight: 600; }
@media (max-width: 860px) { .fp-tl__item { grid-template-columns: minmax(0,1fr); } .fp-tl__state { align-items: flex-start; text-align: left; } }
/* the rows of the tariff list: one grid for all rows, so that every column starts at the same place */
.tariff-rows--compact .tariff-row { grid-template-columns: 190px 200px minmax(160px, 1fr) minmax(0, 450px); align-items: center; }      /* 190+200+160+450+3*20 = 1060 — помещается в окно 1159 (было 1100+, страница шире окна) */
.tariff-row { grid-template-columns: 220px minmax(0, 1fr) 420px; }
.tariff-row__btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tariff-row__btns form { margin: 0; }
.fp-pane__title { margin: 6px 0 8px; font-size: 16px; }

/* Loss: a light transparent red behind the profit number (owner, 2026-10-09) */
.tablewrap td.cell-loss { background: rgba(255, 0, 0, .09); color: #c40000; font-weight: 600; }

/* The grip of the last column sits inside the table: it stuck out by 3 px past the scroll area and could not be caught (owner, 2026-10-09: «статус не меняется по ширине») */
.tablewrap th:last-child > .col-grip { right: 0; }

/* A card that needs a decision is red, not the calm blue of the chosen one (owner, 2026-10-09) */
html.look-flat .fp-tl__item--bad, html.look-flat .fp-tl__item--bad:hover, html.look-flat .fp-tl__item--bad[aria-selected=true] { border-color: rgba(255, 0, 0, .55) !important; background: rgba(255, 0, 0, .06) !important; box-shadow: none; }
html.look-flat .fp-tl__item--bad[aria-selected=true] { box-shadow: inset 0 0 0 1px rgba(255, 0, 0, .55); }
.fp-tl__item--bad .fp-tl__kind, .fp-tl__item--bad .fp-tl__open { color: #c40000; }

/* «Цены, которые нужно поднять»: a card of its own, the table of the commission changes below it stays read-only (owner, 2026-10-09) */
.late-card { border: 1px solid var(--line, #e1e5ee); border-radius: 16px; padding: 14px 16px 16px; background: transparent; margin: 12px 0 8px; }
.late-card__title { margin: 0 0 6px; font-size: 16px; }
.late-card .tablewrap { background: #fff; }
.late-card th[data-col=pick], .late-card td[data-col=pick] { width: 44px; text-align: center; }
.late-card input.late-own { width: 84px; text-align: center; height: 30px; padding: 0 8px; border-radius: 10px; }
.late-card__go { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; }
.late-card__go input[type=password] { width: 200px; height: 34px; }

/* The hover of a row is a grey veil ON TOP of the fill (red, green): the fill stays and gets darker, it is not replaced (owner, 2026-10-09, for every table) */
tr.row--alert:hover > td:first-child { box-shadow: inset 3px 0 0 #ff0000, inset 0 0 0 9999px rgba(15, 23, 42, .045) !important; }
tr.row--boom:hover > td:first-child { box-shadow: inset 3px 0 0 #16874a, inset 0 0 0 9999px rgba(15, 23, 42, .045) !important; }

/* the columns of the review table keep a width in which a header word is not torn into letters */
.late-card th { min-width: 84px; }
.late-card td.why { white-space: normal; min-width: 260px; max-width: 420px; text-align: left; }   /* the reason is a sentence: it wraps instead of stretching the table */
.late-card td.why small { display: block; margin-top: 4px; color: var(--muted); }
.late-card th[data-col=pick] { min-width: 44px; }
.late-card th[data-col=offer] { min-width: 230px; }
.late-card th[data-col=sku] { min-width: 120px; }
.late-card th[data-col=own] { min-width: 100px; }


/* ---- the home pages (owner, 2026-10-09): every card has the same slots, so the charts stand at one height; the rows of the cards below have one height */
.home-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 12px 0 0; }
.home-kpis + .home-kpis { margin-top: 16px; }
.hk { display: flex; flex-direction: column; margin-bottom: 0; padding: 16px 18px 12px; }
.hk__head { display: flex; align-items: baseline; gap: 6px; min-height: 18px; }
.hk .kpi__row { margin: 4px 0 2px; }
.hk__mp { margin: 4px 0 0; min-height: 22px; }
.hk__sub { font-size: 12.5px; color: var(--muted); min-height: 18px; margin: 2px 0 6px; }
.hk__chart { aspect-ratio: 420 / 150; }
.hk__chart svg { display: block; width: 100%; height: auto; }
.hk__legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); min-height: 16px; margin-top: 2px; }
.hk__legend .sw { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.sw--good { background: #1d4ed8; } .sw--bad { background: #ff0000; } .sw--flat { background: #94a3b8; }
.sw--ozon { background: #1d4ed8; } .sw--wb { background: var(--v3-wb); }
.sw--prev { background: repeating-linear-gradient(90deg, #9aa7b8 0 5px, transparent 5px 8px); }
html.look-flat .hk--skeleton, .hk--skeleton { min-height: 320px; background: linear-gradient(110deg, #eceff5 30%, #f7f8fb 50%, #eceff5 70%); background-size: 200% 100%; animation: hk-shine 1.4s linear infinite; border-color: #e3e8f0; }
.home-kpis--skeleton { opacity: .85; }
@keyframes hk-shine { to { background-position-x: -200%; } }
.home-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 18px; }
.home-row > .card, html.look-flat .home-row > .card { margin-bottom: 0; }
.home-row > .card:only-child, .home-row > .home-async:only-child { grid-column: 1 / -1; }
.home-row > .home-async { display: flex; flex-direction: column; min-width: 0; }
.home-row > .home-async > .card { flex: 1 1 auto; margin-bottom: 0; }
.home-async__ph { display: flex; align-items: center; min-height: 260px; }
.home-row > .card { display: flex; flex-direction: column; min-width: 0; }
.hb .card-head .hint { font-weight: 400; margin-left: 6px; }
.hb__note { margin: 2px 0 10px; }
.hb__list { list-style: none; margin: 0; padding: 0; }
.hb__list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid #eef1f5; }
.hb__list li:first-child { border-top: 0; }
.hb__name { min-width: 0; }
.hb__name .t { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb__name .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb__val { flex: 0 0 180px; min-width: 160px; max-width: 56%; text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: stretch; }
.hb__metric { display: grid; grid-template-columns: minmax(0, 1fr) 7ch 3ch; column-gap: 4px; align-items: center; height: 20px; line-height: 20px; }
.hb__label { text-align: left; font-size: 12px; color: var(--muted); }
.hb__number { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hb__unit { text-align: left; font-size: 12px; }
.hb__foot { margin-top: auto; padding-top: 8px; }
.fbs-low__note { margin-top: auto; padding-top: 8px; }
.rep-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rep-product > div { min-width: 0; }
.rep-product-photo { width: 40px; height: 48px; flex: none; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* the table «Все товары» of the home pages (modules/_home_products*.html): the ready tables.js table; colour only in «Оборот» (the bar, the colour of the marketplace) and «ДРР» */
.home-async--products { margin-top: 16px; }
.home-products .card-head h2 .hint { font-weight: 400; margin-left: 6px; }
.hp-mp { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.hp-mp--ozon { background: color-mix(in srgb, var(--v3-ozon) 12%, var(--v3-surface)); color: var(--v3-ozon); }
.hp-mp--wb { background: color-mix(in srgb, var(--v3-wb) 12%, var(--v3-surface)); color: var(--v3-wb); }
.hp-bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--v3-band); overflow: hidden; }
.hp-bar i { display: block; height: 100%; border-radius: 6px; }
.hp-bar--ozon { background: var(--v3-ozon); }
.hp-bar--wb { background: var(--v3-wb); }
.hp-drr { display: inline-block; min-width: 54px; padding: 3px 8px; border-radius: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.hp-drr--good { background: color-mix(in srgb, var(--v3-green) 14%, var(--v3-surface)); color: var(--v3-green); }
.hp-drr--mid { background: var(--v3-amber-bg); color: var(--v3-amber); }
.hp-drr--bad { background: var(--v3-red-bg); color: var(--v3-red); }
.hp-note { color: var(--muted); font-weight: 600; }
.hp-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; line-height: 16px; font-weight: 700; background: var(--v3-red-bg); color: var(--v3-red); }
.tip--warn { color: var(--v3-amber); font-weight: 700; font-size: 13px; }
@media (max-width: 1100px) { .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-row { grid-template-columns: minmax(0,1fr); } }

html.look-flat .home-row > .card:not(.notes-home), html.look-flat .home-row > .home-async > .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 0; }

html.look-flat .card.hk--skeleton { background: linear-gradient(110deg, #eceff5 30%, #f7f8fb 50%, #eceff5 70%); background-size: 200% 100%; border-color: #e3e8f0; }

/* the lists of the two lower cards fill the card down to its bottom: the rows share the free height */
.home-row .hb__list, .home-row .soon { flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 4px; }
.home-row .hb__list li, .home-row .soon li { flex: 1 1 0; }
#fbs-low { flex: 1 1 auto; display: flex; flex-direction: column; }
#fbs-low .soon { flex: 1 1 auto; }

/* ---- WB: minimum price and auto promotions (wb_autopromo) ---- */
.wbap-bounds { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin: 4px 0 12px; }
.wbap-bound { flex: 1 1 190px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: #fff; }
.wbap-bound span { display: block; color: var(--muted); font-size: 13px; }
.wbap-bound b { display: block; font-size: 28px; letter-spacing: -.01em; line-height: 1.15; }
.wbap-bound--warn { border-color: var(--warn-line); background: var(--warn-bg); }
.wbap-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 0; counter-reset: wbap; }
.wbap-step { background: var(--panel); border-radius: var(--radius); padding: 14px 16px 12px; }
.wbap-step::before { counter-increment: wbap; content: counter(wbap); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.wbap-step b { display: block; margin-bottom: 4px; }
.wbap-step p { margin: 0; font-size: 13px; color: var(--muted); }
.wbap-step.is-done::before { background: var(--ok-fg); }
.wbap-term { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 64px; }
.wbap-term i { display: block; height: 100%; background: var(--ok-fg); }
.wbap-term.is-low i { background: #ff9d00; }
.wbap-term.is-bad i { background: var(--err-fg); }
/* the same bar as a <progress> (no inline width): the module «Минимальная цена» */
progress.wbap-term { display: block; width: 100%; border: 0; appearance: none; -webkit-appearance: none; background: var(--line); color: var(--ok-fg); }
progress.wbap-term::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
progress.wbap-term::-webkit-progress-value { background: var(--ok-fg); border-radius: 3px; }
progress.wbap-term::-moz-progress-bar { background: var(--ok-fg); border-radius: 3px; }
progress.wbap-term.is-low { color: var(--v3-amber); }
progress.wbap-term.is-low::-webkit-progress-value { background: var(--v3-amber); }
progress.wbap-term.is-low::-moz-progress-bar { background: var(--v3-amber); }
progress.wbap-term.is-bad { color: var(--err-fg); }
progress.wbap-term.is-bad::-webkit-progress-value { background: var(--err-fg); }
progress.wbap-term.is-bad::-moz-progress-bar { background: var(--err-fg); }
.wbap-files { display: grid; gap: 10px; }
.wbap-file { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.wbap-gantt { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; margin: 6px 0 14px; }
.wbap-gantt__inner { min-width: 980px; position: relative; }
.wbap-gantt__head { display: flex; border-bottom: 1px solid var(--line); background: var(--panel); }
.wbap-day { flex: 1 1 0; text-align: center; padding: 6px 0 5px; font-size: 11px; color: var(--muted); border-left: 1px solid var(--line); line-height: 1.15; }
.wbap-day:first-child { border-left: 0; }
.wbap-day span { display: block; font-weight: 600; color: var(--text); font-size: 13px; }
.wbap-day small { display: block; font-size: 10px; }
.wbap-day.is-today span { color: var(--primary); }
.wbap-day.is-weekend { background: rgba(0, 26, 52, .03); }
.wbap-gantt__body { position: relative; padding: 8px 0; }
.wbap-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--primary); opacity: .5; z-index: 2; pointer-events: none; }
.wbap-row { position: relative; height: 34px; }
.wbap-bar { position: absolute; top: 3px; height: 28px; border-radius: 8px; padding: 0 10px; display: flex; align-items: center; gap: 8px; color: #fff;
  font-size: 13px; overflow: hidden; white-space: nowrap; z-index: 1; box-shadow: 0 1px 2px rgba(0, 26, 52, .12); }
.wbap-bar:hover { text-decoration: none; filter: brightness(1.07); }
.wbap-bar b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wbap-bar i { font-style: normal; background: rgba(255, 255, 255, .24); border-radius: 6px; padding: 1px 6px; font-size: 12px; flex: 0 0 auto; }
.wbap-bar--running { background: linear-gradient(90deg, #005bff, #3d8bff); }
.wbap-bar--soon { background: linear-gradient(90deg, #8fb3ff, #b9d0ff); color: #0b2a66; }
.wbap-bar--soon i { background: rgba(255, 255, 255, .6); }
.wbap-bar--ended { background: #cfd6e0; color: #46525f; box-shadow: none; }
.wbap-bar--regular { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px), linear-gradient(90deg, #005bff, #3d8bff); }
.wbap-bar--regular.wbap-bar--ended { background-image: none; background: #cfd6e0; }
.wbap-meter { position: relative; height: 8px; border-radius: 4px; background: var(--line); min-width: 130px; margin: 6px 0 2px; }
.wbap-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--primary); }
.wbap-meter u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #737373; text-decoration: none; }
.wbap-boost { font-weight: 650; }
.wbap-boost small { color: var(--muted); font-weight: 400; }
.wbap-table td, .wbap-table th { vertical-align: top; }
.wbap-note { background: var(--panel); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 14px; }
.wbap-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* «Минимальная цена»: three bubbles of one build (owner, 2026-10-10): the number in the corner, the titles and the texts on one level, the buttons on one line at the bottom */
.wbap-steps--3 .wbap-step, .wbap-steps--4 .wbap-step { position: relative; display: flex; flex-direction: column; padding: 16px 18px; }
.wbap-steps--3 .wbap-step::before, .wbap-steps--4 .wbap-step::before { position: absolute; top: 14px; right: 16px; margin: 0; width: 24px; height: 24px; font-size: 13px; }
.wbap-steps--3 .wbap-step b, .wbap-steps--4 .wbap-step b { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0 40px 6px 0; }
.wbap-steps--3 .wbap-step p, .wbap-steps--4 .wbap-step p { margin: 0 0 14px; }
.wbap-steps--3 .wbap-step__go, .wbap-steps--4 .wbap-step__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 40px; margin: auto 0 0; }
.wbap-steps--3 .wbap-step__go button, .wbap-steps--3 .wbap-step__go .btn, .wbap-steps--4 .wbap-step__go button, .wbap-steps--4 .wbap-step__go .btn { height: auto; min-height: 40px; max-width: 100%; margin: 0; white-space: normal; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.wbap-steps--3 .wbap-step__go input[type="text"], .wbap-steps--4 .wbap-step__go input[type="text"] { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; }
.wbap-steps--3 .wbap-step__go .secret-tools, .wbap-steps--4 .wbap-step__go .secret-tools { display: none; }               /* the password of the bubble is typed on one line with its button */
@media (max-width: 900px) { .wbap-steps, .wbap-steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* four steps of «Минимальная цена»: up to ~1280 px a 2×2 grid, so the buttons are never cut or pushed over the next card */
@media (max-width: 1280px) { .wbap-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- WB prices and promotions: order and alignment (10.10.2026) ----
   One rule for every form of these pages: the label stands over its field, every field and button is 40px high, the button stands on the line of
   the fields (never lower: the global button margin is cancelled), and what the password field adds («Показать пароль») hangs UNDER its own field. */
.wbap-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; margin: 0; }
.wbap-form .field { margin: 0; min-width: 0; }
.wbap-form .field > label { display: block; margin: 0 0 6px; line-height: 20px; min-height: 20px; }
.wbap-form .field > label.wbap-gap { visibility: hidden; }
.wbap-form .field input[type=text], .wbap-form .field input[type=datetime-local], .wbap-form .field select, .wbap-form .field input[type=file] { width: 100%; max-width: none; }
.wbap-form input[type=datetime-local] { height: 40px; padding: 0 12px; border: 1px solid #cfd6e0; border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--text); }
.wbap-form input[type=file] { display: block; height: 40px; padding: 4px; border: 1px solid #cfd6e0; border-radius: var(--radius-sm); background: #fff; color: var(--muted); font-size: 13px; }
.wbap-form input[type=file]::file-selector-button, .wbap-file-in::file-selector-button { height: 30px; margin-right: 10px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--btn2-bg); color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wbap-form button, .wbap-form .btn, .wbap-sw button, .wbap-file button, .wbap-file .btn, .wbap-actions button, .wbap-actions .btn { margin: 0; white-space: nowrap; }
.wbap-w-xs { width: 130px; } .wbap-w-s { width: 170px; } .wbap-w-m { width: 240px; } .wbap-w-l { width: 320px; } .wbap-w-xl { width: 440px; }
.wbap-form .field.wbap-grow { flex: 1 1 100%; }
.wbap-form .field.wbap-grow textarea { max-width: none; width: 100%; }

.wbap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 6px; }
.wbap-head h2 { margin: 0; }
.wbap-head .hint { margin: 0; }
.wbap-limits { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 10px 0 6px; }
.kpis.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.kpis--4, .kpis.kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a switch: the text on the left, the password and the button on the right on one line */
.wbap-sw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.wbap-sw:first-child { border-top: 0; padding-top: 4px; }
.wbap-sw__t { font-weight: 650; }
.wbap-sw__d { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.wbap-sw__m { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.wbap-ctl { display: grid; grid-template-columns: 240px 120px; gap: 0 12px; align-items: start; margin: 0; }
.wbap-ctl > button { width: 100%; margin: 0; }
.wbap-ctl.wbap-ctl--limit { grid-template-columns: 90px minmax(0, 240px) 120px; gap: 12px; }
@media (max-width: 600px) { .wbap-ctl.wbap-ctl--limit { grid-template-columns: minmax(0, 1fr); } }
.wbap-ctl--wide { grid-template-columns: 240px auto; }
.wbap-ctl .secret-tools { margin: 4px 0 0; }
@media (max-width: 900px) { .wbap-sw { grid-template-columns: minmax(0,1fr); } .wbap-ctl { grid-template-columns: minmax(0, 1fr) 120px; } .wbap-ctl--wide { grid-template-columns: minmax(0, 1fr); gap: 8px 0; } }

/* a block that can be opened: the title on the left, the short state on the right, always on one line */
details.wbap-acc { border-top: 1px solid var(--line); }
details.wbap-acc > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; }
details.wbap-acc > summary > b { font-weight: 650; }
details.wbap-acc > summary .wbap-acc__s { margin-left: auto; color: var(--muted); font-size: 13.5px; font-weight: 400; text-align: right; }
details.wbap-acc[open] > summary { margin-bottom: 4px; }
.wbap-acc__body { padding: 0 0 16px 24px; }
.wbap-acc__body > p:first-child { margin-top: 0; }
.wbap-acc__body .wbap-note:last-child { margin-bottom: 0; }

.wbap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 12px 0 0; }
.wbap-actions .wbap-actions__more { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-weight: 400; }
.wbap-actions .wbap-actions__more input { margin: 0; }
.wbap-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; }
.wbap-file__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.wbap-file__act form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.wbap-file__act input[type=text] { width: 260px; }
@media (max-width: 900px) { .wbap-file { grid-template-columns: minmax(0,1fr); } .wbap-file__act { justify-content: flex-start; } }
html.look-flat .tablewrap table.wbap-table th:nth-child(-n+2), html.look-flat .tablewrap table.wbap-table td:nth-child(-n+2) { text-align: left; }
html.look-flat .wbap-acc__body .tablewrap th, html.look-flat .wbap-acc__body .tablewrap td { text-align: left; }
html.look-flat .wbap-acc__body .tablewrap th.num, html.look-flat .wbap-acc__body .tablewrap td.num { text-align: center; }
.wbap-table td, .wbap-table th { vertical-align: middle; }
.wbap-steps { align-items: stretch; }
.wbap-note { display: block; }
.wbap-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13.5px; }
.wbap-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wbap-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 5px; }
.wbap-gantt { margin: 8px 0 16px; }
.wbap-ctl .secret-tools, .wbap-form .secret-tools { justify-content: flex-start; text-align: left; }
/* the table under the calendar never scrolls sideways: fixed columns, the long names and texts wrap */
html.look-flat .tablewrap table.wbap-table { table-layout: fixed; width: 100%; }
html.look-flat .tablewrap table.wbap-table th, html.look-flat .tablewrap table.wbap-table td { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.wbap-table th:nth-child(1) { width: 28%; } .wbap-table th:nth-child(2) { width: 15%; } .wbap-table th:nth-child(3) { width: 22%; }
.wbap-table th:nth-child(4) { width: 13%; } .wbap-table th:nth-child(5) { width: 22%; }
.wbap-gantt__inner { min-width: 0; }
.wbap-day { min-width: 0; padding-left: 0; padding-right: 0; overflow: hidden; }
/* the products table of «Участие в акциях» fits the page even with every column on (numeric columns may be narrower than the global 72px) */
html.look-flat .tablewrap table#promo_table th { min-width: 60px; }

/* «Минимальная цена»: the words of the state are never broken by syllables when a column gets narrow (owner, 2026-10-10) */
table[data-table^="promotions.protection"] td, table[data-table^="promotions.protection"] th { hyphens: none; word-break: normal; overflow-wrap: normal; }
/* a state is read as a whole: the phrases of the tabs, the figures and the state column are wrapped between words only, never by syllables (owner, 2026-10-10) */
.table-tab, .kpi__title, .state { hyphens: none; word-break: normal; overflow-wrap: normal; }
/* every cell of this table wraps at the spaces when the column is narrow (the date in two lines, «Нужна новая защита» in two), words are never broken */
html.look-flat .tablewrap table[data-table^="promotions.protection"] td, html.look-flat .tablewrap table[data-table^="promotions.protection"] .state { white-space: normal; }
table[data-table^="promotions.protection"] .wbap-term { max-width: 100%; min-width: 40px; }
/* the minimum widths of the columns are lower here (the global 72px / 230px), so that the words wrap into two lines and the whole table fits the screen */
html.look-flat .tablewrap table[data-table^="promotions.protection"] th { min-width: 60px; }
html.look-flat .tablewrap table[data-table^="promotions.protection"] th[data-col="pick"] { min-width: 0; }
html.look-flat .tablewrap table[data-table^="promotions.protection"] td.cell2 { min-width: 190px; }
html.look-flat .tablewrap table[data-table^="promotions.protection"] td[data-col="status"] { min-width: 98px; }          /* «Нужна новая / защита»: two lines at the most */
/* the two fields of the table are narrower: the whole picture has to fit the screen */
html.look-flat .tablewrap table[data-table^="promotions.protection"] input.purchase-input { width: 78px; }

/* «Аналитика продвижения HALO» (owner, 2026-10-10; Ozon and WB share it): cards with charts, the dial against the target, two short lists, the table of связки
   and the window of one связка. The cards, lists, tabs and dialog are the site's own (.kpis, .sales-watch, .table-tabs, .fbo-dialog); only what is new is here. */
.adg-kpis { margin-bottom: 18px; }
.adg-hero { margin-bottom: 18px; }
.adg-lists { margin-bottom: 18px; }
.adg-lists__unit { margin: 6px 0 0; font-size: 12px; }
.adg-table .hint { margin: 2px 0 10px; }
table.adg-t td.adg-spark { width: 130px; min-width: 110px; padding-top: 2px; padding-bottom: 2px; text-align: center; }
table.adg-t td.adg-spark svg { display: block; width: 120px; height: 28px; margin: 0 auto; }
.adg-drr--bad { color: var(--err-fg); font-weight: 700; }
.adg-drr--good { color: var(--primary); font-weight: 700; }
.adg-drr--normal { color: var(--ok-fg); font-weight: 700; }
.adg-cover--bad { color: var(--err-fg); font-weight: 700; }
.adg-cover--warn { color: #d9480f; font-weight: 600; }
.adg-cover--ok { color: var(--ok-fg); }
.adg-window .adg-win__title { margin: 0 0 6px; padding-right: 36px; }
.adg-win__state { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 14px; }
.adg-win__nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.adg-win__nums div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.adg-win__nums span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.adg-win__nums b { font-size: 18px; font-variant-numeric: tabular-nums; }
.adg-win__hero { margin: 0 0 14px; padding: 16px 20px 12px; }
.adg-win__sub { margin: 18px 0 8px; font-size: 16px; }
@media (max-width: 900px) { .adg-win__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- «Управление кампаниями» и таблица «Массовая настройка»: единый вид полей и галочек ---- */
.ads-act { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 30, 60, .04); }
.ads-act__t { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ads-launch .ads-launch__pw { height: 40px; }
.ads-launch button { height: 40px; border-radius: 12px; }
.ads-act .btn-secondary { background: #eef2f9; color: var(--text); }
.ads-act .btn-secondary:hover { background: #e3e9f4; }
.ads-bulk table[data-table="ads.bulk"] input[type=checkbox], .ads-bulk .ads-bulk-tools input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #c3cad8; border-radius: 6px; background: #fff; cursor: pointer;
  vertical-align: middle; transition: background .12s, border-color .12s; }
.ads-bulk table[data-table="ads.bulk"] input[type=checkbox]:hover { border-color: var(--primary); }
.ads-bulk table[data-table="ads.bulk"] input[type=checkbox]:checked { background-color: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat; }
.ads-bulk table[data-table="ads.bulk"] input[type=checkbox]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html.look-flat .ads-bulk .tablewrap input.purchase-input--time { font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; padding: 0 4px; }
html.look-flat .ads-bulk .tablewrap input.purchase-input { height: 34px; border-radius: 10px; }

/* UI polish 2026: shared geometry, marketplace colour tokens. Chart SVGs, table
   sizing/pinning, calculations and action handlers retain their own contracts. */
:root {
  --accent-soft: #eef4ff;
  --accent-line: #bfd3ff;
  --focus-rgb: 0, 91, 255;
  --surface: #ffffff;
  --content-width: 1440px;
}
body[data-marketplace="wildberries"] {
  --accent-soft: #fbf0f9;
  --accent-line: #eac1e3;
  --focus-rgb: 200, 0, 161;
  --band: #faf5f9;
  --chip: #e5dbe3;
}
body { font-synthesis: none; }
.topbar__in, .marketplace-switch__in, .subnav__in, .footer { max-width: var(--content-width); }
.logo { flex-shrink: 0; }
.topbar__in { gap: 24px; }
.mainnav { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.mainnav a { flex-shrink: 0; }
.mainnav a:hover { background: var(--accent-soft); }
.subnav__in { overflow-x: auto; scrollbar-width: thin; }
.subnav a { flex-shrink: 0; white-space: nowrap; }
.marketplace-switch__group { flex-shrink: 0; }
html.look-flat .page:not(.page--narrow) { max-width: var(--content-width); }
.pagehead { align-items: center; margin-bottom: 24px; gap: 16px 24px; }
.pagehead > div:first-child { min-width: 0; }
.pagehead .sub { max-width: 78ch; line-height: 1.55; margin-top: 6px; }
html.look-flat h1 { letter-spacing: -.025em; line-height: 1.25; }
html.look-flat h2 { letter-spacing: -.015em; line-height: 1.35; }
.pagehead .row { row-gap: 8px; }
html.look-flat .card { margin-bottom: 28px; }
.grid, .home-row, .sales-watch, .sales-product__grid { min-width: 0; }
.grid > *, .home-row > *, .sales-watch > *, .sales-product__grid > * { min-width: 0; }
html.look-flat .panel { border: 1px solid var(--line); background: var(--band); }
.hint, .pagehead .sub, .stat { line-height: 1.5; }
.fresh { display: inline-block; margin-top: 4px; line-height: 1.5; }
html.look-flat .help-btn { background: var(--accent-soft); color: var(--primary); border-color: var(--accent-line); }
html.look-flat .help-btn:hover { background: var(--accent-soft); border-color: var(--primary); }
.help-btn::before { background: var(--primary); }
html.look-flat button:focus-visible, html.look-flat .btn:focus-visible,
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
html.look-flat input:focus, html.look-flat select:focus, html.look-flat textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--focus-rgb), .12);
}
html.look-flat input:disabled, html.look-flat select:disabled, html.look-flat textarea:disabled {
  background-color: var(--band); color: var(--muted); opacity: 1;
}
html.look-flat button:disabled, html.look-flat .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
html.look-flat textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; }
input[type=time], input[type=datetime-local] { font-family: var(--font); color: var(--text); }
.profile-tabs { overflow-x: auto; scrollbar-width: thin; }
.profile-tabs a { flex-shrink: 0; white-space: nowrap; }
.infobar, .bulkbar, .econ-example { background: var(--accent-soft); }
.cat-toggle.is-on { background: var(--accent-soft); border-color: var(--accent-line); }
html.look-flat .table-toggle.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--primary); }
html.look-flat .table-tab.is-on .table-tab__n { background: var(--accent-soft); color: var(--primary); }
.table-tools { gap: 8px; margin-bottom: 12px; }
.table-tools .table-search { flex: 1 1 280px; min-width: min(240px, 100%); max-width: 400px; }
.table-tools .table-search + * { margin-left: 0; }
.table-tools > .btn-sm, .table-tools > details.menu, .table-tools .cat-toggle { margin-right: 0; }
.table-tools .table-filter { margin-right: 0; }
html.look-flat .tablewrap { border-color: var(--line); border-radius: 14px; }
html.look-flat .tablewrap th { color: var(--muted); font-weight: 600; line-height: 1.4; }
.tablewrap td.num, .kpi__value, .calc-head b, .stat b { font-variant-numeric: tabular-nums; }
.tablewrap td a { text-underline-offset: 3px; }
html.look-flat .viewswitch .pill.pill--blue { color: var(--primary); }
html.look-flat .card.kpi, html.look-flat .card.hk {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 0;
}
.kpi__title { line-height: 1.45; }
.hk__head { align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.hk__sub { line-height: 1.5; }
.hk__legend { flex-wrap: wrap; gap: 6px 14px; line-height: 1.5; }
.hk__legend > span { white-space: nowrap; }
.kpi__mp { flex-wrap: wrap; }
.drr-legend { flex-wrap: wrap; row-gap: 8px; }
.drr-dial { flex-shrink: 1; }
/* The Ozon and WB series keep their own identity even inside the other theme. */
.sw--ozon { background: #005bff; }
.sw--wb { background: var(--v3-wb); }
.help-dialog, .fbo-dialog { border-radius: 20px; border-color: var(--line); }
.help-dialog__head, .help-dialog__foot { border-color: var(--line); }
.help-dialog__body { line-height: 1.6; }
.auth .card, html.look-flat .auth .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: 0 8px 32px rgba(0, 26, 52, .06);
}
.halo-assistant { display: block; object-fit: contain; margin: 0 auto 20px; }
.help-dialog__head::before {
  content: ""; display: block; flex: 0 0 44px; width: 44px; height: 44px;
  background: url("brand/halo-assistant-concept.3883d7fdc23d.png") center / contain no-repeat;
}
.help-dialog__head h2 { min-width: 0; flex: 1; }
@media (max-width: 1000px) {
  .tariff-row, .tariff-rows--compact .tariff-row { grid-template-columns: minmax(0, 1fr); }
  .tariff-rows--compact .tariff-row__wide { grid-column: auto; }
  .tariff-rows--compact .tariff-row__act { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .topbar__in { gap: 16px; padding: 0 16px; }
  .mainnav a { padding: 0 10px; }
}
@media (max-width: 600px) {
  html.look-flat .wbap-actions-card .table-tab { max-width: 100%; white-space: normal; text-align: left; flex-wrap: wrap; }
  .wbap-actions-card details.wbap-acc > summary { flex-wrap: wrap; }
  .wbap-actions-card details.wbap-acc > summary > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .viewswitch { display: flex; flex-wrap: wrap; max-width: 100%; }
  html.look-flat .viewswitch .pill { flex: 1 1 auto; height: auto; min-height: 40px; padding: 10px 12px; white-space: normal; text-align: center; }
  .sources { display: block; max-width: 100%; overflow-x: auto; }
  .card-head { flex-wrap: wrap; gap: 12px; }
  .card-head .table-tools { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .wbap-step { flex-wrap: nowrap; min-width: 0; }
  .wbap-steps, .wbap-steps--3, .wbap-steps--4 { grid-template-columns: minmax(0, 1fr); }
  .wbap-step__go { flex: 0 1 auto; width: 100%; flex-wrap: wrap; min-width: 0; }
  .topbar__in { height: 56px; gap: 12px; padding: 0 14px; }
  .mainnav a { font-size: 13px; padding: 0 10px; }
  .pagehead { margin-bottom: 20px; }
  html.look-flat .pagehead h1 { font-size: 25px; }
  .pagehead .sub { font-size: 13px; }
  .subnav__in { padding: 0 14px; gap: 2px; }
  .subnav a { padding: 12px 10px; font-size: 13px; }
  .table-tools .table-search { flex-basis: 100%; max-width: none; }
  .periodbar__custom { flex-wrap: wrap; row-gap: 8px; max-width: 100%; }
  .home-kpis { grid-template-columns: minmax(0, 1fr); }
  .kpis.kpis--4, .kpis.kpis--5 { grid-template-columns: minmax(0, 1fr); }
  .auth .card, html.look-flat .auth .card { padding: 24px; }
  .help-dialog__head::before { flex-basis: 36px; width: 36px; height: 36px; }
  .help-dialog, .fbo-dialog { max-width: min(100%, calc(100vw - 28px)); }
}

/* a setting that is not switched on stays grey: it is clear at once which fields will be changed */
html.look-flat .ads-bulk-fill .fillf:has(.fill-use:not(:checked)) input:not(.fill-use), html.look-flat .ads-bulk-fill .fillf:has(.fill-use:not(:checked)) select { background-color: #eef1f6; color: #6b7588; border-color: #e1e6ef; }
html.look-flat .ads-bulk-fill .fillf:has(.fill-use:not(:checked)) .fillf__name { color: var(--muted); }
.ads-bulk table[data-table="ads.bulk"] th[data-col="pick"], .ads-bulk table[data-table="ads.bulk"] td[data-col="pick"] { padding-left: 16px; padding-right: 8px; width: 44px; text-align: center; }

/* Общие стили списка кампаний: полоса состояния, графики периода, таблицы, настройки.
   Цвета — только токены темы (светлая и тёмная), фоны подсветок — смесь цвета с прозрачным, соседние блоки одной высоты (правило симметрии). */
.wbads-back { display: inline-block; margin: 0 0 6px; font-size: 14px; color: var(--primary); text-decoration: none; }
.wbads-back:hover { text-decoration: underline; }
.pill--lg { padding: 6px 16px; font-size: 15px; box-shadow: inset 0 0 0 1px currentColor; }
.wbads-unit { color: var(--muted); white-space: nowrap; }
.wbads-row__input .wbads-unit { white-space: normal; line-height: 18px; }
.wbads-setting__error { color: var(--err-fg); font-size: 13px; margin-top: 4px; }

/* status words: coloured text, not buttons (UI rule 6) */
.wbads-st { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.wbads-st--good { color: var(--ok-fg); }
.wbads-st--bad { color: var(--err-fg); }
.wbads-st--warn { color: var(--err-fg); }
.wbads-st--blue { color: var(--primary); }
.wbads-next { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.wbads-next::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.wbads-next--good { color: var(--ok-fg); }
.wbads-next--bad, .wbads-next--warn { color: var(--err-fg); }
.wbads-next--blue { color: var(--primary); }
.wbads-halo { text-align: left !important; }
.wbads-halo .wbads-st { display: block; }
.wbads-halo .wbads-next { margin-top: 2px; }
/* Campaign modes follow the table's regular/fitted type size. The compact hint rule
   otherwise forces a single line outside a manually narrowed column. */
.wbads-halo__text { min-width: 0; max-width: 100%; }   /* no size containment: it hid the pill from the fit of the column (the pill ran over the next column) */
html.look-flat.look-accent body.v2.v3[data-marketplace] table.wbads-campaigns[data-table] td.wbads-halo :is(.wbads-st, .wbads-next, .hint) {
  font-size: clamp(11px, calc(10px + 2cqi), 1em); line-height: 1.4; min-width: 0; max-width: 100%;
  white-space: normal; overflow-wrap: anywhere; word-break: normal;
}
html.look-flat.look-accent body.v2.v3[data-marketplace] table.wbads-campaigns[data-table] td.wbads-halo .hint { display: block; }

/* the status strip: the master switch with four figures */
.wbads-hero { position: relative; display: grid; gap: 16px; overflow: hidden; border-left: 4px solid var(--muted); }
.wbads-hero--on { border-left-color: var(--ok-fg); }
.wbads-hero--warn { border-left-color: var(--err-fg); }
.wbads-hero__top { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.wbads-hero__state { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.wbads-hero__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 6px color-mix(in srgb, var(--muted) 16%, transparent); flex: none; }
.wbads-hero--on .wbads-hero__dot { background: var(--ok-fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok-fg) 18%, transparent); animation: wbads-pulse 2.4s ease-in-out infinite; }
.wbads-hero--warn .wbads-hero__dot { background: var(--err-fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--err-fg) 16%, transparent); }
@keyframes wbads-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok-fg) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { .wbads-hero--on .wbads-hero__dot { animation: none; } }
.wbads-hero__label { font-size: 13px; line-height: 18px; color: var(--muted); }
.wbads-hero__mode { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--text); }
.wbads-hero--on .wbads-hero__mode { color: var(--ok-fg); }
.wbads-hero--warn .wbads-hero__mode { color: var(--err-fg); }
.wbads-hero__text { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.wbads-hero__warn { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wbads-hero__note { margin: 0; }
/* the same hero on WB «Участие в акциях» (wb_autopromo/_care.html): the text block holds two lines */
.wbads-hero__text .wbap-care__lead { margin: 0; color: var(--text); }
.wbads-hero__text .wbap-care__sub { margin: 4px 0 0; }
.wbads-switch-form { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; flex-wrap: nowrap; }
.wbads-switch-form input[type="password"] { width: 190px; margin: 0; }
.wbads-switch-form .btn { flex: none; margin: 0; }
.wbads-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.wbads-stats > div { display: flex; flex-direction: column; min-width: 0; }
.wbads-stats small, .wbads-ready small { display: block; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--muted); }
.wbads-stats--warn b { color: var(--err-fg); }
.wbads-version { margin: 10px 0 16px; }

/* «С чего начать», «Ждут вашего решения» */
.wbads-start__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wbads-start__head h2 { margin: 0; }
.wbads-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.wbads-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--v3-band, var(--panel)); }
.wbads-step__n { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.wbads-step--done .wbads-step__n { color: #fff; background: var(--ok-fg); }
.wbads-step--done strong { color: var(--muted); }
/* «С чего начать» with every step done: one line, the steps behind «Показать шаги» (owner, 06.11.2026) */
.wbads-start--done > summary { cursor: pointer; list-style: none; }
.wbads-start--done > summary::-webkit-details-marker { display: none; }
.wbads-start--done > summary .hint { flex: 1 1 auto; }
.wbads-start__more { color: var(--primary); font-weight: 600; }
.wbads-start--done[open] .wbads-start__show, .wbads-start--done:not([open]) .wbads-start__hide { display: none; }
.wbads-paused { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wbads-groups-halo { white-space: normal; min-width: 0; }
/* «Товары не под управлением (N)»: the accent button with a counter (Ozon and WB) - the owner should go there and put everything under control */
.wbads-unm-link__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px;
  font-size: 12px; font-weight: 700; line-height: 1; background: color-mix(in srgb, currentColor 22%, transparent); }

/* period and charts */
.wbads-periodwrap { margin: 16px 0 0; }
.wbads-period { align-items: center; }
.wbads-period__label { font-weight: 600; margin-right: 4px; }
.wbads-period__note { flex-basis: 100%; }
.wbads-charts { margin: 14px 0 6px; }
.wbads-charts .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* «Кампании» / «Связки»: the first row inside the card of the table; the empty offers line; the head of the ads pages (owner, 20.10.2026: compact) */
.wbads-views { margin: 0 0 12px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .card > .table-tabs.wbads-views { margin: 0 0 12px !important; }
.wbads-offers-empty { margin: 12px 0 14px; }
.pagehead.pagehead--compact { margin-bottom: 14px; }
.pagehead.pagehead--compact .sub { margin-top: 2px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .table-tabs.wbads-tabs { margin: 0 0 14px !important; gap: 10px; }

/* bars inside cells: today against the limit, DRR against the target */
.wbads-cellbar { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; }
.wbads-cellbar small { font-size: 12px; line-height: 16px; white-space: nowrap; }
.wbads-meter { position: relative; display: block; width: 100%; min-width: 64px; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: visible; }
.wbads-meter > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ok-fg); }
.wbads-meter--warn > i { background: color-mix(in srgb, var(--err-fg) 55%, #f5b14a); }
.wbads-meter--bad > i { background: var(--err-fg); }
.wbads-meter > b { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--text); border-radius: 1px; opacity: .55; }
.wbads-meter--lg { height: 10px; margin-top: 8px; }
.wbads-nolimit { color: var(--err-fg); font-weight: 600; text-decoration: underline dotted; white-space: nowrap; font-size: 13px; }

/* the tables of the module: text left, numbers in the centre (UI rule 7) */
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-groups, .wbads-products, .wbads-history, .wbads-clusters, .wbads-create) :is(th, td):is([data-col=name], [data-col=group], [data-col=format], [data-col=status], [data-col=mode], [data-col=mechanism], [data-col=state], [data-col=why], [data-col=offer], [data-col=note], [data-col=advert], [data-col=stage], [data-col=initiator], [data-col=reason], [data-col=cluster], [data-col=origin], [data-col=halo], [data-col=art_status], [data-col=placement], [data-col=unit], [data-col=plan], [data-col=excluded], [data-col=protected]) { text-align: left !important; }
html.look-flat .tablewrap table.wbads-campaigns td[data-col=name] .s { white-space: nowrap; }
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-groups) td[data-col=name] a { font-weight: 600; }
html.look-flat .tablewrap table.wbads-campaigns :is(td[data-col=today], td[data-col=bids], td[data-col=expense], td[data-col=id]) { white-space: nowrap; }
.tablewrap td.wbads-reason { min-width: 150px; max-width: 300px; }   /* a short reason, the full text is in the tooltip */
/* Owner, 17.10.2026: the text of these tables breaks at words (inside a very long word - by letters) and is never cut with «…» when a column is narrowed; digits, dates
   and ids stay whole (their cells keep white-space: nowrap from the general rule; the column is not made narrower than a number by table-display.js). */
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-groups, .wbads-products, .wbads-history, .wbads-clusters, .wbads-create) td:is([data-col=name], [data-col=group], [data-col=format], [data-col=status], [data-col=mode], [data-col=mechanism], [data-col=state], [data-col=why], [data-col=offer], [data-col=note], [data-col=advert], [data-col=stage], [data-col=initiator], [data-col=reason], [data-col=cluster], [data-col=origin], [data-col=plan], [data-col=excluded], [data-col=protected], [data-col=halo], [data-col=art_status], [data-col=placement], [data-col=unit]) {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: normal; }
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-groups, .wbads-products, .wbads-history, .wbads-clusters, .wbads-create) :is(.wbads-st, .wbads-next, .wbads-nolimit, .wbads-cellbar small) {
  white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-groups, .wbads-products, .wbads-history, .wbads-clusters, .wbads-create) .wbads-next { align-items: flex-start; }
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-groups, .wbads-products, .wbads-history, .wbads-clusters, .wbads-create) .wbads-next::before { margin-top: 5px; }
/* Advertising names stay readable in the regular table view; light view still hides the second line. */
html.look-flat .tablewrap table:is(.wbads-campaigns, .wbads-products, .wbads-create) .cell2 .s {
  display: block; -webkit-line-clamp: unset; overflow: visible; white-space: normal; overflow-wrap: anywhere;
}
html.look-flat .tablewrap table.wbads-campaigns .cell2 .s { overflow-wrap: normal; }
.wbads-chg { font-weight: 600; white-space: nowrap; }
.wbads-chg--up { color: var(--ok-fg); }
.wbads-chg--down { color: var(--err-fg); }

/* bulk bars over the tables */
.wbads-bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--v3-band, var(--panel)); }
.wbads-bulkbar label { font-weight: 600; white-space: nowrap; }
.wbads-bulkbar select { width: auto; min-width: 260px; margin: 0; }
.wbads-bulkbar input[type="text"] { width: 150px; max-width: 100%; margin: 0; text-align: center; }
.wbads-bulkbar .btn { flex: none; margin: 0; }
.wbads-picked { color: var(--primary); }
/* the tabs and the bulk bar of the campaigns list share one row (owner, 19.10.2026): no band of its own, every control on one centre line */
.wbads-tabsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .wbads-tabsbar .table-tabs.wbads-tabs { margin: 0 !important; }
.wbads-bulkbar--inline { margin: 0; padding: 0; background: none; border-radius: 0; flex-wrap: nowrap; margin-left: auto; }
.wbads-bulkbar--inline label { margin: 0; line-height: 40px; }
.wbads-bulkbar--inline select, .wbads-bulkbar--inline input[type="text"], .wbads-bulkbar--inline .btn { height: 40px; box-sizing: border-box; }
@media (max-width: 760px) { .wbads-bulkbar--inline { flex-wrap: wrap; margin-left: 0; width: 100%; } }
/* the long explanations of the campaign page sit under «Подробнее» */
/* the two important buttons of the products table (owner, 19.10.2026): «Сохранить лимиты» is the bright main button and says how many limits changed, «Вынести» has a frame and an arrow */
html.look-flat.look-accent body.v2.v3[data-marketplace] .table-tools [data-wbads-limits-save] { font-weight: 700; padding-inline: 18px; box-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 40%, transparent); }
html.look-flat.look-accent body.v2.v3[data-marketplace] .table-tools [data-wbads-limits-save][data-changes="0"] { box-shadow: none; opacity: .7; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .wbads-move { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); font-weight: 650; white-space: nowrap; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .wbads-move:hover { background: var(--primary); color: #fff; }
.wbads-more > summary { cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; }
.wbads-more > summary::-webkit-details-marker { display: none; }
.wbads-more > summary::after { content: " ▾"; }
.wbads-more[open] > summary::after { content: " ▴"; }
.wbads-more > :not(summary) { margin-top: 8px; }
.wbads-bulkbar--manual { justify-content: space-between; }
.wbads-bulkbar__part { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wbads-bulkbar--manual select { min-width: 180px; }
.wbads-manual-note { margin: 6px 0 12px; }

/* the campaign page */
.wbads-today-big { display: grid; gap: 2px; min-width: 240px; margin-left: auto; }
.wbads-today-big__row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wbads-today-big__row b { font-size: 20px; line-height: 24px; font-weight: 700; color: var(--text); white-space: nowrap; }
.wbads-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.wbads-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.wbads-chip b { font-size: 14px; color: var(--text); }
.wbads-chip--good { color: var(--ok-fg); background: color-mix(in srgb, var(--ok-fg) 12%, transparent); }
.wbads-chip--bad, .wbads-chip--warn { color: var(--err-fg); background: color-mix(in srgb, var(--err-fg) 10%, transparent); }
.wbads-chip--good b, .wbads-chip--bad b, .wbads-chip--warn b { color: inherit; }
.wbads-explain { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); }
/* the bid of a product is typed in its own column of the table (search / recommendations / single): a number in the centre of the cell, like every figure (UI rule 7) */
.wbads-products input.wbads-bidinput[type="text"] { display: block; width: 88px; min-width: 0; max-width: 100%; margin: 0 auto; padding: 4px 8px; text-align: center; font-variant-numeric: tabular-nums; }

/* the settings dialog of a campaign */
dialog.wbads-wiz { width: min(680px, calc(100% - 32px)); }
.wbads-wiz form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.wbads-wiz__steps { list-style: none !important; counter-reset: wbadswiz; margin: 12px 0 !important; padding: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wbads-wiz__step { counter-increment: wbadswiz; position: relative; min-width: 0; margin: 0 !important; padding: 14px 18px 16px 62px; background: var(--v3-band, var(--panel)); border-radius: 14px; }
.wbads-wiz__step::before { content: counter(wbadswiz); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.wbads-wiz__step.is-done::before { content: "✓"; background: var(--ok-fg); color: #fff; }
.wbads-wiz__step b { display: block; font-size: 15px; }
.wbads-wiz__step p { margin: 4px 0 10px !important; font-size: 13px; color: var(--muted); }
.wbads-wiz__go { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wbads-wiz__go input[type="text"] { width: 180px; min-width: 0; max-width: 100%; text-align: center; }
.wbads-wiz__go select { min-width: 0; max-width: 100%; }
.wbads-wiz__go label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.wbads-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* «Товары не под управлением» (Ozon; the WB page takes the same classes): where a product is in advertising, the campaigns it fits, the dialog «Добавить в кампанию» */
.ads-unm-picked { color: var(--primary); font-weight: 600; white-space: nowrap; line-height: 40px; }
html.look-flat .tablewrap table.ads-unm :is(th, td):is([data-col=where], [data-col=suitable]) { text-align: left !important; }
html.look-flat .tablewrap table.ads-unm td:is([data-col=where], [data-col=suitable]) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 160px; }
html.look-flat .tablewrap table.ads-unm td[data-col=state] .ads-unm-maybe { display: block; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
.ads-unm-zero { color: var(--err-fg); }
html.look-flat .tablewrap table.ads-unm td[data-col=group] > small.hint { display: block; margin-top: 2px; }
.ads-unm-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ads-unm-camp a { font-weight: 600; }
.ads-unm-camp small { display: block; color: var(--muted); font-size: 12px; }
.ads-unm-camp--managed small, .ads-unm-camp--coinvest small { color: var(--primary); }
.ads-unm-chip { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--primary); background: var(--surface, transparent);
  color: var(--primary); font: inherit; font-size: 13px; line-height: 18px; text-align: left; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.ads-unm-chip:hover { background: var(--primary); color: #fff; }
.ads-unm-chip--text { border-color: var(--line); color: inherit; cursor: default; }
.ads-unm-chip--text:hover { background: none; color: inherit; }
.ads-unm-targets { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.ads-unm-target { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, transparent); cursor: pointer; }
.ads-unm-target:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ads-unm-target input { margin-top: 3px; flex: none; }
.ads-unm-target__main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ads-unm-target__main small { display: block; color: var(--muted); font-size: 12px; }
.ads-unm-target__verdict { flex: none; max-width: 40%; font-size: 12px; font-weight: 600; text-align: right; }
.ads-unm-target__verdict--ok { color: var(--ok-fg); }
.ads-unm-target__verdict--warn, .ads-unm-warn { color: var(--err-fg); }
/* v2 (owner, 20.10.2026): «Реклама», «Связка · ДРР», the panel over the table, the button of every row, the dialog in two steps */
html.look-flat .tablewrap table.ads-unm :is(th, td):is([data-col=ad], [data-col=group]) { text-align: left !important; }
html.look-flat .tablewrap table.ads-unm td:is([data-col=ad], [data-col=group]) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
html.look-flat .tablewrap table.ads-unm td[data-col=ad] .ads-unm-maybe { display: block; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
:is(.ads-unm-dialog, .ads-unm-bar, .ads-unm-addbar__go) [hidden] { display: none !important; }          /* the steps, groups and buttons switched by the script (.btn and the grids set their own display) */
/* the panel over the table (owner, 20.10.2026): the tabs, then the one row of the table tools that also holds the count of ads going and «Добавить в рекламу» (moved there by the script) */
.ads-unm-bar { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 12px; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .ads-unm-bar .table-tabs.wbads-tabs { margin: 0 !important; }
.ads-unm-bar--wait > :is(.ads-unm-adsum, .ads-unm-addbar__go) { position: absolute; visibility: hidden; animation: ads-unm-unwait 0s linear 3s forwards; }          /* until the script moves them into the tools (no jump of the table); without the script they show after 3 s, as the table veil */
@keyframes ads-unm-unwait { to { position: static; visibility: visible; } }
.ads-unm-adsum { margin: 0; font-size: 14px; }
/* the strip of the owner's requests above the tabs (owner chose variant A, 2026-10-28): queued/running = blue, failed/unfinished = red, done = green */
.ads-unm-req { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, transparent); }
.ads-unm-req__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.ads-unm-req__main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ads-unm-req__main small { display: block; color: var(--muted); font-size: 12px; }
.ads-unm-req__chip { flex: none; font-size: 12px; font-weight: 600; color: var(--primary); }
.ads-unm-req__close { flex: none; margin: 0; }
.ads-unm-req--done { border-color: var(--ok-line); } .ads-unm-req--done .ads-unm-req__dot { background: var(--ok-fg); } .ads-unm-req--done .ads-unm-req__chip { color: var(--ok-fg); }
.ads-unm-req--failed, .ads-unm-req--stale { border-color: var(--err-line); } .ads-unm-req--failed .ads-unm-req__dot, .ads-unm-req--stale .ads-unm-req__dot { background: var(--err-fg); }
.ads-unm-req--failed .ads-unm-req__chip, .ads-unm-req--stale .ads-unm-req__chip { color: var(--err-fg); }

.ads-unm-addbar__go { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-left: auto; }
.ads-unm-addbar__go .btn { margin: 0; }
.ads-unm-addbar__go .hint { margin: 0; }
.ads-unm-never { color: var(--err-fg); }
.table-tools > .ads-unm-adsum { margin: 0 4px; align-self: center; white-space: nowrap; }
.table-tools > .ads-unm-addbar__go { margin-left: auto; }
.table-tools > .ads-unm-addbar__go + .export-btn { margin-left: 0; }
.ads-unm-notes { display: grid; gap: 6px; margin: 0 0 12px; }
.ads-unm-notes > * { margin: 0; }
.ads-unm-card { padding-block: 14px; }
.ads-unm-grp + .ads-unm-grp { margin-top: 6px; }
.ads-unm-grp :is(a, b) { font-weight: 600; }
.ads-unm-grp small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ads-unm-camp.is-stopped a, .ads-unm-camp.is-stopped small { color: var(--muted); font-weight: 400; }
.tablewrap td.ads-unm-act { text-align: center; }
.tablewrap td.ads-unm-act .btn { margin: 0; }
.ads-unm-chip--coinvest { border-style: dashed; }
.ads-unm-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ads-unm-dialog__count { margin: 0; font-weight: 600; }
.ads-camp-add { display: flex; justify-content: flex-end; margin: 0 0 12px; }          /* «＋ Добавить товары» of a campaign: halo/ads_campaign_add.js moves it into the table tools */
.table-tools .ads-camp-add { margin: 0; }
dialog.help-dialog.ads-camp-pick { width: min(1040px, 96vw); max-width: 96vw; }
html.look-flat.look-accent body.v2.v3[data-marketplace] .tpl-tablecard > dialog.ads-camp-pick { margin: auto; }          /* the window stays in the card (the look of its table depends on it), without the card's margins */
.ads-unm-step__title { margin: 12px 0 8px; font-size: 16px; }
.ads-unm-search { width: 100%; margin: 0 0 10px; }
.ads-unm-tgroup { display: grid; gap: 8px; }
.ads-unm-tgroup + .ads-unm-tgroup { margin-top: 12px; }
.ads-unm-tgroup h4 { margin: 0; font-size: 14px; }
.ads-unm-tgroup .hint { margin: 0; }
.ads-unm-targets { display: block; max-height: min(420px, 55vh); }
.ads-unm-target.is-off { opacity: .55; cursor: not-allowed; }
.ads-unm-chosen { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--primary); border-radius: 12px; }
.ads-unm-chosen > div { min-width: 0; overflow-wrap: anywhere; }
.ads-unm-chosen small { display: block; color: var(--muted); font-size: 12px; }
.ads-unm-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; }
.ads-unm-block { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--v3-band, var(--panel)); }
.ads-unm-block > b { display: block; font-size: 15px; }
.ads-unm-block p { margin: 4px 0 8px; font-size: 13px; }
.ads-unm-mode { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; cursor: pointer; }
.ads-unm-mode input { margin-top: 4px; flex: none; }
.ads-unm-mode small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .ads-unm-target { flex-wrap: wrap; }
  .ads-unm-target__verdict { max-width: none; width: 100%; text-align: left; padding-left: 24px; }
  html.look-flat.look-accent body.v2.v3[data-marketplace] .ads-unm-bar .table-tabs.wbads-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: thin; padding-bottom: 4px; }          /* six tabs in one row to swipe, not six rows */
  .ads-unm-bar .table-tab { flex: none; }
  .table-tools > .ads-unm-adsum { white-space: normal; }
  .ads-unm-addbar__go, .table-tools > .ads-unm-addbar__go { margin-left: 0; width: 100%; }
  .ads-unm-addbar__go .btn { width: 100%; }
}

/* the settings page */
.wbads-settings > .wbads-sec + .wbads-sec { margin-top: 14px; }
.wbads-sec > summary { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; list-style: none; }
.wbads-sec > summary::-webkit-details-marker { display: none; }
.wbads-sec > summary h2 { margin: 0 0 2px; }
.wbads-sec > summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-size: 18px; transition: transform .15s; }
.wbads-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.wbads-sec__n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.wbads-rows { margin-top: 12px; display: grid; }
.wbads-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px 28px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.wbads-row__text label { font-weight: 600; }
.wbads-row__text .hint { margin-top: 2px; max-width: 76ch; }
.wbads-rec { color: var(--text); opacity: .8; }
.wbads-row__input { display: flex; align-items: center; gap: 8px; }
.wbads-row__input input[type="text"] { width: 120px; margin: 0; text-align: center; }
.wbads-row--error { background: color-mix(in srgb, var(--err-fg) 7%, transparent); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.wbads-adv { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.wbads-adv > summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.wbads-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; padding: 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 -2px 16px rgba(0, 26, 52, .08); border: 1px solid var(--line); }
.wbads-savebar .btn { margin: 0; }

/* forms of history, clusters, a new campaign */
.wbads-ff { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; align-items: end; }
.wbads-ff label, .wbads-ff__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.wbads-ff :is(input[type="text"], select, textarea) { width: 100%; margin: 0; }
.wbads-ff--one { grid-template-columns: minmax(0, 560px); margin-top: 12px; }
.wbads-ff__checks { display: flex; gap: 18px; min-height: 40px; align-items: center; }
.wbads-ff__checks label { margin: 0; color: var(--text); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.wbads-ff__go { display: flex; gap: 10px; }
.wbads-ff__go .btn { margin: 0; }
.wbads-over { color: var(--err-fg); font-weight: 600; }

/* «Как работает», «Состояние данных» */
.wbads-how { margin-top: 12px; }
.wbads-how > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wbads-how__list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.wbads-ready { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }

@media (max-width: 1100px) {
  .wbads-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbads-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .wbads-charts .kpis { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wbads-wiz__step { padding-left: 52px; padding-right: 14px; }
  .wbads-wiz__step::before { left: 12px; }
  .wbads-wiz__go input[type="text"] { flex: 0 1 150px; }
  .wbads-row { grid-template-columns: minmax(0, 1fr); }
  .wbads-switch-form { margin-left: 0; flex-wrap: wrap; width: 100%; }
  .wbads-switch-form input[type="password"] { width: 100%; }
  .wbads-today-big { margin-left: 0; width: 100%; }
  .wbads-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wbads-bulkbar select { min-width: 0; width: 100%; }
}

.table-panel__option { display: flex; align-items: flex-start; gap: 10px; flex: none; margin: 8px 0 2px; padding: 9px 10px; border: 1px solid var(--line, #e3e9f2); border-radius: 10px; background: var(--panel, #f7f9fc); font-size: 14px; line-height: 1.3; cursor: pointer; }
.table-panel__option input { margin: 2px 0 0; flex: none; }
.table-panel__option small { display: block; margin-top: 2px; color: var(--muted, #737373); font-size: 12px; line-height: 1.3; }

/* Shared promotion workspaces: one state/control area, native actions and closed details. */
.promo-overview .kpi { min-height: 128px; }
.promo-overview .hint { line-height: 18px; margin-top: 5px; }
.promo-control__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.promo-control__state { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.promo-control__state h2 { margin: 0; }
.promo-control .wbads-hero__mode { font-size: 16px; line-height: 24px; }
.promo-actions-table [data-col=action] { min-width: 170px; }
.promo-actions-table [data-col=period] { min-width: 112px; }
.promo-pulse { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.promo-pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.promo-pulse--good i { background: var(--ok-fg); box-shadow: 0 0 0 3px var(--ok-bg); }
.promo-pulse--bad { color: var(--err-fg); }
.promo-pulse--bad i { background: var(--err-fg); box-shadow: 0 0 0 3px var(--err-bg); }
.promo-control__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; max-width: 100%; }
.promo-control__actions form { margin: 0; min-width: 0; max-width: 100%; }
.promo-control__actions :is(button,.btn) { margin: 0; max-width: 100%; white-space: normal; height: auto; min-height: 40px; }
.promo-control__form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.promo-control__form > div:first-of-type { width: 220px; max-width: 100%; }
.promo-control__form .row { gap: 12px; }
.promo-control > .wbap-limits { margin-top: 12px; }
.promo-data-list { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 8px 16px; }
.promo-data-list :is(dt,dd) { margin: 0; overflow-wrap: anywhere; }
.promo-action-title { display: flex; align-items: flex-start; gap: 8px; font-weight: inherit; }
.promo-action-title input { flex: none; margin-top: 3px; }
[data-min-native-actions] > form { min-width: 0; max-width: 100%; }
[data-min-native-actions] :is(button,.btn) { max-width: 100%; white-space: normal; height: auto; min-height: 40px; }
@media (max-width: 600px) {
  .promo-control__actions, .promo-control__form { width: 100%; }
  .promo-control__form > div:first-of-type { width: 100%; }
  .promo-data-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .promo-data-list dd { margin-bottom: 10px; }
}

/* Фулфилмент: полоска «Закончить день» в сортировщике (20.10.2026) */
.ff-strip { padding: 12px 16px; margin-bottom: 16px; }
.ff-strip__form { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.ff-strip__info { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; flex: 1 1 260px; min-width: 0; }
.ff-strip__field { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.ff-strip__field input { width: 90px; margin: 0; text-align: center; }
.ff-strip__check { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
.ff-strip__reason { width: 220px; max-width: 100%; margin: 0; }
.ff-strip .hint, .ff-strip .error { margin: 8px 0 0; }
.ff-bulk { margin: 0 0 10px; }

/* «Не нашли товар» - the correction of the goods of «Сводка за период», one panel for Ozon and WB (owner, 22.10.2026); colours from the theme tokens */
.gc { padding: 16px 20px; margin-bottom: 16px; }
.gc__title { margin: 0 0 12px; }
.gc__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0; }
.gc__field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; font-size: 13px; color: var(--muted); }
.gc__field input { margin: 0; min-height: 40px; }
.gc__search { flex: 1 1 280px; min-width: 0; }
.gc__search input, .gc__comment input { width: 100%; }
.gc__comment { flex: 1 1 200px; min-width: 0; }
.gc__count { display: inline-flex; align-items: stretch; gap: 4px; }
.gc__count .btn { min-width: 40px; height: 40px; padding: 0; font-size: 18px; }
.gc__count input { width: 72px; text-align: center; }
.gc__form > .btn { height: 40px; }
.gc__hint, .gc__msg { margin: 8px 0 0; }
.period-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.period-downloads .btn { height: 40px; }
.period-progress { margin: 0 0 12px; }
.period-progress.is-stopped { color: var(--err-fg, #c13946); }

/* the screens «Проверьте … перед подписью» (Ozon, минимальная цена): the sign block under the table */
.sign-ack { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-weight: 500; }
.sign-note { margin: 10px 0 0; }
.sign-block { margin-top: 16px; }
.sign-block .field { margin-top: 14px; }
.sign-block > .field:first-child { margin-top: 0; }

/* «Обновить» (notifications.js:vitrinaRefresh, halo/vitrina_refresh.js): the button and the status line of the extension «HALO Витрина» in the reminder */
.vitrina-refresh { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vitrina-refresh-line:empty { display: none; }
table[data-ads-campaign-filters] th.sortable[data-sort] { color: var(--primary); }
