:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #1f2933;
  --muted: #65717f;
  --line: #dedbd2;
  --line-strong: #c8c3b7;
  --blue: #2f6f9f;
  --green: #2f855a;
  --amber: #b7791f;
  --rose: #b8324f;
  --shadow: 0 16px 40px rgba(31, 41, 51, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
a {
  font: inherit;
}

button,
a {
  min-height: 38px;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 420px);
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand-block,
.sidebar-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1f2933;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.brand-block h1,
.topbar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.brand-block p,
.sidebar-head span,
.platform-label,
#row-count {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form label,
.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.login-form input,
.search-box input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.login-form input:focus,
.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.login-form button,
.primary-button {
  border: 1px solid #21577e;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

.secondary-button,
.icon-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  font-weight: 900;
}

button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ghost-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
}

.form-error {
  min-height: 20px;
  color: var(--rose);
  font-size: 14px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #ece8df;
}

.sidebar-head strong {
  display: block;
  font-size: 16px;
}

.section-nav {
  display: grid;
  gap: 8px;
}

.section-link {
  display: grid;
  align-items: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 700;
}

.section-link:hover,
.section-link.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-status {
  display: grid;
  gap: 4px;
  align-content: start;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-status strong {
  color: var(--ink);
}

.cabinet-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  overflow: auto;
}

.cabinet-group {
  display: grid;
  gap: 4px;
}

.cabinet-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.cabinet-button:hover,
.cabinet-button.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.cabinet-title,
.cabinet-section-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-title {
  font-weight: 800;
}

.cabinet-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cabinet-sections {
  display: none;
  gap: 4px;
  padding: 2px 0 8px 12px;
}

.cabinet-group.expanded .cabinet-sections {
  display: grid;
}

.cabinet-section-link {
  display: grid;
  align-items: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  padding: 7px 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.cabinet-section-link:hover,
.cabinet-section-link.active {
  border-color: #21577e;
  background: #e7f1f8;
  color: #17415f;
}

.workbook-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  overflow: auto;
}

.workbook-button {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.workbook-button:hover,
.workbook-button.active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.workbook-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.workbook-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  border-radius: 999px;
  padding: 2px 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.ozon {
  background: var(--blue);
}

.badge.wb {
  background: var(--green);
}

.workspace {
  min-width: 0;
  padding: 22px 28px 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sheet-tabs {
  display: flex;
  gap: 8px;
  margin: 22px -2px 18px;
  padding: 2px 2px 8px;
  overflow-x: auto;
}

.sheet-tab {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 7px 12px;
  cursor: pointer;
}

.sheet-tab.active {
  border-color: #21577e;
  background: #e7f1f8;
  color: #17415f;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.metric-card {
  display: block;
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.metric-filter {
  cursor: pointer;
}

.metric-filter:hover,
.metric-filter.active,
.filter-button:hover,
.filter-button.active {
  border-color: #21577e;
  background: #e7f1f8;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: 24px;
  font-weight: 800;
}

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

.rank-panel,
.table-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-head,
.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.table-toolbar h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.rank-list {
  display: grid;
  gap: 1px;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-gutter: stable;
}

.rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 8px;
}

.filter-button {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.rank-item:hover {
  background: var(--surface-soft);
}

.rank-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-sku {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.rank-value {
  font-weight: 800;
  white-space: nowrap;
}

.rank-value.positive {
  color: var(--green);
}

.rank-value.negative {
  color: var(--rose);
}

.empty-state {
  padding: 18px;
  color: var(--muted);
}

.table-section {
  margin-top: 12px;
  overflow: hidden;
}

.search-box {
  width: min(280px, 100%);
}

.cost-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.dashboard-table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.inline-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.inline-toggle input {
  width: 16px;
  height: 16px;
}

.table-wrap {
  max-height: 58vh;
  min-height: 260px;
  overflow: auto;
}

.table-wrap.is-updating {
  opacity: 0.68;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

th,
td {
  max-width: 280px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ece8df;
  color: #2d3742;
  text-align: left;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
}

td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.column-filter-trigger {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 12px 0 0;
  text-align: left;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  cursor: pointer;
}

.column-filter-trigger.active {
  color: #21577e;
}

.column-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  z-index: 8;
  width: 7px;
  cursor: col-resize;
}

.column-resizer::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 3px;
  bottom: 8px;
  width: 1px;
  background: transparent;
}

th:hover .column-resizer::after {
  background: var(--blue);
}

.column-filter-popover {
  position: fixed;
  z-index: 100;
  width: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
}

.column-filter-form {
  display: grid;
  gap: 10px;
}

.column-filter-title {
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-filter-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.column-filter-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 9px;
}

.column-filter-sort,
.column-filter-actions,
.column-filter-range {
  display: flex;
  gap: 8px;
}

.column-filter-sort .ghost-button,
.column-filter-actions .ghost-button,
.column-filter-actions .primary-button {
  min-height: 34px;
  padding: 6px 10px;
}

.column-filter-sort .ghost-button.active {
  border-color: var(--blue);
  background: #e8f1f8;
  color: #174c72;
}

.unit-fact-table .sticky-col {
  position: sticky;
  background: #fffdfa;
  z-index: 3;
}

.unit-fact-table th.sticky-col {
  background: #ece8df;
  z-index: 5;
}

.weekly-comparison-table thead th {
  border-bottom: 2px solid var(--line-strong);
  background: #e3edf4;
  color: #1f405a;
  text-align: center;
  z-index: 7;
}

.weekly-comparison-table thead th.sticky-col {
  background: #d8e7f1;
  z-index: 9;
}

.weekly-comparison-table .comparison-subheader-row td {
  position: sticky;
  top: 40px;
  border-bottom: 2px solid var(--line-strong);
  background: #f3efe7;
  color: #2d3742;
  font-weight: 800;
  white-space: normal;
  z-index: 6;
}

.weekly-comparison-table .comparison-subheader-row td.sticky-col {
  background: #eee8dc;
  z-index: 8;
}

.unit-fact-table .sticky-col-1 {
  left: 0;
  width: 124px;
  min-width: 124px;
  max-width: 124px;
}

.unit-fact-table .sticky-col-2 {
  left: 124px;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
}

.unit-fact-table .sticky-col-3 {
  left: 236px;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
}

.unit-fact-table .sticky-col-4 {
  left: 384px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
}

.costs-table td {
  padding: 0;
}

.cost-cell {
  min-width: 150px;
}

.cost-input {
  display: block;
  width: 100%;
  min-width: 120px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 10px;
  outline: none;
}

.cost-input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(47, 111, 159, 0.34);
}

.cost-input.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid #8a2b40;
  border-radius: 8px;
  background: #fff2f4;
  color: #7b2137;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.notice {
  margin-top: 18px;
  border: 1px solid #d4a63b;
  border-radius: 8px;
  background: #fff8e7;
  color: #745018;
  padding: 12px 14px;
}

.notice.success {
  border-color: #78b58a;
  background: #eef8f0;
  color: #23613a;
}

.notice.error {
  border-color: #d28a92;
  background: #fff2f4;
  color: #8a2b40;
}

.reviews-metrics {
  margin-top: 22px;
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reviews-settings {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.reviews-settings.is-busy {
  opacity: 0.74;
}

.reviews-settings-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.reviews-settings h2 {
  margin: 0;
  font-size: 18px;
}

.reviews-settings-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.toggle-line,
.rating-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.toggle-line input,
.rating-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.rating-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-check {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px 10px;
}

.reviews-table .table-wrap {
  max-height: 62vh;
}

.reviews-workspace .table-wrap {
  max-height: none;
}

.orders-metrics {
  margin-top: 12px;
}

.unit-plan-metrics {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  margin-top: 12px;
}

.sync-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.sync-strip strong {
  color: var(--ink);
}

.sync-strip .positive {
  color: var(--green);
}

.sync-strip .negative {
  color: var(--rose);
}

.unit-plan-settings {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 340px);
  gap: 12px 18px;
  align-items: end;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.unit-plan-settings.is-busy {
  opacity: 0.74;
}

.unit-plan-settings-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

.unit-plan-settings h2 {
  margin: 0;
  font-size: 18px;
}

.unit-plan-settings-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.unit-plan-default-warehouse {
  width: 100%;
}

.unit-plan-default-warehouse .unit-plan-select {
  width: 100%;
  height: 38px;
}

.orders-table .table-wrap {
  max-height: 68vh;
}

.unit-plan-table .table-wrap {
  max-height: 68vh;
}

.dynamics-table .table-wrap {
  max-height: 68vh;
}

.dynamics-data-table {
  min-width: 1680px;
}

.dynamics-matrix-table {
  min-width: max-content;
}

.dynamics-matrix-table th:first-child,
.dynamics-matrix-table td:first-child {
  width: 190px;
  min-width: 190px;
}

.dynamics-matrix-table .metric-column,
.dynamics-matrix-table .metric-cell {
  position: sticky;
  left: 190px;
  z-index: 1;
  width: 230px;
  min-width: 230px;
  background: var(--surface);
}

.dynamics-matrix-table th.metric-column {
  z-index: 3;
  background: #ece8df;
}

.dynamics-matrix-table .target-column,
.dynamics-matrix-table .target-cell {
  width: 110px;
  min-width: 110px;
  background: var(--surface);
}

.dynamics-matrix-table th.target-column {
  background: #ece8df;
}

.dynamics-matrix-table .target-cell {
  color: var(--muted);
  font-weight: 700;
}

.dynamics-matrix-table .date-column {
  min-width: 86px;
  text-align: right;
}

.dynamics-matrix-table .product-cell {
  background: var(--surface-soft);
  vertical-align: top;
}

.dynamics-matrix-table .metric-cell {
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.dynamics-matrix-table .product-start td,
.dynamics-matrix-table .product-start .product-cell,
.dynamics-matrix-table .product-start .metric-cell,
.dynamics-matrix-table .product-start .target-cell {
  border-top: 2px solid var(--line-strong);
}

.dynamics-matrix-table .metric-stock .metric-cell {
  color: var(--amber);
}

.dynamics-matrix-table .metric-finance .metric-cell {
  color: var(--green);
}

.dynamics-matrix-table .metric-ad .metric-cell {
  color: var(--blue);
}

#orders-count {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  color: var(--muted);
}

#unit-plan-count {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  color: var(--muted);
}

.orders-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.orders-legend-swatch {
  display: inline-block;
  width: 20px;
  height: 12px;
  border: 1px solid var(--line-strong);
}

.orders-legend-swatch.row-warning-swatch {
  background: #fff8e7;
}

.orders-legend-swatch.stock-days-swatch {
  background: #f58c80;
}

.orders-legend-swatch.order-plan-bad-swatch {
  background: #f58c80;
}

.orders-legend-swatch.order-plan-good-swatch {
  background: #8fd0a5;
}

.orders-legend-swatch.fbs-swatch {
  background: #1468b3;
}

.orders-legend-swatch.unit-plan-loss-swatch {
  background: #f58c80;
}

.orders-legend-swatch.unit-plan-warning-swatch {
  background: #fff8e7;
}

.unit-plan-data-table {
  min-width: 2080px;
}

.unit-plan-data-table td:nth-child(2) {
  min-width: 260px;
  max-width: 360px;
}

.unit-plan-select {
  width: 160px;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 5px 8px;
  font: inherit;
}

.unit-plan-select:disabled {
  opacity: 0.65;
}

.unit-plan-group-row th {
  top: 35px;
  z-index: 3;
  background: #ded8ca;
  color: var(--ink);
  font-size: 14px;
}

.unit-plan-group-row span {
  margin-right: 8px;
}

.unit-plan-group-row small {
  color: var(--muted);
}

.unit-plan-row-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 7px;
}

.unit-plan-row-tools .icon-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.unit-plan-group-select {
  max-width: 150px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.orders-row-tools {
  margin-top: 6px;
}

.orders-row-tools .icon-button {
  color: var(--accent);
}

.orders-group-select {
  max-width: 132px;
}

.orders-group-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(31, 41, 51, 0.34);
  padding: 22px;
}

.modal-panel {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.modal-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.unit-plan-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.unit-plan-product-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.unit-plan-product-form input,
.unit-plan-product-form select,
.unit-plan-product-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.unit-plan-product-form input:focus,
.unit-plan-product-form select:focus,
.unit-plan-product-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.unit-plan-form-wide {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.orders-data-table th:first-child,
.orders-data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}

.orders-data-table th:first-child {
  z-index: 3;
  background: #ece8df;
}

.orders-resizable-table {
  table-layout: fixed;
}

.orders-resizable-table th {
  position: relative;
  user-select: none;
}

.orders-column-resizer {
  right: -4px;
}

.orders-column-resizing,
.orders-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.orders-data-table .orders-percent-column {
  width: 118px;
  min-width: 118px;
  max-width: 118px;
}

.orders-data-table.orders-resizable-table .orders-percent-column {
  width: auto;
  min-width: 0;
  max-width: none;
}

.orders-data-table th.orders-percent-column {
  white-space: normal;
}

.orders-data-table .orders-group-row td,
.orders-data-table .orders-group-row td:first-child {
  position: static;
  background: #e8e2d7;
  color: var(--text);
  font-weight: 800;
  box-shadow: inset 0 -1px 0 rgba(35, 31, 27, 0.08);
}

.orders-group-row span:first-child {
  display: inline-block;
  margin-right: 10px;
}

.orders-group-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.orders-data-table .orders-archived-product-row td {
  color: #667085;
}

.dynamics-matrix-table td.metric-cell:first-child,
.dynamics-matrix-table .metric-cell {
  position: sticky;
  left: 190px;
  z-index: 2;
  width: 230px;
  min-width: 230px;
  background: var(--surface);
}

.dynamics-matrix-table th.metric-column {
  position: sticky;
  left: 190px;
  z-index: 4;
  width: 230px;
  min-width: 230px;
  background: #ece8df;
}

.dynamics-matrix-table td.product-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 190px;
  min-width: 190px;
  background: var(--surface-soft);
}

.dynamics-matrix-table th:first-child {
  z-index: 5;
}

.orders-data-table .row-warning td {
  background: #fff8e7;
}

.orders-data-table .row-soft-warning td {
  background: #fff8e7;
}

.orders-data-table .row-danger td {
  background: #fff5f5;
}

.orders-data-table .row-warning td:first-child {
  background: #fff8e7;
}

.orders-data-table .row-soft-warning td:first-child {
  background: #fff8e7;
}

.orders-data-table .row-danger td:first-child {
  background: #fff5f5;
}

.orders-data-table td.cell-danger,
.orders-data-table .row-warning td.cell-danger,
.orders-data-table .row-soft-warning td.cell-danger,
.orders-data-table .row-danger td.cell-danger {
  background: #f58c80 !important;
  color: #3b1111;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(96, 25, 17, 0.18);
}

.orders-data-table td.cell-success,
.orders-data-table .row-warning td.cell-success {
  background: #8fd0a5 !important;
  color: #113b22;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(23, 84, 43, 0.18);
}

.rnp-wb-table .metric-cell {
  white-space: normal;
}

.rnp-wb-table .metric-detail {
  display: block;
  max-width: 320px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.rnp-wb-table .kind-section .metric-cell,
.rnp-wb-table .kind-ad .metric-cell {
  color: #2f6f9f;
  font-weight: 900;
}

.rnp-wb-table .kind-competitor .metric-cell {
  color: #7b5b19;
  font-weight: 800;
}

.rnp-wb-table .kind-region .metric-cell {
  color: #2f6f50;
  font-weight: 800;
}

.rnp-wb-table .date-column {
  min-width: 86px;
}

.inventory-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-top: 12px;
}

.inventory-tabs {
  margin-top: 14px;
}

.inventory-operation-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.inventory-operation-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.inventory-operation-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.inventory-operation-form {
  display: grid;
  gap: 16px;
}

.inventory-operation-grid {
  display: grid;
  grid-template-columns: 180px 170px 170px minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
}

.supplier-order-grid {
  grid-template-columns:
    minmax(170px, 0.9fr)
    160px
    190px
    170px
    minmax(180px, 0.8fr)
    minmax(260px, 1.2fr);
}

.product-form-grid {
  grid-template-columns:
    minmax(180px, 0.9fr)
    minmax(180px, 0.9fr)
    minmax(160px, 0.7fr)
    150px
    minmax(260px, 1.4fr)
    minmax(160px, 0.8fr)
    minmax(160px, 0.8fr);
}

.product-name-field {
  grid-column: span 3;
}

.product-photo-field {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 84px auto;
  gap: 10px;
  align-items: end;
}

.product-photo-field input[type="file"] {
  padding: 8px 10px;
}

.product-photo-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.product-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-components-field {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.product-component-line {
  grid-template-columns: 38px minmax(360px, 1fr) 170px 42px;
}

.checkbox-field {
  align-self: stretch;
}

.inline-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--ink) !important;
}

.inline-checkbox input {
  width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
}

.inventory-note-field {
  grid-column: span 2;
}

.form-hint {
  color: var(--muted);
  font-size: 13px;
}

.inventory-operation-form label,
.inventory-line label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.inventory-operation-form input,
.inventory-operation-form select,
.inventory-line input,
.inventory-line select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-size: 15px;
}

.inventory-operation-form input:focus,
.inventory-operation-form select:focus,
.inventory-line input:focus,
.inventory-line select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.inventory-operation-form small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.inventory-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #9fc3dd;
  border-radius: 8px;
  background: #eaf3f9;
  padding: 14px 16px;
}

.inventory-next-step[hidden] {
  display: none;
}

.inventory-next-step > div {
  display: grid;
  gap: 4px;
}

.inventory-next-step strong {
  color: var(--ink);
  font-size: 16px;
}

.inventory-next-step span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.inventory-lines-head,
.inventory-operation-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.shipment-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inventory-lines-head h3 {
  margin: 0;
  font-size: 16px;
}

.inventory-lines-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.inventory-line-quantity > span {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.inventory-line-limit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.inventory-lines {
  display: grid;
  gap: 8px;
}

.inventory-line {
  display: grid;
  grid-template-columns: 38px minmax(340px, 1fr) 160px 42px;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.supplier-order-line {
  grid-template-columns: 38px minmax(300px, 1.4fr) 110px 120px 90px 110px minmax(150px, 0.8fr) minmax(200px, 0.9fr) 42px;
}

.supplier-line-cost-total {
  display: grid;
  align-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.inventory-line-number {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: #ece8df;
  color: var(--muted);
  font-weight: 800;
}

.inventory-line-remove {
  width: 42px;
  min-width: 42px;
  height: 44px;
  min-height: 44px;
  font-size: 22px;
  line-height: 1;
}

.product-picker {
  position: relative;
  min-width: 0;
}

.product-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  width: min(760px, calc(100vw - 360px));
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 6px;
}

.product-picker-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.product-picker-option:hover,
.product-picker-option.selected {
  border-color: #21577e;
  background: #e7f1f8;
}

.product-picker-option strong {
  display: inline-block;
  max-width: min(280px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.product-picker-main > span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.product-thumb {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ea;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-picker-thumb {
  width: 44px;
  height: 44px;
}

.product-table-thumb {
  width: 48px;
  height: 48px;
}

.product-thumb-empty {
  border-style: dashed;
}

.product-picker-size {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  border-radius: 999px;
  background: #f2eee5;
  color: #6c5a42;
  padding: 2px 7px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}

.product-picker-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.product-picker-empty {
  padding: 12px;
  color: var(--muted);
}

.inventory-operation-actions {
  justify-content: flex-end;
}

.supplier-receive-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.2fr) 150px 150px auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.supplier-estimate-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  padding: 14px;
}

.supplier-estimate-head h3 {
  margin: 0;
  font-size: 16px;
}

.supplier-estimate-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.supplier-estimate-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.supplier-estimate-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.supplier-estimate-grid input,
.supplier-estimate-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-size: 15px;
}

.supplier-estimate-grid input:focus,
.supplier-estimate-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.supplier-expense-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.supplier-expense-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.supplier-expense-head h3 {
  margin: 0;
  font-size: 16px;
}

.supplier-expense-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.supplier-expense-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

.supplier-expense-grid label:first-child,
.supplier-expense-grid label:nth-child(4) {
  grid-column: span 2;
}

.supplier-expense-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.supplier-expense-grid input,
.supplier-expense-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-size: 15px;
}

.supplier-expense-grid input:focus,
.supplier-expense-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.supplier-cost-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
}

.supplier-cost-summary-empty,
.supplier-cost-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.supplier-cost-summary-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.supplier-cost-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
}

.supplier-cost-card span {
  color: var(--muted);
  font-size: 13px;
}

.supplier-cost-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.supplier-cost-card small {
  color: var(--muted);
  font-size: 12px;
}

.supplier-cost-card.warning {
  border-color: #e3a05c;
  background: #fff8ec;
}

.supplier-expense-note {
  grid-column: span 3;
}

.supplier-expense-list {
  overflow: auto;
}

.supplier-expense-table {
  width: 100%;
  min-width: 1080px;
}

.supplier-expense-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px;
}

.supplier-receive-panel h3 {
  margin: 0;
  font-size: 16px;
}

.supplier-receive-panel span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.supplier-receive-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.supplier-receive-panel input,
.supplier-receive-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-size: 15px;
}

.supplier-receive-panel input:focus,
.supplier-receive-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.supplier-receive-lines {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.supplier-receive-header,
.supplier-receive-line {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 110px 110px 130px 130px;
  gap: 10px;
  align-items: center;
}

.supplier-receive-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.supplier-receive-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.supplier-receive-product {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.supplier-receive-product strong,
.supplier-receive-product span,
.supplier-receive-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-receive-product span {
  margin-top: 0;
  color: var(--ink);
  font-size: 13px;
}

.supplier-receive-product small,
.supplier-receive-empty {
  color: var(--muted);
}

.supplier-receive-number {
  color: var(--ink);
  font-weight: 800;
}

.wb-accept-header,
.wb-accept-line {
  grid-template-columns: minmax(320px, 1fr) 90px 90px 110px 90px 130px 130px;
}

.inventory-wb-shipment-table th:first-child,
.inventory-wb-shipment-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 300px;
  max-width: 360px;
  background: var(--surface-soft);
}

.inventory-wb-shipment-table th:first-child {
  z-index: 5;
  background: #ece8df;
}

.inventory-wb-shipment-table th:nth-child(6),
.inventory-wb-shipment-table td:nth-child(6) {
  min-width: 220px;
}

.inventory-wb-shipment-table th:nth-child(7),
.inventory-wb-shipment-table td:nth-child(7) {
  min-width: 300px;
  max-width: 420px;
}

.inventory-wb-shipment-table td:first-child,
.inventory-wb-shipment-table td:nth-child(7) {
  white-space: normal;
}

.inventory-marketplace-shipment-table th:first-child,
.inventory-marketplace-shipment-table td:first-child {
  min-width: 280px;
  max-width: 380px;
  white-space: normal;
}

.inventory-marketplace-shipment-table th:nth-child(6),
.inventory-marketplace-shipment-table td:nth-child(6) {
  min-width: 360px;
  white-space: normal;
}

.shipment-items-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.shipment-item-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  max-width: 260px;
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 5px 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}

.shipment-item-chip small {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 2px 5px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.shipment-item-available {
  background: #e7f4e9;
  color: #217343;
}

.shipment-item-unavailable {
  background: #fae7e3;
  color: #a33b2d;
}

.shipment-item-error {
  background: #fbf1d8;
  color: #8a5e1d;
}

.shipment-item-chip strong,
.shipment-item-chip em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipment-item-chip em {
  color: var(--muted);
  font-style: normal;
}

.shipment-details-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.shipment-details-link:hover {
  border-color: var(--blue);
  background: #eef6fb;
}

.shipment-actions {
  flex-wrap: wrap;
}

.shipment-details-drawer {
  position: fixed;
  inset: 0;
  z-index: 32;
}

.shipment-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 51, 0.34);
}

.shipment-details-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(820px, 100%);
  height: 100%;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shipment-details-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.shipment-details-head span,
.shipment-details-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.shipment-details-head h2 {
  margin: 4px 0 5px;
  font-size: 22px;
  line-height: 1.2;
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.shipment-details-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
}

.shipment-details-summary span {
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.shipment-details-summary strong {
  color: var(--ink);
}

.shipment-details-summary .shipment-details-problems {
  background: #fae7e3;
  color: #a33b2d;
}

.shipment-details-search {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
}

.shipment-details-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
}

.shipment-details-body {
  overflow: auto;
  padding: 0 18px 18px;
}

.shipment-details-table {
  min-width: 760px;
}

.shipment-details-table th:nth-child(1) {
  width: 190px;
}

.shipment-details-table th:nth-child(3),
.shipment-details-table th:nth-child(4) {
  width: 110px;
}

.shipment-details-table th:nth-child(5) {
  width: 180px;
}

.assembly-groups {
  display: grid;
  gap: 14px;
  padding: 12px;
}

.assembly-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.assembly-group-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f5f1e8;
  padding: 12px 14px;
}

.assembly-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.assembly-group-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.assembly-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.assembly-group-total {
  min-width: 100px;
  text-align: right;
}

.assembly-group-total strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.supplier-order-group-head {
  display: grid;
  gap: 10px;
}

.supplier-order-head-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.supplier-order-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.supplier-order-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 8px;
}

.supplier-order-summary-card {
  border: 1px solid rgba(34, 48, 62, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
  padding: 7px 9px;
}

.supplier-order-summary-card span {
  display: block;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.supplier-order-summary-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}

.assembly-group-total.warning strong {
  color: #b45309;
}

.assembly-group-total.success strong {
  color: var(--ok);
}

.supplier-order-summary-card.warning strong {
  color: #b45309;
}

.supplier-order-summary-card.success strong {
  color: var(--ok);
}

.assembly-group-table {
  overflow: auto;
}

.inventory-assembly-table {
  width: 100%;
}

.inventory-assembly-table th:nth-child(2),
.inventory-assembly-table td:nth-child(2) {
  min-width: 320px;
  white-space: normal;
}

.inventory-transit-table th:nth-child(2),
.inventory-transit-table td:nth-child(2) {
  min-width: 320px;
  white-space: normal;
}

.inventory-transit-table th:nth-child(8),
.inventory-transit-table td:nth-child(8) {
  color: var(--muted);
  font-size: 12px;
}

.transit-group-partial {
  border-color: #e3c36f;
}

.transit-group-partial .assembly-group-head {
  background: #fff6dd;
}

.transit-group-discrepancy {
  border-color: #d89292;
}

.transit-group-discrepancy .assembly-group-head {
  background: #fff0f0;
}

.transit-group-overaccepted {
  border-color: #8fc9a8;
}

.transit-group-overaccepted .assembly-group-head {
  background: #eef9f1;
}

.transit-group-review {
  border-color: #d89292;
}

.transit-group-review .assembly-group-head {
  background: #fff0f0;
}

.orders-data-table .inventory-row-partial td,
.orders-data-table .inventory-row-partial td:first-child {
  background: #fff8e6 !important;
}

.orders-data-table .inventory-row-discrepancy td,
.orders-data-table .inventory-row-discrepancy td:first-child {
  background: #fff1f1 !important;
}

.orders-data-table .inventory-row-overaccepted td,
.orders-data-table .inventory-row-overaccepted td:first-child {
  background: #f0fbf4 !important;
}

.inventory-warning-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0 8px;
  border-radius: 999px;
  background: #f7e6b5;
  color: #76561c;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.inventory-warning-badge.danger {
  background: #f6d4d4;
  color: #9b2634;
}

.inventory-warning-badge.success {
  background: #d9f3e3;
  color: #1d6b45;
}

.wb-misplacement-panel {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
  padding: 12px 14px;
}

.wb-misplacement-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wb-misplacement-summary strong {
  color: var(--ink);
  font-size: 14px;
}

.wb-misplacement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wb-misplacement-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.wb-misplacement-list h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.wb-misplacement-list ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-misplacement-list li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.wb-misplacement-list li span {
  display: grid;
  gap: 2px;
}

.wb-misplacement-list li small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.wb-acceptance-event-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wb-misplacement-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.supplier-order-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.state-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.state-action-quantity {
  width: 120px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 6px 9px;
  font-size: 13px;
}

.state-action-quantity:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
  outline: none;
}

.table-action-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-action {
  border-color: #e2b5b5;
  color: #9f2f2f;
}

.inventory-operation-form .primary-button {
  min-width: 180px;
  min-height: 46px;
  font-size: 16px;
  font-weight: 800;
}

.inventory-tabs .sheet-tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.08);
  color: var(--muted);
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 800;
}

.sheet-tab.active .tab-count {
  background: rgba(23, 65, 95, 0.12);
  color: #17415f;
}

.inventory-data-table td {
  height: auto;
  min-height: 42px;
}

.inventory-data-table th,
.inventory-data-table td {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.32;
}

.inventory-data-table td.numeric {
  white-space: nowrap;
}

.inventory-data-table .article-cell {
  display: grid;
  gap: 3px;
  align-items: start;
}

.inventory-data-table .article-cell strong,
.inventory-data-table .muted-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.journal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
}

.journal-controls label {
  display: grid;
  gap: 5px;
  min-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.journal-controls select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 14px;
}

.journal-controls select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
  outline: none;
}

.inventory-journal-table th:nth-child(4),
.inventory-journal-table td:nth-child(4),
.inventory-journal-table th:nth-child(11),
.inventory-journal-table td:nth-child(11) {
  min-width: 260px;
}

.inventory-journal-table th:nth-child(10),
.inventory-journal-table td:nth-child(10) {
  color: var(--muted);
  font-size: 12px;
}

.inventory-balances-table th:first-child,
.inventory-balances-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  background: var(--surface-soft);
}

.inventory-balances-table th:first-child {
  z-index: 5;
  background: #ece8df;
}

.inventory-balances-table th:nth-child(2),
.inventory-balances-table td:nth-child(2) {
  position: sticky;
  left: 190px;
  z-index: 3;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  background: var(--surface);
}

.inventory-balances-table th:nth-child(2) {
  z-index: 5;
  background: #ece8df;
}

.inventory-products-table {
  table-layout: fixed;
}

.inventory-products-table .inventory-product-sticky-col {
  position: sticky;
  z-index: 4;
  background: var(--surface);
}

.inventory-products-table th.inventory-product-sticky-col {
  z-index: 8;
  background: #ece8df;
}

.inventory-products-table td.inventory-product-sticky-col:first-child {
  background: var(--surface-soft);
}

.inventory-products-table .inventory-archived-row .inventory-product-sticky-col {
  background: #f8f6f1;
}

.inventory-products-table th {
  user-select: none;
}

.inventory-product-column-resizer {
  right: -4px;
}

.marketplace-product-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.marketplace-product-link:hover {
  text-decoration: underline;
}

.inventory-column-resizing,
.inventory-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.inventory-archived-row td,
.inventory-archived-row td:first-child,
.inventory-archived-row td:nth-child(2) {
  background: #f8f6f1;
  color: #5f6b77;
}

.inventory-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.inventory-status-badge.active {
  background: #e5f4eb;
  color: #206842;
}

.inventory-status-badge.received {
  background: #e6f1fa;
  color: #21577e;
}

.inventory-status-badge.partial {
  background: #fff2cc;
  color: #7a4d00;
}

.inventory-status-badge.closed {
  background: #f2eee5;
  color: #76644b;
}

.inventory-status-badge.lost {
  background: #fae7e7;
  color: #9f2f2f;
}

.inventory-status-badge.neutral {
  background: #eef1f4;
  color: #526170;
}

.inventory-status-badge.archived {
  background: #f2eee5;
  color: #76644b;
}

.inventory-supplier-orders-table th:first-child,
.inventory-supplier-orders-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: var(--surface-soft);
}

.inventory-supplier-orders-table th:first-child {
  z-index: 5;
  background: #ece8df;
}

.inventory-supplier-orders-table th:nth-child(2),
.inventory-supplier-orders-table td:nth-child(2) {
  min-width: 320px;
  max-width: 480px;
  white-space: normal;
}

.inventory-supplier-orders-table th:nth-child(3),
.inventory-supplier-orders-table td:nth-child(3) {
  min-width: 120px;
  max-width: 180px;
}

.inventory-supplier-orders-table th:nth-child(4),
.inventory-supplier-orders-table td:nth-child(4) {
  min-width: 120px;
}

@media (max-width: 1380px) {
  .inventory-operation-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .inventory-note-field {
    grid-column: 1 / -1;
  }

  .inventory-line {
    grid-template-columns: 38px minmax(260px, 1fr) 140px 42px;
  }

  .supplier-order-line,
  .product-component-line,
  .supplier-receive-panel {
    grid-template-columns: 1fr;
  }

  .supplier-estimate-grid,
  .supplier-expense-grid,
  .supplier-cost-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-expense-grid label:first-child,
  .supplier-expense-grid label:nth-child(4),
  .supplier-expense-note {
    grid-column: 1 / -1;
  }

  .supplier-receive-header {
    display: none;
  }

  .supplier-receive-line {
    grid-template-columns: 1fr 1fr;
  }

  .wb-accept-header {
    display: none;
  }

  .wb-accept-line {
    grid-template-columns: 1fr 1fr;
  }

  .supplier-receive-product {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .inventory-operation-grid,
  .inventory-line,
  .supplier-estimate-grid,
  .supplier-expense-grid,
  .supplier-cost-summary {
    grid-template-columns: 1fr;
  }

  .inventory-note-field {
    grid-column: auto;
  }

  .inventory-line-number {
    display: none;
  }

  .inventory-lines-head,
  .inventory-operation-actions,
  .inventory-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .product-picker-menu {
    width: min(100%, calc(100vw - 48px));
  }

  .product-picker-option {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .product-picker-meta {
    grid-column: 2;
    text-align: left;
  }

  .product-photo-field {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-cell {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.schema-marker {
  flex: 0 0 auto;
  width: 16px;
  height: 14px;
  margin-top: 3px;
  border-radius: 2px;
}

.schema-marker.fbs {
  background: #1468b3;
}

.muted-cell {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.muted-cell.warning-text {
  color: #b45309;
  font-weight: 700;
}

.muted-cell.success-text {
  color: var(--ok);
  font-weight: 700;
}

.review-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.review-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.review-card.is-busy {
  opacity: 0.74;
}

.review-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.review-product {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.review-title-block {
  min-width: 0;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.review-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.review-chip.order-buyout {
  border-color: rgba(47, 133, 90, 0.22);
  background: #edf8f1;
  color: var(--green);
}

.review-chip.order-rejected {
  border-color: rgba(183, 121, 31, 0.28);
  background: #fff7e8;
  color: #8a5a17;
}

.review-chip.order-returned {
  border-color: rgba(184, 50, 79, 0.24);
  background: #fff0f3;
  color: var(--rose);
}

.review-chip.order-unknown {
  color: var(--muted);
}

.review-chip.issue-chip {
  background: #eef6fb;
  color: #21577e;
}

.review-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.rating-badge {
  display: grid;
  justify-items: center;
  min-width: 112px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 8px 10px;
}

.rating-badge strong {
  font-size: 28px;
  line-height: 1;
}

.rating-badge span {
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0;
}

.rating-good {
  border-color: rgba(47, 133, 90, 0.28);
  color: var(--green);
}

.rating-ok {
  border-color: rgba(183, 121, 31, 0.32);
  color: var(--amber);
}

.rating-bad {
  border-color: rgba(184, 50, 79, 0.32);
  color: var(--rose);
}

.review-status {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.review-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.review-text-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.review-text-block h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.review-text-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.review-field {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.review-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-empty-text {
  color: var(--muted);
}

.review-text-block textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  line-height: 1.45;
  outline: none;
}

.review-text-block textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.reply-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: center;
  border: 1px solid rgba(47, 111, 159, 0.18);
  border-radius: 8px;
  background: #eef6fb;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.reply-cost strong {
  color: var(--ink);
  font-size: 13px;
}

.reply-cost.muted {
  border-color: var(--line);
  background: var(--surface-soft);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.review-action-state {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}

.filter-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.settings-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
}

.settings-root {
  display: grid;
  gap: 16px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.settings-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.settings-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.settings-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.35fr);
  gap: 14px;
  padding: 18px;
}

.settings-grid label,
.settings-secret-row {
  display: grid;
  gap: 7px;
}

.settings-grid span,
.settings-secret-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-grid input,
.settings-grid select,
.settings-secret-row input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.settings-grid input:focus,
.settings-grid select:focus,
.settings-secret-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 159, 0.16);
}

.settings-secret-list {
  display: grid;
  gap: 0;
}

.settings-secret-row {
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 0.7fr) minmax(260px, 1fr);
  gap: 8px 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}

.settings-secret-row:last-child {
  border-bottom: 0;
}

.settings-secret-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
}

.settings-secret-meta strong {
  color: var(--green);
}

.settings-secret-meta strong.empty {
  color: var(--muted);
}

.settings-secret-meta em {
  font-style: normal;
}

.settings-secret-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-nav,
  .cabinet-menu {
    display: flex;
    overflow-x: auto;
  }

  .section-link,
  .cabinet-group {
    flex: 0 0 auto;
  }

  .cabinet-group {
    width: 240px;
  }

  .sidebar-status {
    display: none;
  }

  .workbook-list {
    display: flex;
    overflow-x: auto;
  }

  .workbook-button {
    width: 220px;
  }

  #logout-button {
    position: absolute;
    right: 16px;
    top: 22px;
  }

  .workspace {
    padding: 18px;
  }

  .metric-grid,
  .content-grid,
  .reviews-grid,
  .review-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar,
  .topbar-actions,
  .panel-head,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .content-grid,
  .reviews-grid,
  .review-columns {
    grid-template-columns: 1fr;
  }

  .review-card-head,
  .review-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .review-side {
    justify-items: start;
  }

  .review-actions {
    flex-direction: column;
  }

  .review-action-state {
    margin-right: 0;
  }

  .brand-block h1,
  .topbar h1 {
    font-size: 21px;
  }

  .metric-value {
    font-size: 22px;
  }

  .search-box {
    width: 100%;
  }

  .shipment-details-panel {
    width: 100%;
  }

  .shipment-details-head,
  .shipment-details-summary,
  .shipment-details-search {
    padding-left: 14px;
    padding-right: 14px;
  }

  .shipment-details-body {
    padding: 0 14px 14px;
  }
}
