#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 0 30px !important;
  overflow: visible !important;
  color: #142746;
  background: #f4f7fb !important;
  font-family: Inter, "Segoe UI", sans-serif !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-e4-commandbar {
  width: 100% !important;
  height: 74px !important;
  margin: 0 0 10px !important;
}

.sp-fbs-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 42px;
  width: 100%;
  height: 82px;
  margin: 4px 0 0;
}

.sp-fbs-metric {
  position: relative;
  min-width: 0;
  padding-top: 13px;
  border-top: 2px solid #d8e2ef;
}

.sp-fbs-metric > span {
  display: block;
  overflow: hidden;
  color: #7787a1;
  font-size: 9px;
  font-weight: 500;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-fbs-metric > strong {
  display: block;
  margin-top: 5px;
  color: #152440;
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.sp-fbs-metric > strong small {
  font-size: 9px;
  font-weight: 500;
}

.sp-fbs-metric > b {
  display: block;
  margin-top: 6px;
  color: #3f6bf6;
  font-size: 9px;
  font-weight: 500;
  line-height: 13px;
  white-space: nowrap;
}

.sp-fbs-table-shell {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.sp-fbs-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-color: #aab8ca transparent;
  scrollbar-width: thin;
}

.sp-fbs-table {
  width: 1192px !important;
  min-width: 1192px !important;
  max-width: 1192px !important;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  color: #41516a;
  background: #fff;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 9px;
  line-height: 1;
}

.sp-fbs-col-product { width: 210px !important; }
.sp-fbs-col-size { width: 56px !important; }
.sp-fbs-col-base { width: 88px !important; }
.sp-fbs-col-region { width: 125px !important; }

.sp-fbs-table th,
.sp-fbs-table td {
  box-sizing: border-box;
  height: 31px;
  padding: 0 8px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #e6edf6;
  border-bottom: 1px solid #e6edf6;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  vertical-align: middle;
}

.sp-fbs-table tr > :last-child {
  border-right: 0;
}

.sp-fbs-head-primary > th {
  height: 48px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: #142746;
  font-size: 8px;
  font-weight: 700;
}

.sp-fbs-head-primary > th:first-child {
  border-radius: 14px 0 0;
}

.sp-fbs-head-primary > th:last-child {
  border-radius: 0 14px 0 0;
}

.sp-fbs-head-primary > th[rowspan="3"] {
  height: 72px;
}

.sp-fbs-head-primary .sp-fbs-base-head {
  height: 17px;
  background: linear-gradient(100deg, #132c58 0%, #244fc8 56%, #23b9d1 100%);
}

.sp-fbs-head-primary .sp-fbs-region-head {
  padding: 0 4px;
  background: #142746;
}

.sp-fbs-region-head b,
.sp-fbs-region-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-fbs-region-head b {
  margin: 1px 0 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.sp-fbs-region-head small {
  color: #b9c8dd;
  font-size: 8px;
  font-weight: 500;
}

.sp-fbs-head-secondary th {
  height: 31px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(100deg, #132c58 0%, #244fc8 56%, #23b9d1 100%);
  font-size: 7px;
  font-weight: 600;
}

.sp-fbs-grand-total th {
  height: 24px;
  padding: 0 8px;
  color: #243b5f;
  background: #f2f6fb;
  font-size: 9px;
  font-weight: 600;
}

.sp-fbs-grand-total th:first-child,
.sp-fbs-table td.sp-fbs-own {
  border-left: 2px solid #718cf7;
}

.sp-fbs-grand-total th:nth-child(2),
.sp-fbs-table td.sp-fbs-fulfillment {
  border-right: 2px solid #4abcd7;
}

.sp-fbs-base {
  color: #42536d;
  background: #f8fafd;
  font-weight: 500;
}

.sp-fbs-region {
  color: #142746;
  background: #fff;
  font-weight: 500;
}

.sp-fbs-region span,
.sp-fbs-region i,
.sp-fbs-region b {
  display: inline;
  font-style: normal;
  font-weight: 500;
}

.sp-fbs-region i {
  padding: 0 6px;
  color: #a9b7ca;
}

.sp-fbs-region b {
  color: #4c67f5;
}

.sp-fbs-table .sp-fbs-negative {
  color: #e9526d !important;
}

.sp-fbs-product {
  padding: 10px 12px !important;
  background: #fbfcfe;
  text-align: left !important;
  vertical-align: top !important;
}

.sp-fbs-product > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
}

.sp-fbs-photo {
  display: grid;
  width: 28px;
  height: 36px;
  flex: 0 0 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #8da0b9;
  background: #e7edf4;
  font-size: 7px;
  font-weight: 700;
}

.sp-fbs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-fbs-product-copy {
  display: block;
  min-width: 0;
  padding-top: 2px;
}

.sp-fbs-product-copy b,
.sp-fbs-product-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-fbs-product-copy b {
  color: #263958;
  font-size: 9px;
  font-weight: 600;
  line-height: 13px;
}

.sp-fbs-product-copy small {
  margin-top: 3px;
  color: #9aa8ba;
  font-size: 7px;
  font-weight: 500;
  line-height: 10px;
}

.sp-fbs-size {
  color: #3e526e;
  background: #fff;
  font-size: 9px;
  font-weight: 500;
}

.sp-fbs-article-total td {
  height: 24px;
  color: #405674;
  background: #dce8f6;
  font-weight: 600;
  border-bottom: 2px solid #9eb2cc;
}

.sp-fbs-article-total td.sp-fbs-base,
.sp-fbs-article-total td.sp-fbs-region {
  background: #dce8f6;
}

.sp-fbs-empty,
.sp-fbs-table-empty {
  text-align: center;
}

.sp-fbs-empty {
  display: grid;
  min-height: 210px;
  place-content: center;
  gap: 8px;
  padding: 28px;
}

.sp-fbs-empty span,
.sp-fbs-table-empty span {
  display: block;
  margin-top: 7px;
  color: #7b8ba1;
  font-weight: 500;
}

.sp-fbs-table td.sp-fbs-table-empty {
  height: 180px;
  background: #fff;
}

@media (max-width: 1279px) {
  .sp-fbs-metrics {
    gap: 12px;
  }

  .sp-fbs-metric > strong {
    font-size: 16px;
  }
}

/* Остатки FBS: точная геометрия финального кадра Figma 1440 x 1080. */
#app.warehouse-live-page .warehouse-shell-header-sales-distribution h1 {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 26px !important;
}

#app.warehouse-live-page .warehouse-shell-header-sales-distribution {
  background: #f4f7fb !important;
}

#app.warehouse-live-page .warehouse-shell-header-sales-distribution .warehouse-shell-actions {
  margin-right: 22px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metrics {
  height: 82px !important;
  margin: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metric {
  padding-top: 13px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metric > span {
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 12px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metric > strong,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metric > strong small {
  color: #152440 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metric > strong small {
  text-transform: lowercase !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metric > b {
  margin-top: 6px !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 13px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-commandbar {
  grid-template-columns: minmax(0, 820px) 158px !important;
  column-gap: 24px !important;
  align-items: end !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 64px !important;
  margin: 0 0 10px !important;
  padding: 7px 13px !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-commandbar::before,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-commandbar::after {
  display: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-period {
  display: grid !important;
  grid-template-rows: 11px 34px !important;
  gap: 0 !important;
  min-width: 0 !important;
  align-self: end !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search-field,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-period > div {
  box-sizing: border-box !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search-field {
  grid-template-columns: 19px minmax(0, 1fr) 20px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 11px !important;
  overflow: hidden !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search-field > span,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search-field > button {
  align-self: center !important;
  justify-self: center !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search-field > input {
  box-sizing: border-box !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  line-height: normal !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-search > label,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-e4-summary .sp-e4-period > span {
  font-size: 7.5px !important;
  font-weight: 500 !important;
  line-height: 9px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-table-shell {
  min-height: 818px !important;
  border-radius: 14px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-table-scroll {
  min-height: 818px !important;
  border-radius: 14px !important;
  background: #fff !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-table {
  color: #41516a !important;
  font-size: 7.5px !important;
  font-weight: 400 !important;
  line-height: 10px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-table th,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-table td {
  height: 31px !important;
  padding: 0 7px !important;
  border-right: 1px solid #e6edf6 !important;
  border-bottom: 1px solid #e6edf6 !important;
  font-size: 7.5px !important;
  font-weight: 400 !important;
  line-height: 10px !important;
  text-transform: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-table tr > :last-child {
  border-right: 0 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-head-primary > th {
  height: 48px !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: #142746 !important;
  font-size: 7px !important;
  font-weight: 600 !important;
  line-height: 9px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-head-primary > th[rowspan="3"] {
  height: 72px !important;
  font-size: 7.5px !important;
  font-weight: 600 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-head-primary .sp-fbs-base-head {
  height: 17px !important;
  border-bottom: 0 !important;
  background: #17386f url("/assets/e4/table-gradient.png") 0 0 / 176px 48px no-repeat !important;
  font-size: 6.5px !important;
  font-weight: 600 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-head-secondary th {
  height: 31px !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background-color: #17386f !important;
  background-image: url("/assets/e4/table-gradient.png") !important;
  background-size: 176px 48px !important;
  background-repeat: no-repeat !important;
  font-size: 6.5px !important;
  font-weight: 600 !important;
  line-height: 9px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-head-secondary th:first-child {
  background-position: 0 -17px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-head-secondary th:last-child {
  background-position: -88px -17px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region-head b {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-size: 7px !important;
  font-weight: 600 !important;
  line-height: 9px !important;
  text-transform: none !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region-head small {
  color: #b9c8dd !important;
  font-size: 5.5px !important;
  font-weight: 400 !important;
  line-height: 8px !important;
  text-transform: lowercase !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-grand-total th {
  height: 24px !important;
  color: #243b5f !important;
  background: #f2f6fb !important;
  font-size: 7.5px !important;
  font-weight: 600 !important;
  line-height: 10px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-grand-total .sp-fbs-region span {
  color: #243b5f !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-base {
  color: #42536d !important;
  background: #f8fafd !important;
  font-size: 7.5px !important;
  font-weight: 400 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region {
  color: #142746 !important;
  background: #fff !important;
  font-size: 7.5px !important;
  font-weight: 400 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region span,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region i,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region b {
  font-size: 7.5px !important;
  font-weight: 400 !important;
  line-height: 10px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-region i {
  padding: 0 3px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-size {
  color: #3e526e !important;
  background: #fff !important;
  font-size: 7.5px !important;
  font-weight: 500 !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-product {
  padding: 10px 12px !important;
  border-bottom: 2px solid #9eb2cc !important;
  background: #fbfcfe !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-product-copy b {
  color: #263958 !important;
  font-size: 7.5px !important;
  font-weight: 600 !important;
  line-height: 10px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-product-copy small {
  margin-top: 3px !important;
  color: #9aa8ba !important;
  font-size: 6px !important;
  font-weight: 400 !important;
  line-height: 8px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-article-total td {
  height: 24px !important;
  color: #405674 !important;
  border-bottom: 2px solid #9eb2cc !important;
  background: #dce8f6 !important;
  font-size: 7.5px !important;
  font-weight: 600 !important;
  line-height: 10px !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-article-total td.sp-fbs-base,
#app.warehouse-live-page .sellerpilot-warehouse-live .sp-fbs-article-total td.sp-fbs-region {
  background: #dce8f6 !important;
}

#app.warehouse-live-page .sp-e4-nav-logo {
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 7px 10px rgba(5, 20, 38, 0.22) !important;
}

#app.warehouse-live-page .sp-e4-nav-logo img {
  display: block !important;
  width: 26px !important;
  height: 30px !important;
  object-fit: contain !important;
}

#app.warehouse-live-page .sp-e4-nav-icon svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#app.warehouse-live-page .sp-e4-nav-item:not(.active) .sp-e4-nav-icon {
  background: rgba(255, 255, 255, 0.035) !important;
}

#app.warehouse-live-page .sp-e4-nav-sync > em {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  overflow: hidden !important;
  border-radius: 3px !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

#app.warehouse-live-page .sp-e4-nav-sync > em i {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, #43d1d7, #6680ff) !important;
}

#app.warehouse-live-page .sp-e4-nav-sync small {
  max-width: 78px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* The fixed portal viewport delegates vertical scrolling to the FBS table. */
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  height: calc(100vh - 66px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 66px) !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-metrics,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-card-split,
#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-e4-commandbar {
  flex: 0 0 auto !important;
}

.sp-fbs-card-split {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 7px 12px;
  border: 1px solid #dce6f2;
  border-radius: 9px;
  background: #ffffff;
  color: #526178;
  font-size: 10px;
  font-weight: 600;
}

.sp-fbs-card-split > b {
  color: #1f3150;
  font-size: 10px;
}

.sp-fbs-card-split .primary strong,
.sp-fbs-card-role.primary {
  color: #2857d9;
}

.sp-fbs-card-split .duplicate strong,
.sp-fbs-card-role.duplicate {
  color: #8a46d8;
}

.sp-fbs-card-role {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-table-shell {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

#app.warehouse-live-page .sellerpilot-warehouse-live .warehouse-page-sales-distribution .sp-fbs-table-scroll {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable;
}
