:root {
  --bg-1: #072042;
  --bg-2: #0b5ea7;
  --bg-3: #0e7acb;
  --card: rgba(88, 130, 193, 0.28);
  --stroke: rgba(255, 255, 255, 0.24);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  --radius: 27.4px;
  --panel-w: 280px;
  --input-h: 38px;
  --input-r: 4.64px;
  --stroke-w: 0.71px;
  --btn-r: 7.11px;
  --social-w: 71.29px;
  --social-h: 34.36px;
  --social-r: 6.76px;
  --hint: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 25% 10%, rgba(90, 190, 255, 0.55), transparent 55%),
    radial-gradient(1100px 650px at 75% 25%, rgba(0, 80, 180, 0.65), transparent 60%),
    linear-gradient(135deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.card {
  width: min(440px, 92vw);
  height: auto;
  border-radius: var(--radius);
  background: rgba(88, 130, 193, 0.28);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(900px 460px at 30% 0%, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88, 130, 193, 0.49), rgba(88, 130, 193, 0.11));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card__inner {
  position: relative;
  padding: 36px 40px 28px;
}

.logo {
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.panel {
  width: var(--panel-w);
  margin: 0 auto;
}

.title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: left;
}

.subtitle {
  margin: -10px 0 12px;
  width: var(--panel-w);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  width: var(--panel-w);
}

.label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.15px;
}

.input {
  width: 100%;
  height: var(--input-h);
  padding: 0 12px;
  border-radius: var(--input-r);
  border: var(--stroke-w) solid rgba(188, 190, 192, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(10, 20, 40, 0.92);
  font-size: 14px;
  outline: none;
}

.input::placeholder {
  color: rgba(95, 105, 120, 0.75);
}

.input:focus {
  border-color: rgba(160, 200, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(120, 190, 255, 0.25);
}

.input.is-invalid {
  border-color: rgba(255, 90, 90, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.22);
}

.input.is-invalid:focus {
  border-color: rgba(255, 90, 90, 1);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.28);
}

.password {
  position: relative;
}

.password .input {
  padding-right: 42px;
}

.eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(120, 130, 145, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.eye svg {
  width: 18px;
  height: 18px;
}

.forgot {
  justify-self: start;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  margin-top: -2px;
}

.forgot:hover {
  text-decoration: underline;
}

.btn {
  margin-top: 10px;
  height: 44px;
  width: var(--panel-w);
  border: 0;
  border-radius: var(--btn-r);
  background: #003465;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.btn--secondary:hover {
  filter: brightness(1.08);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  justify-content: center;
  margin-top: 4px;
  width: var(--panel-w);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.22);
}

.social {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
  width: var(--panel-w);
}

.social__btn {
  width: var(--social-w);
  height: var(--social-h);
  border-radius: var(--social-r);
  border: var(--stroke-w) solid rgba(188, 190, 192, 0.9);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.social__btn:hover {
  filter: brightness(1.02);
}

.social__btn:active {
  transform: translateY(1px);
}

.social__btn svg {
  width: 18px;
  height: 18px;
}

.meta {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  width: var(--panel-w);
}

.meta a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.meta a:hover {
  text-decoration: underline;
}

.hint {
  min-height: 14px;
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(255, 220, 220, 0.95);
}

.hint--ok {
  color: rgba(190, 245, 200, 0.98);
}

.checks {
  width: var(--panel-w);
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.checks.is-invalid {
  border-radius: 10px;
  outline: 2px solid rgba(255, 90, 90, 0.9);
  outline-offset: 6px;
}

.checks.is-invalid .check {
  color: rgba(255, 220, 220, 0.95);
}

.check {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  line-height: 1.3;
  color: var(--hint);
  user-select: none;
}

.check__input {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: rgba(255, 255, 255, 0.92);
}

.card--register .card__inner {
  padding-top: 34px;
}

.wrap--install {
  align-items: start;
  padding-top: 24px;
  padding-bottom: 32px;
  overflow-y: auto;
}

.card--installWide {
  width: min(880px, 96vw);
}

.card--installWide .card__inner {
  padding: 28px 32px 32px;
}

.panel--install {
  width: 100%;
  max-width: none;
}

.panel--install > .title {
  text-align: left;
}

.installIntro {
  text-align: left;
  margin-bottom: 1rem;
  max-width: none;
  width: 100%;
}

.form--installGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  width: 100%;
  max-width: none;
}

.form--installGrid .field {
  width: 100%;
  max-width: none;
}

.installCol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.installColTitle {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
}

.installSubmitRow {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.installBtnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.installSubmitRow .btn {
  margin-top: 6px;
  width: min(320px, 100%);
}

.installSubmitRow .installBtnRow .btn {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 360px;
}

.meta--fieldHint {
  margin-top: 6px;
  text-align: left;
  width: 100%;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.card--installWide .installSubmitRow .meta {
  text-align: left;
}

@media (max-width: 720px) {
  .form--installGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  body {
    overflow: auto;
  }

  .card__inner {
    padding: 28px 22px 22px;
  }
}

/* ==========================
   Dashboard (index.php / dashboard)
   Scoped to body.dash
   ========================== */

body.dash {
  overflow: auto;
  background: #f7f8fb;
  color: #151a23;
}

body.dash--pageBusy {
  overflow: hidden;
}

.dashPageLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(247, 248, 251, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.dashPageLoader__label {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(21, 26, 35, 0.85);
}

.dashPageLoader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(35, 160, 120, 0.2);
  border-top-color: rgba(35, 160, 120, 0.95);
  border-radius: 50%;
  animation: dashPageLoaderSpin 0.75s linear infinite;
}

@keyframes dashPageLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.dash__app,
.dash__sidebar,
.dash__main {
  transition: 180ms ease;
}

.dash,
.dash * {
  box-sizing: border-box;
}

.dash__app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: #f7f8fb;
}

.dash__sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(15, 20, 30, 0.08);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.dash__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 10px;
}

.dash__burger {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(20, 24, 34, 0.75);
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.dash__burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(20, 24, 34, 0.55);
  border-radius: 2px;
  margin: 1.5px 0;
}

.dash__burger:hover {
  background: rgba(124, 92, 255, 0.08);
}

.dash__burger:focus-visible {
  outline: 3px solid rgba(124, 92, 255, 0.25);
  outline-offset: 2px;
}

.dash__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.dash__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c5cff, #23c4f8);
  transform: rotate(45deg);
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.22);
}

.dash__name {
  font-size: 16px;
}

.dash__nav {
  display: grid;
  gap: 10px;
  padding: 2px 4px;
  align-content: start;
}

.dash__navItem {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: rgba(25, 30, 40, 0.78);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.15;
}

.dash__navText {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__navItem:hover {
  background: rgba(124, 92, 255, 0.08);
  color: rgba(25, 30, 40, 0.9);
}

.dash__navItem.is-active {
  background: rgba(124, 92, 255, 0.1);
  color: rgba(25, 30, 40, 0.92);
}

.dash__navIcon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: rgba(70, 75, 90, 0.85);
}

.dash__navIcon svg {
  width: 18px;
  height: 18px;
}

.dash__chev {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0.65;
}

.dash__chev svg {
  width: 18px;
  height: 18px;
}

.dash__badge {
  justify-self: end;
  min-width: 20px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff5a5a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

/* Collapsed sidebar (burger toggle) */
body.dash.dash--collapsed .dash__app {
  grid-template-columns: 84px minmax(0, 1fr);
}

body.dash.dash--collapsed .dash__sidebar {
  padding: 18px 10px 16px;
}

body.dash.dash--collapsed .dash__brand {
  gap: 10px;
  padding: 6px 4px 10px;
}

body.dash.dash--collapsed .dash__name {
  display: none;
}

body.dash.dash--collapsed .dash__help {
  display: none;
}

body.dash.dash--collapsed .dash__navItem {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

body.dash.dash--collapsed .dash__navText,
body.dash.dash--collapsed .dash__chev,
body.dash.dash--collapsed .dash__badge {
  display: none;
}

body.dash.dash--collapsed .dash__navIcon {
  width: 22px;
  height: 22px;
}

/* Tooltip on hover (collapsed) */
body.dash.dash--collapsed .dash__navItem {
  position: relative;
}

body.dash.dash--collapsed .dash__navItem::after,
body.dash.dash--collapsed .dash__navItem::before {
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  transition: 140ms ease;
  pointer-events: none;
}

body.dash.dash--collapsed .dash__navItem::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(20, 24, 34, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

body.dash.dash--collapsed .dash__navItem::before {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(20, 24, 34, 0.95);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

body.dash.dash--collapsed .dash__navItem:hover::after,
body.dash.dash--collapsed .dash__navItem:hover::before,
body.dash.dash--collapsed .dash__navItem:focus-visible::after,
body.dash.dash--collapsed .dash__navItem:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dash__help {
  border-radius: 14px;
  padding: 14px 14px;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.12);
}

.dash__helpTitle {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.dash__helpText {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(25, 30, 40, 0.7);
}

.dash__helpLink {
  color: rgba(124, 92, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.dash__helpLink:hover {
  text-decoration: underline;
}

.dash__main {
  padding: 14px 22px 28px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.dash__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 4px 14px;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.dash__topbarMain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.dash__topbarTitle {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(25, 30, 40, 0.96);
  line-height: 1.2;
  flex-shrink: 0;
}

.dash__filterBar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 12px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash__filterHeading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(25, 30, 40, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash__input--shop {
  min-width: 140px;
  max-width: 220px;
  flex: 0 1 auto;
}

.dash__filterBar .dash__input {
  height: 34px;
  padding: 5px 10px;
  font-size: 12.5px;
}

.dash__filterBar .dash__btn {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  flex-shrink: 0;
}

.dash__productsCostUpload {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}

.dash__productsCostUploadBtn {
  cursor: pointer;
}

/* Товары: строка поиска внутри панели фильтра */
.dash__productsSearchForm {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 220px;
  min-width: 0;
}

.dash__productsSearchForm .dash__searchIcon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: rgba(25, 30, 40, 0.42);
}

.dash__productsSearchForm .dash__searchIcon svg {
  width: 18px;
  height: 18px;
}

.dash__input--searchGrow {
  flex: 1 1 auto;
  min-width: 140px;
}

/* Карточка товара: длинное название в шапке */
.dash__topbarLead {
  flex: 1 1 240px;
  min-width: 0;
}

.dash__topbarTitle--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.dash__topbarSub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(25, 30, 40, 0.58);
  line-height: 1.35;
}

.dash__widget--preScroll pre {
  max-height: min(520px, 62vh);
  overflow: auto;
  margin: 0;
}

.dash__filterSep {
  color: rgba(25, 30, 40, 0.45);
  font-size: 12px;
  padding: 0 1px;
  flex-shrink: 0;
}

.dash__topbar .dash__actions {
  flex-shrink: 0;
  padding-top: 0;
  align-self: center;
}

@media (max-width: 960px) {
  .dash__topbarMain {
    flex-direction: column;
    align-items: stretch;
  }

  .dash__filterBar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .dash__productsSearchForm {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .dash__periodForm {
    flex-wrap: wrap;
  }

  .dash__input--shop {
    max-width: none;
  }
}

.dash__search {
  flex: 1;
  max-width: 560px;
  background: #fff;
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 12px;
  height: 40px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  overflow: hidden;
}

.dash__searchIcon {
  display: grid;
  place-items: center;
  color: rgba(60, 65, 80, 0.65);
}

.dash__searchIcon svg {
  width: 18px;
  height: 18px;
}

.dash__searchInput {
  height: 40px;
  border: 0;
  outline: none;
  font-size: 13px;
  padding-right: 12px;
  background: transparent;
  color: rgba(20, 24, 34, 0.9);
}

.dash__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash__iconBtn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(45, 50, 65, 0.75);
}

.dash__iconBtn:hover {
  background: rgba(124, 92, 255, 0.08);
  color: rgba(45, 50, 65, 0.9);
}

.dash__iconBtn svg {
  width: 18px;
  height: 18px;
}

.dash__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

.dash__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ffb97a, #ff5aa5);
}

.dash__userMeta {
  line-height: 1.1;
}

.dash__userName {
  font-weight: 600;
  font-size: 13px;
}

.dash__userRole {
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
  margin-top: 2px;
}

.dash__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
}

/* Обзор: вертикальный стек без grid-column у потомков — иначе span 12 у таблицы раздувал сетку */
.dash__content--stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* dialog в стеке не трогаем — иначе width:100% растягивает модалку на всю колонку */
.dash__content--stack > *:not(dialog) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dash__main > .dash__content {
  align-self: stretch;
}

.dash__chartsSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.dash__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.dash__h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.2px;
}

.dash__sub {
  margin-top: 4px;
  color: rgba(25, 30, 40, 0.6);
  font-size: 13px;
}

.dash__heroBtns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash__periodForm {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.dash__filterBar .dash__periodForm {
  flex: 1 1 auto;
  min-width: 0;
}

.dash__filterBar .dash__periodForm > select.dash__input {
  min-width: 120px;
  max-width: 200px;
  flex: 0 1 auto;
}

.dash__periodCustom {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dash__periodCustom .dash__input[type="date"] {
  width: auto;
  min-width: 118px;
  max-width: 150px;
}

.dash__btn {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: #fff;
  color: rgba(25, 30, 40, 0.85);
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash__btn:not(.dash__btn--primary):not(.dash__btn--danger):hover {
  background: rgba(124, 92, 255, 0.08);
}

.dash__btn--ghost {
  background: #fff;
  color: rgba(25, 30, 40, 0.85);
}

.dash__btn--primary {
  border-color: transparent;
  background: #7c5cff;
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 92, 255, 0.25);
}

.dash__btn--primary:hover {
  filter: brightness(1.03);
  background: #7356ff;
}

.dash__btn--danger {
  border-color: transparent;
  background: #e24b4b;
  color: #fff;
  box-shadow: 0 14px 28px rgba(226, 75, 75, 0.22);
}

.dash__btn--danger:hover {
  background: #d74242;
  filter: brightness(1.02);
}

.dash__btnIcon svg {
  width: 16px;
  height: 16px;
}

.dash__sectionLead {
  padding: 4px 4px 0;
}

.dash__sectionLead--charts {
  padding: 0 2px 0;
  width: 100%;
  max-width: 100%;
}

.dash__sectionLead--charts .dash__sectionLeadTitle,
.dash__sectionLead--charts .dash__sectionLeadSub {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  max-width: 100%;
}

.dash__sectionLeadTitle {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(25, 30, 40, 0.92);
}

.dash__sectionLeadSub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(25, 30, 40, 0.55);
}

/* Обзор: сетка 12 колонок — половинные графики в паре, финансы на всю ширину */
.dash__chartsGrid.dash__grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dash__chartsGrid .dash__widget {
  min-width: 0;
}

.dash__chartsGrid .dash__widget--chartHalf {
  grid-column: span 12;
}

.dash__chartsGrid .dash__widget--chartWide {
  grid-column: span 12;
}

@media (min-width: 900px) {
  .dash__chartsGrid .dash__widget--chartHalf {
    grid-column: span 6;
  }
}

@media (max-width: 899px) {
  .dash__chartsGrid .dash__widget--chartHalf {
    grid-column: span 12;
  }
}

.dash__widget--chart {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.dash__chartsGrid .dash__widget--chartHalf {
  min-height: 360px;
}

.dash__chartsGrid .dash__widget--chartWide {
  min-height: 380px;
}

.dash__chartWrap {
  position: relative;
  flex: 1;
  min-height: 280px;
  width: 100%;
}

.dash__chartsGrid .dash__widget--chartWide .dash__chartWrap {
  min-height: 300px;
}

/* Страница «Аналитика»: один график на строку на всю ширину контента */
.dash__chartsGrid--full .dash__widget--chart {
  grid-column: span 12;
}

.dash__chartsGrid--full .dash__widget--chartWide {
  min-height: 400px;
}

.dash__chartsGrid--full .dash__widget--chart .dash__chartWrap {
  min-height: 320px;
}

.dash__chartsGrid--full .dash__chartWrap--tall {
  min-height: 420px;
}

.dash__chartWrap--tall {
  min-height: 400px;
}

.dash__chartEmptyMsg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(25, 30, 40, 0.55);
  pointer-events: none;
  z-index: 1;
}

.dash__analyticsHints {
  display: grid;
  gap: 10px;
  padding: 0 4px;
}

.dash__analyticsHints--row {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .dash__analyticsHints--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash__analyticsHint {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(25, 30, 40, 0.58);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.12);
}

.dash__analyticsHint strong {
  color: rgba(25, 30, 40, 0.8);
  font-weight: 600;
}

.dash__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

/* Компактная полоска KPI на обзоре: 4 карточки в один ряд */
.dash__kpis--strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dash__kpis--strip .dash__kpi {
  padding: 10px 12px 10px;
  border-radius: 12px;
}

.dash__kpis--strip .dash__kpiTop {
  align-items: flex-start;
  gap: 8px;
}

.dash__kpis--strip .dash__kpiValue {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.dash__kpis--strip .dash__kpiIcon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.dash__kpis--strip .dash__kpiLabel {
  font-size: 11px;
  font-weight: 600;
}

.dash__kpiHead {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash__kpiMeta {
  font-size: 10px;
  font-weight: 500;
  color: rgba(25, 30, 40, 0.48);
  line-height: 1.25;
  word-break: break-word;
}

.dash__kpi {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 16px;
  padding: 14px 14px 12px;
}

.dash__kpiTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash__kpiLabel {
  min-width: 0;
  color: rgba(25, 30, 40, 0.6);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.dash__kpiValue {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.dash__kpiIcon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}

.dash__kpiIcon svg {
  width: 16px;
  height: 16px;
}

.dash__kpiIcon--purple {
  background: rgba(124, 92, 255, 0.95);
}

.dash__kpiIcon--red {
  background: rgba(255, 90, 90, 0.95);
}

.dash__kpiIcon--blue {
  background: rgba(35, 196, 248, 0.95);
}

.dash__kpiIcon--amber {
  background: rgba(255, 184, 0, 0.95);
}

.dash__meter {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 24, 34, 0.08);
  overflow: hidden;
}

.dash__meterBar {
  height: 100%;
  border-radius: 999px;
}

.dash__meterBar--purple {
  background: rgba(124, 92, 255, 0.95);
}

.dash__meterBar--red {
  background: rgba(255, 90, 90, 0.95);
}

.dash__meterBar--blue {
  background: rgba(35, 196, 248, 0.95);
}

.dash__meterBar--amber {
  background: rgba(255, 184, 0, 0.95);
}

.dash__kpiFoot {
  margin-top: 8px;
  text-align: right;
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
  font-weight: 600;
}

.dash__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dash__widget {
  grid-column: span 4;
  background: #fff;
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.dash__widget--table {
  grid-column: span 8;
}

.dash__content--stack .dash__widget--table {
  grid-column: auto;
  width: 100%;
}

.dash__widget--tasks {
  grid-column: span 4;
}

.dash__widgetHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dash__widgetTitle {
  font-weight: 700;
  font-size: 14px;
}

.dash__widgetSub {
  font-size: 11px;
  margin-top: 2px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__dots {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dash__dots span {
  display: block;
  width: 3px;
  height: 3px;
  background: rgba(25, 30, 40, 0.55);
  border-radius: 50%;
  margin: 1px 0;
}

.dash__pie {
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 6px 0 2px;
}

.dash__pieRing {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: conic-gradient(#7c5cff 0 45%, #ff5aa5 45% 90%, #2cc8c8 90% 100%);
  -webkit-mask: radial-gradient(circle at center, transparent 58px, #000 59px);
  mask: radial-gradient(circle at center, transparent 58px, #000 59px);
}

.dash__pieLegend {
  width: 100%;
  display: flex;
  justify-content: space-around;
  gap: 10px;
  font-size: 11px;
  color: rgba(25, 30, 40, 0.65);
}

.dash__lgItem {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dash__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dash__dot--purple {
  background: #7c5cff;
}

.dash__dot--pink {
  background: #ff5aa5;
}

.dash__dot--teal {
  background: #2cc8c8;
}

.dash__bars {
  height: 160px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 10px;
  padding: 6px 8px 0;
}

.dash__bar {
  width: 100%;
  border-radius: 12px 12px 6px 6px;
  background: rgba(124, 92, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.dash__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.55), rgba(124, 92, 255, 0.12));
}

.dash__stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 6px;
}

.dash__statLbl {
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__statVal {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash__statVal::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.dash__statVal.is-up {
  color: rgba(35, 160, 120, 0.95);
}

.dash__statVal.is-up::before {
  border-bottom: 7px solid rgba(35, 160, 120, 0.95);
}

.dash__statVal.is-down {
  color: rgba(255, 90, 90, 0.95);
}

.dash__statVal.is-down::before {
  border-top: 7px solid rgba(255, 90, 90, 0.95);
}

.dash__rev {
  padding: 2px 0 0;
}

.dash__revValue {
  font-size: 22px;
  font-weight: 800;
}

.dash__revSub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__spark {
  width: 100%;
  height: auto;
  margin-top: 12px;
  display: block;
}

.dash__table {
  display: grid;
  gap: 10px;
}

.dash__thead,
.dash__row {
  display: grid;
  grid-template-columns: 36px 1.6fr 0.7fr 0.7fr 1.1fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.dash__table--metrics7 .dash__thead,
.dash__table--metrics7 .dash__row {
  grid-template-columns: minmax(92px, 1.1fr) repeat(5, minmax(54px, 0.82fr)) minmax(16px, 0.35fr);
}

.dash__table--sku6 .dash__thead,
.dash__table--sku6 .dash__row {
  grid-template-columns: minmax(72px, 0.75fr) minmax(120px, 2.2fr) minmax(72px, 0.75fr) minmax(56px, 0.55fr) minmax(64px, 0.6fr) minmax(72px, 0.75fr);
}

.dash__table--products6 .dash__thead,
.dash__table--products6 .dash__row {
  grid-template-columns: var(--products-cols, minmax(120px, 0.9fr) minmax(150px, 1.1fr) minmax(0, 2.6fr) minmax(140px, 1.4fr) 96px 112px 128px 84px 76px 92px);
}

.dash__table--products6 [data-col="price"],
.dash__table--products6 [data-col="old_price"],
.dash__table--products6 [data-col="cost_price"],
.dash__table--products6 [data-col="rating"],
.dash__table--products6 [data-col="stock"],
.dash__table--products6 [data-col="status"] {
  text-align: right;
  white-space: nowrap;
}

.dash__table--products6 .dash__row > :nth-child(1),
.dash__table--products6 .dash__row > :nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__iconBtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: #fff;
  color: rgba(25, 30, 40, 0.72);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.dash__iconBtn:hover {
  background: rgba(124, 92, 255, 0.08);
  color: rgba(25, 30, 40, 0.92);
}

.dash__iconBtn svg {
  width: 18px;
  height: 18px;
}

.dash__thead {
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
  font-weight: 600;
  padding: 6px 8px;
}

.dash__row {
  padding: 10px 8px;
  border-radius: 14px;
}

.dash__row:hover {
  background: rgba(124, 92, 255, 0.06);
}

.dash__cellMuted {
  color: rgba(25, 30, 40, 0.55);
  font-weight: 600;
}

.dash__ref {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash__pavatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(35, 196, 248, 0.9));
}

.dash__pavatar.is-2 {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.92), rgba(255, 90, 90, 0.92));
}

.dash__pavatar.is-3 {
  background: linear-gradient(135deg, rgba(44, 200, 200, 0.92), rgba(124, 92, 255, 0.92));
}

.dash__pavatar.is-4 {
  background: linear-gradient(135deg, rgba(255, 90, 165, 0.92), rgba(255, 185, 122, 0.92));
}

.dash__refName {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__refSub {
  margin-top: 1px;
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__rate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}

.dash__ring {
  --p: 75;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: conic-gradient(#7c5cff calc(var(--p) * 1%), rgba(20, 24, 34, 0.12) 0);
  -webkit-mask: radial-gradient(circle at center, transparent 6px, #000 7px);
  mask: radial-gradient(circle at center, transparent 6px, #000 7px);
}

.dash__tasks {
  display: grid;
  gap: 10px;
  padding: 4px 2px 10px;
}

.dash__task {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(25, 30, 40, 0.78);
}

.dash__task input {
  width: 16px;
  height: 16px;
  accent-color: #7c5cff;
}

.dash__add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 6px;
}

.dash__addInput {
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  background: #fff;
}

.dash__addInput:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}

.dash__addBtn {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  background: #7c5cff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.dash__addBtn:hover {
  filter: brightness(1.03);
}

/* Settings page */
.dash__pageHead {
  padding: 8px 4px 0;
}

.dash__pageTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: rgba(20, 24, 34, 0.9);
}

.dash__settings {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

/* Settings page: align width with dashboard/products */
body.dash.dash--settings .dash__settings {
  max-width: none;
  margin: 0;
  gap: 16px;
}

/* Settings page: keep action buttons compact (not full width) */
body.dash.dash--settings .dash__dangerGrid .dash__btn {
  width: auto;
  justify-content: center;
}

@media (max-width: 760px) {
  body.dash.dash--settings .dash__dangerGrid .dash__btn {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Ozon API: keys on the left, actions on the right */
.dash__ozonLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.dash__ozonActions {
  background: rgba(124, 92, 255, 0.04);
  border: 1px solid rgba(124, 92, 255, 0.10);
  border-radius: 16px;
  padding: 14px;
}

.dash__ozonActionsTitle {
  font-weight: 800;
  font-size: 13px;
}

.dash__ozonActionsSub {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__ozonActionsBtns {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.dash__ozonActionsBtns form {
  margin: 0;
}

.dash__ozonActionsBtns .dash__btn {
  width: auto;
  justify-content: center;
}

.dash__ozonActionsBtns .dash__tiny {
  margin-top: 6px;
}

/* Settings: compact inputs for API keys */
body.dash.dash--settings .dash__input.dash__input--compact {
  width: 60%;
  min-width: 320px;
}

body.dash.dash--settings .dash__btn--compactAddShop {
  width: 25%;
  min-width: 180px;
  justify-content: center;
}

@media (max-width: 1100px) {
  .dash__ozonLayout {
    grid-template-columns: 1fr;
  }
  .dash__ozonActionsBtns .dash__btn {
    width: 100%;
    justify-content: flex-start;
  }
  body.dash.dash--settings .dash__input.dash__input--compact {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body.dash.dash--settings .dash__btn--compactAddShop {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
}

.dash__formCard {
  background: #fff;
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.dash__formRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dash__formTitle {
  font-weight: 800;
  font-size: 13px;
}

.dash__formHint {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__sectionHead {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.dash__sectionTitle {
  font-weight: 800;
  font-size: 13px;
}

.dash__sectionSub {
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dash__field {
  display: grid;
  gap: 6px;
}

.dash__label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(25, 30, 40, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dash__input,
.dash__textarea,
.dash__file {
  width: 100%;
  border: 1px solid rgba(15, 20, 30, 0.10);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  padding: 9px 10px;
  outline: none;
  color: rgba(20, 24, 34, 0.9);
}

.dash__input,
.dash__file {
  height: 40px;
}

.dash__input:focus,
.dash__textarea:focus,
.dash__file:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}

.dash__textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.35;
}

.dash__textarea[readonly] {
  background: rgba(15, 20, 30, 0.03);
  color: rgba(25, 30, 40, 0.6);
}

.dash__tiny {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(25, 30, 40, 0.55);
}

.dash__formActions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash__note {
  font-size: 11px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__wideBtn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 0;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  margin-top: 12px;
  text-align: left;
  padding: 0 12px;
}

.dash__wideBtn--blue {
  background: rgba(20, 110, 210, 0.9);
  color: #fff;
}

.dash__wideBtn--blue:hover {
  filter: brightness(1.04);
}

.dash__dangerGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.dash__dangerGrid .dash__btn {
  width: 100%;
  justify-content: flex-start;
}

.dash__shopDanger {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dash__modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.35);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}

.dash__modalOverlay.is-open {
  display: flex;
}

.dash__modal {
  width: min(560px, 100%);
  border-radius: 18px;
  background: #fff;
  color: rgba(15, 20, 30, 0.95);
  border: 1px solid rgba(15, 20, 30, 0.10);
  box-shadow: 0 18px 60px rgba(15, 20, 30, 0.20);
  padding: 16px;
}

.dash__modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 20, 30, 0.08);
  margin-bottom: 12px;
}

.dash__modalTitle {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.dash__modalClose {
  border: 0;
  background: transparent;
  color: rgba(15, 20, 30, 0.55);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.dash__modalClose:hover {
  background: rgba(15, 20, 30, 0.06);
  color: rgba(15, 20, 30, 0.92);
}

.dash__modalBody {
  padding: 6px 0 12px;
}

.dash__modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 20, 30, 0.08);
}

.dash__toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 24px));
  background: #fff;
  border: 1px solid rgba(15, 20, 30, 0.10);
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(15, 20, 30, 0.18);
  padding: 12px 14px 10px;
  z-index: 2100;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  overflow: hidden;
}

.dash__toast.is-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  transition: 240ms ease;
}

.dash__toastTitle {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 4px;
  color: rgba(15, 20, 30, 0.92);
}

.dash__toastText {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(15, 20, 30, 0.78);
  word-break: break-word;
}

.dash__toastClose {
  border: 0;
  background: rgba(15, 20, 30, 0.06);
  color: rgba(15, 20, 30, 0.55);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dash__toastClose:hover {
  background: rgba(15, 20, 30, 0.10);
  color: rgba(15, 20, 30, 0.85);
}

.dash__toastBar {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(15, 20, 30, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}

.dash__toastBar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
}

.dash__toastBar.is-run::after {
  animation: dashToastFill var(--toast-duration, 4200ms) linear forwards;
}

.dash__toast--ok .dash__toastBar::after {
  background: linear-gradient(90deg, rgba(35, 160, 120, 0.25), rgba(35, 160, 120, 0.85), rgba(35, 160, 120, 0.25));
}

.dash__toast--err .dash__toastBar::after {
  background: linear-gradient(90deg, rgba(226, 75, 75, 0.25), rgba(226, 75, 75, 0.88), rgba(226, 75, 75, 0.25));
}

@keyframes dashToastFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Switch */
.dash__switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
}

.dash__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dash__switchUI {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(20, 24, 34, 0.14);
  border: 1px solid rgba(15, 20, 30, 0.10);
  transition: 160ms ease;
}

.dash__switchUI::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition: 160ms ease;
}

.dash__switch input:checked + .dash__switchUI {
  background: rgba(124, 92, 255, 0.95);
  border-color: rgba(124, 92, 255, 0.55);
}

.dash__switch input:checked + .dash__switchUI::after {
  left: 22px;
}

.dash__switch input:focus-visible + .dash__switchUI {
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}

@media (max-width: 1100px) {
  .dash__app {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .dash__widget {
    grid-column: span 6;
  }

  .dash__widget--table {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .dash__app {
    grid-template-columns: 1fr;
  }

  .dash__sidebar {
    position: relative;
    height: auto;
  }

  body.dash.dash--collapsed .dash__app {
    grid-template-columns: 1fr;
  }

  .dash__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dash__topbar .dash__actions {
    align-self: flex-end;
    padding-top: 0;
  }

  .dash__search {
    max-width: none;
  }

  .dash__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash__kpis:not(.dash__kpis--strip) {
    grid-template-columns: 1fr;
  }

  .dash__kpis--strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dash__widget {
    grid-column: span 12;
  }

  .dash__thead {
    display: none;
  }

  .dash__row {
    grid-template-columns: 36px 1fr;
    grid-auto-rows: auto;
    gap: 6px 10px;
  }

  .dash__row > :nth-child(n + 3) {
    justify-self: start;
  }

  .dash__rate {
    justify-content: flex-start;
  }

  .dash__grid2 {
    grid-template-columns: 1fr;
  }

  .dash__dangerGrid {
    grid-template-columns: 1fr;
  }
}

/* Карточка товара: читаемое представление RAW Ozon */
.dash__widget .dash__rawReadable {
  margin-top: 4px;
}

.dash__rawReadable {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(25, 30, 40, 0.88);
  max-width: 100%;
  min-width: 0;
}

.dash__rawRoot {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash__rawSection {
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 20, 30, 0.05);
}

.dash__rawSectionTitle {
  margin: 0;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(124, 92, 255, 0.05));
  border-bottom: 1px solid rgba(15, 20, 30, 0.07);
  color: rgba(25, 30, 40, 0.85);
}

.dash__rawSectionBody {
  padding: 0;
  background: #fff;
}

/* Таблица полей: строки как на дашборде */
.dash__rawDl {
  display: grid;
  grid-template-columns: minmax(148px, 0.32fr) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  align-items: stretch;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.dash__rawDt {
  margin: 0;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(25, 30, 40, 0.48);
  background: rgba(124, 92, 255, 0.045);
  border-bottom: 1px solid rgba(15, 20, 30, 0.07);
  border-right: 1px solid rgba(15, 20, 30, 0.06);
  align-self: stretch;
}

.dash__rawDd {
  margin: 0;
  padding: 11px 16px;
  min-width: 0;
  word-break: break-word;
  font-size: 13px;
  font-weight: 500;
  color: rgba(25, 30, 40, 0.92);
  background: #fff;
  border-bottom: 1px solid rgba(15, 20, 30, 0.06);
  align-self: stretch;
}

.dash__rawDl .dash__rawDt:last-of-type,
.dash__rawDl .dash__rawDd:last-of-type {
  border-bottom: none;
}

.dash__rawDd .dash__rawDl {
  margin-top: 10px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.dash__rawDd .dash__rawDt {
  font-size: 10px;
  padding: 8px 10px;
}

.dash__rawDd .dash__rawDd {
  padding: 8px 12px;
  font-size: 12px;
}

.dash__rawMuted {
  color: rgba(25, 30, 40, 0.45);
  font-style: italic;
  font-weight: 400;
}

.dash__rawBool {
  font-weight: 700;
  color: rgba(25, 30, 40, 0.78);
}

.dash__rawNum {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dash__rawLink {
  word-break: break-all;
  color: #5b4bdb;
  font-weight: 600;
}

.dash__rawStr--url {
  max-width: 100%;
}

.dash__rawImgWrap {
  margin-top: 10px;
  max-width: 100%;
}

.dash__rawImg {
  display: block;
  width: auto;
  max-width: min(320px, 100%);
  max-height: 200px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 30, 0.1);
  object-fit: contain;
  background: rgba(248, 249, 252, 0.9);
}

.dash__rawGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  max-width: 100%;
  padding: 2px 0 4px;
}

.dash__rawGalleryItem {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 20, 30, 0.1);
  background: rgba(15, 20, 30, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dash__rawGalleryItem:hover {
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.18);
  transform: translateY(-1px);
}

.dash__rawGalleryItem:focus-visible {
  outline: 2px solid rgba(124, 92, 255, 0.55);
  outline-offset: 2px;
}

.dash__rawGalleryItem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash__rawList {
  margin: 6px 0 0;
  padding-left: 1.15em;
}

.dash__rawList li {
  margin: 4px 0;
}

.dash__rawTableWrap {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  -webkit-overflow-scrolling: touch;
}

.dash__rawTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dash__rawTable th,
.dash__rawTable td {
  border: 1px solid rgba(15, 20, 30, 0.07);
  padding: 9px 11px;
  vertical-align: top;
  text-align: left;
}

.dash__rawTable th {
  background: rgba(124, 92, 255, 0.07);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(25, 30, 40, 0.58);
  white-space: nowrap;
}

.dash__rawTable tbody tr:nth-child(even) td {
  background: rgba(124, 92, 255, 0.02);
}

.dash__rawDetails {
  margin-top: 8px;
  max-width: 100%;
}

.dash__rawSummary {
  cursor: pointer;
  font-weight: 700;
  color: rgba(124, 92, 255, 0.95);
  font-size: 12px;
  list-style: none;
}

.dash__rawSummary::-webkit-details-marker {
  display: none;
}

.dash__rawRich {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(248, 249, 252, 0.95);
  border: 1px solid rgba(15, 20, 30, 0.07);
  font-size: 13px;
  line-height: 1.55;
  max-height: min(400px, 50vh);
  overflow: auto;
}

.dash__rawRich ul {
  padding-left: 1.2em;
}

.dash__rawPre {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: rgba(15, 20, 30, 0.04);
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.45;
  overflow-x: auto;
}

.dash__rawPre--inline {
  margin-top: 6px;
}

.dash__rawPre--json {
  max-height: min(420px, 55vh);
  overflow: auto;
}

.dash__rawJsonToggle {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(15, 20, 30, 0.14);
}

.dash__rawJsonSummary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: rgba(25, 30, 40, 0.5);
  letter-spacing: 0.02em;
}

.dash__rawEmpty {
  margin: 0;
  color: rgba(25, 30, 40, 0.45);
}

@media (max-width: 720px) {
  .dash__rawDl {
    grid-template-columns: 1fr;
  }

  .dash__rawDt {
    border-right: none;
    padding-bottom: 6px;
    border-bottom: none;
    background: rgba(124, 92, 255, 0.06);
  }

  .dash__rawDd {
    padding-top: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 20, 30, 0.08);
    margin-bottom: 4px;
  }

  .dash__rawDl .dash__rawDd:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
  }

  .dash__rawGallery {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
}

/* Рентабельность (карточка товара) */
.dash__widget--profit .dash__widgetSub {
  max-width: 720px;
  line-height: 1.45;
}

.dash__profitOk {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(25, 120, 80, 0.95);
  background: rgba(35, 160, 120, 0.1);
  border: 1px solid rgba(35, 160, 120, 0.22);
}

.dash__profitErr {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(180, 45, 45, 0.95);
  background: rgba(226, 75, 75, 0.08);
  border: 1px solid rgba(226, 75, 75, 0.25);
}

.dash__profitForm {
  margin: 10px 0 14px;
}

.dash__profitLabel {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(25, 30, 40, 0.52);
  margin-bottom: 6px;
}

.dash__profitFormRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dash__profitInput {
  flex: 1 1 160px;
  max-width: 260px;
  min-width: 120px;
}

.dash__profitBreakdown {
  padding: 12px 0;
  border-top: 1px dashed rgba(15, 20, 30, 0.1);
  border-bottom: 1px dashed rgba(15, 20, 30, 0.1);
}

.dash__profitKV {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dash__profitK {
  font-size: 12px;
  font-weight: 600;
  color: rgba(25, 30, 40, 0.55);
}

.dash__profitV {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(25, 30, 40, 0.92);
}

.dash__profitHint {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(25, 30, 40, 0.48);
}

.dash__profitLines {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.dash__profitLine {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: linear-gradient(165deg, rgba(124, 92, 255, 0.06), rgba(255, 255, 255, 0.96));
}

.dash__profitLineTitle {
  font-size: 13px;
  font-weight: 700;
  color: rgba(25, 30, 40, 0.9);
}

.dash__profitLineFormula {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(25, 30, 40, 0.48);
}

.dash__profitLineValue {
  margin-top: 10px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.dash__profitLineValue strong {
  font-weight: 700;
}

.dash__profitPos {
  color: rgba(25, 120, 75, 0.98);
}

.dash__profitNeg {
  color: rgba(190, 55, 55, 0.98);
}

.dash__profitPct {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(25, 30, 40, 0.55);
}

.dash__profitMuted {
  font-size: 13px;
  color: rgba(25, 30, 40, 0.45);
  font-weight: 500;
}

.dash__profitSaleHint {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(25, 30, 40, 0.55);
}

.dash__profitOzonExplain {
  margin-top: 12px;
}

.dash__profitOzonTitle {
  font-size: 13px;
  font-weight: 700;
  color: rgba(25, 30, 40, 0.88);
  margin-bottom: 6px;
}

.dash__profitOzonLead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(25, 30, 40, 0.62);
}

.dash__profitCode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.1);
  color: rgba(70, 50, 150, 0.95);
}

.dash__profitHint--accent {
  color: rgba(25, 30, 40, 0.72);
}

.dash__profitPieceList {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash__profitPieceList > li {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 20, 30, 0.08);
  background: rgba(248, 249, 252, 0.9);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: start;
}

.dash__profitPieceName {
  grid-column: 1;
  font-size: 12px;
  font-weight: 700;
  color: rgba(25, 30, 40, 0.82);
}

.dash__profitPieceVal {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(25, 30, 40, 0.92);
  align-self: center;
}

.dash__profitPieceDesc {
  grid-column: 1;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(25, 30, 40, 0.52);
}

.dash__profitFormula {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.15);
  color: rgba(25, 30, 40, 0.78);
}

.dash__profitAllSchemas {
  margin-top: 12px;
}

.dash__profitAllSchemas > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(124, 92, 255, 0.95);
  margin-bottom: 8px;
  list-style: none;
}

.dash__profitAllSchemas > summary::-webkit-details-marker {
  display: none;
}

.dash__profitSchemaTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.dash__profitSchemaTable th,
.dash__profitSchemaTable td {
  padding: 7px 8px;
  text-align: left;
  border: 1px solid rgba(15, 20, 30, 0.08);
  vertical-align: top;
}

.dash__profitSchemaTable th {
  background: rgba(124, 92, 255, 0.07);
  font-weight: 700;
}

.dash__profitSchemaTable tr.is-selected td {
  background: rgba(35, 160, 120, 0.1);
  font-weight: 600;
}

.dash__profitDisclaimer {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(25, 30, 40, 0.48);
}

@media (max-width: 620px) {
  .dash__profitPieceList > li {
    grid-template-columns: 1fr;
  }

  .dash__profitPieceVal {
    grid-column: 1;
    grid-row: auto;
  }
}

