:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
  color: #1b2938;
  background: #f4f7fa;
  font-synthesis: none;
  --navy: #142331;
  --cyan: #10a9cf;
  --green: #16a36a;
  --amber: #e8a319;
  --red: #e85c64;
  --line: #dfe7ed;
  --muted: #6f7f8f;
  --shadow: 0 8px 24px rgba(32, 60, 80, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(16, 169, 207, 0.26);
  outline-offset: 2px;
}
.app-shell {
  display: flex;
  height: 100vh;
  min-width: 1120px;
  background: #f4f7fa;
}
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--navy);
  color: #d9e2e8;
  display: flex;
  flex-direction: column;
  transition:
    width 0.2s,
    flex-basis 0.2s;
  box-shadow: 3px 0 20px #0e21301a;
  z-index: 20;
}
.sidebar.collapsed {
  width: 74px;
  flex-basis: 74px;
}
.brand {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #12b6d8, #2e7fd3);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  width: 100%;
  max-width: 212px;
  max-height: 52px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}
.brand b {
  display: block;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.2px;
}
.brand small {
  display: block;
  color: #91a5b5;
  font-size: 11px;
  margin-top: 1px;
}
.sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-width: thin;
}
.nav-caption {
  color: #617789;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  height: 28px;
  display: flex;
  align-items: end;
  padding: 0 12px 7px;
}
.nav-button {
  width: 100%;
  min-height: 40px;
  border: 0;
  color: #cad6de;
  background: transparent;
  border-radius: 7px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0;
  position: relative;
}
.nav-button:hover {
  background: #ffffff0e;
  color: #fff;
}
.nav-button.active {
  background: #0e94b8;
  color: #fff;
  box-shadow: 0 5px 14px #0891b438;
}
.nav-button span {
  flex: 1;
}
.nav-button em {
  font-style: normal;
  min-width: 21px;
  height: 19px;
  border-radius: 9px;
  background: #f8bd45;
  color: #49320a;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.collapsed .nav-button {
  justify-content: center;
  padding: 0;
}
.collapsed .nav-caption {
  height: 17px;
}
.collapse-button {
  min-height: 48px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #91a5b5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}
.collapse-button:hover {
  color: #fff;
  background: #ffffff0a;
}
.workspace {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: #f4f7fa;
}
.topbar {
  height: 70px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.organization,
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.organization b,
.profile-button b {
  display: block;
  font-size: 12px;
}
.organization small,
.profile-button small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.org-avatar,
.profile-button > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e6f8fc;
  color: #078caf;
  font-weight: 800;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sync-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e5eb;
  background: #f8fbfc;
  color: #5c6f7d;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 11px;
}
.sync-chip.connected {
  border-color: #bde7d4;
  background: #effaf5;
  color: #157b55;
}
.sync-chip.loading {
  color: #8a6b24;
  background: #fff9e8;
  border-color: #ecdca8;
}
.sync-chip.demo {
  color: #9a5c16;
  background: #fff5e8;
  border-color: #efd1aa;
}
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid #dce5ea;
  border-radius: 9px;
  background: #fff;
  color: #536879;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-button:hover {
  color: #078caf;
  border-color: #aadbe6;
}
.icon-button.small {
  width: 30px;
  height: 30px;
}
.notification-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #e85c64;
  border: 2px solid white;
  border-radius: 50%;
  right: 6px;
  top: 6px;
}
.profile-button {
  border: 0;
  background: transparent;
  color: #203242;
  padding: 3px 4px 3px 7px;
  text-align: left;
}
.page-heading {
  padding: 24px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.page-heading h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.page-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.global-search,
.wide-search,
.table-search {
  height: 39px;
  border: 1px solid #d8e4ea;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: #82919d;
}
.global-search {
  width: 300px;
}
.global-search input,
.wide-search input,
.table-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #243746;
  font-size: 12px;
}
.global-search:focus-within,
.wide-search:focus-within {
  border-color: #59bdd5;
  box-shadow: 0 0 0 3px #10a9cf14;
}
.page-content {
  padding: 0 28px 34px;
}
.page-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.runtime-notice {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid #b8dfe8;
  border-radius: 9px;
  background: #edf9fc;
  color: #176f84;
  font-size: 11px;
  font-weight: 650;
}
.runtime-notice.warning {
  border-color: #efd4aa;
  background: #fff8ec;
  color: #93601d;
}
.runtime-notice span {
  flex: 1;
}
.runtime-notice button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
}
.toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  box-shadow: 0 3px 12px #243f5309;
}
.toolbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.field-button,
.secondary-button,
.primary-button,
.text-button,
.configure-button,
.save-row {
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6e1e7;
  background: #fff;
  color: #385064;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.field-button {
  font-weight: 600;
  min-width: 185px;
  justify-content: flex-start;
}
.field-button svg:last-child {
  margin-left: auto;
}
.field-select {
  height: 38px;
  min-width: 185px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e1e7;
  border-radius: 8px;
  background: #fff;
  color: #385064;
  padding: 0 11px;
}
.field-select:hover,
.field-select:focus-within {
  border-color: #7fc9da;
  box-shadow: 0 0 0 3px #10a9cf12;
}
.field-select select {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 25px 0 0;
  border: 0;
  outline: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  color: #385064;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}
.field-select > svg {
  flex: 0 0 auto;
  pointer-events: none;
}
.field-select > svg:last-child {
  position: absolute;
  right: 10px;
}
.secondary-button:hover {
  border-color: #7fc9da;
  color: #078caf;
}
.secondary-button:disabled,
.save-row:disabled {
  cursor: wait;
  opacity: 0.58;
}
.primary-button {
  color: #fff;
  border-color: #0798bb;
  background: #0aa4c8;
}
.primary-button:hover {
  background: #078eae;
}
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.secondary-button.active-filter {
  border-color: #53bfd5;
  background: #e9f8fb;
  color: #078cae;
}
.text-button {
  height: auto;
  border: 0;
  color: #078eae;
  padding: 4px;
}
.text-button:hover {
  text-decoration: underline;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 16px;
  box-shadow: 0 4px 14px #1f40580a;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 11px;
}
.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  background: #e2f7fb;
  color: #0694b5;
}
.kpi-icon.green {
  background: #e5f7ef;
  color: #138f5e;
}
.kpi-icon.amber {
  background: #fff3dc;
  color: #d28b0a;
}
.kpi-icon.violet {
  background: #f1ebff;
  color: #7653ce;
}
.kpi-icon.blue {
  background: #e7f1ff;
  color: #3f79c8;
}
.kpi-label {
  font-size: 11px;
  color: var(--muted);
  align-self: end;
}
.kpi-card > strong {
  grid-column: 2;
  font-size: 21px;
  margin-top: 1px;
}
.kpi-detail {
  grid-column: 1 / span 2;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #edf2f5;
  color: #82909b;
  font-size: 10px;
}
.kpi-detail .up {
  color: #128e5d;
  font-weight: 800;
}
.kpi-detail .down {
  color: #dd555d;
  font-weight: 800;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.8fr);
  gap: 15px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-title {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 17px;
  border-bottom: 1px solid #e7edf1;
}
.panel-title h2 {
  margin: 0;
  font-size: 15px;
}
.panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.counter {
  min-width: 28px;
  height: 25px;
  border-radius: 13px;
  background: #fff0f1;
  color: #dc4d56;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.finance-rows {
  padding: 8px 17px 13px;
}
.finance-row {
  min-height: 41px;
  display: grid;
  grid-template-columns: 10px 1fr 120px 58px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef3f5;
  font-size: 11px;
}
.finance-row:last-child {
  border: 0;
}
.finance-row b {
  text-align: right;
}
.finance-row em {
  font-style: normal;
  color: #7b8995;
  text-align: right;
}
.finance-row.strong {
  background: #f2fbf7;
  margin: 7px -8px 0;
  padding: 0 8px;
  border-radius: 7px;
  border: 0;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-dot.cyan {
  background: #10a9cf;
}
.legend-dot.violet {
  background: #7653ce;
}
.legend-dot.amber {
  background: #e8a319;
}
.legend-dot.rose {
  background: #e85c64;
}
.legend-dot.green {
  background: #16a36a;
}
.attention-row {
  width: 100%;
  min-height: 66px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid #edf2f4;
  background: #fff;
  display: grid;
  grid-template-columns: 37px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.attention-row:hover {
  background: #f8fbfc;
}
.attention-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.attention-icon.red {
  background: #fff0f1;
  color: #df535b;
}
.attention-icon.amber {
  background: #fff5e3;
  color: #dc920c;
}
.attention-icon.blue {
  background: #e9f6fb;
  color: #078eb0;
}
.attention-row b,
.attention-row small {
  display: block;
}
.attention-row b {
  font-size: 11px;
}
.attention-row small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.attention-row em {
  font-size: 10px;
  font-style: normal;
  color: #078eb0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.filter-card {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.wide-search {
  flex: 1;
}
.status-tabs {
  display: flex;
  gap: 5px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.status-tabs button {
  border: 0;
  background: transparent;
  color: #667786;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}
.status-tabs button b {
  margin-left: 5px;
  color: #9aa6af;
}
.status-tabs button.active {
  background: #e9f7fb;
  color: #068baa;
}
.status-tabs button.active b {
  color: #068baa;
}
.table-panel {
  overflow-x: auto;
  overflow-y: visible;
}
.table-caption {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 14px;
  border-bottom: 1px solid #e5ecef;
  color: #6c7d8b;
  font-size: 11px;
}
.table-caption > span + span {
  margin-left: 22px;
}
.table-search {
  width: 280px;
  height: 34px;
}
.helper {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #16855b;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.data-table th {
  height: 40px;
  padding: 0 11px;
  background: #f7f9fb;
  border-bottom: 1px solid #dde6eb;
  color: #617382;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  height: 57px;
  padding: 8px 11px;
  border-bottom: 1px solid #e8eef2;
  color: #314758;
  font-size: 10px;
  vertical-align: middle;
}
.data-table .selection-column {
  width: 42px;
  min-width: 42px;
  padding-left: 13px;
  padding-right: 5px;
  text-align: center;
}
.selection-column input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0b9f73;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: #f8fbfc;
}
.orders-table tbody tr,
.unit-table tbody tr {
  cursor: pointer;
}
.data-table td > small,
.data-table td span > small {
  display: block;
  color: #84919b;
  font-size: 8px;
  margin-top: 3px;
}
.data-table code {
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  background: #f0f4f6;
  padding: 4px 6px;
  border-radius: 5px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 270px;
}
.product-cell b {
  display: block;
  font-size: 10px;
  max-width: 320px;
}
.product-thumb {
  width: 37px;
  height: 37px;
  border: 1px solid #d9e5ea;
  border-radius: 8px;
  background: #eef7fa;
  color: #1594b3;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.product-thumb.large {
  width: 52px;
  height: 52px;
  border-radius: 11px;
}
.product-thumb-image {
  display: block;
  object-fit: cover;
  background: #fff;
}
.card-state-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
}
.table-edit-button {
  border: 0;
  background: transparent;
  color: #078eae;
  font-size: 9px;
  font-weight: 800;
  padding: 6px;
  border-radius: 6px;
}
.table-edit-button:hover {
  background: #e8f7fb;
}
.empty-state {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7b8b97;
}
.empty-state b,
.empty-state small {
  display: block;
}
.empty-state b {
  color: #425866;
  font-size: 11px;
}
.empty-state small {
  margin-top: 3px;
  font-size: 9px;
}
.stock {
  font-weight: 700;
}
.stock.low {
  color: #d48809;
}
.stock.zero {
  color: #dc535c;
}
.margin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 49px;
  height: 24px;
  border-radius: 12px;
  background: #e8f7f0;
  color: #108559;
  font-weight: 800;
}
.margin.low {
  background: #fff0f1;
  color: #d64a53;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 700;
}
.status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status.success {
  color: #16865d;
}
.status.success > span {
  background: #19a66d;
}
.status.warning {
  color: #b9770b;
}
.status.warning > span {
  background: #e6a01c;
}
.status.danger {
  color: #ce4a53;
}
.status.danger > span {
  background: #e85c64;
}
.marketplace {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 700;
}
.marketplace i {
  width: 27px;
  height: 25px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 8px;
  color: #fff;
}
.mp-oz i {
  background: #2974e6;
}
.mp-wb i {
  background: #8b39cf;
}
.mp-ym i {
  background: #f0b21a;
  color: #302600;
}
.mp-lm i {
  background: #20252a;
}
.truncate {
  display: block;
  max-width: 300px;
}
.truncate b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.type-badge {
  padding: 4px 7px;
  background: #edf4f8;
  border-radius: 5px;
  font-weight: 800;
  color: #5c7282;
}
.profit,
.positive {
  color: #11865a;
  font-weight: 800;
}
.loss,
.negative {
  color: #da4f58 !important;
}
.unit-table th,
.unit-table td {
  padding-left: 8px;
  padding-right: 8px;
}
.unit-table {
  min-width: 1100px;
}
.price-input {
  width: 94px;
  height: 31px;
  border: 1px solid #ccdbe3;
  border-radius: 6px;
  padding: 0 8px;
}
.save-row {
  height: 30px;
  color: #078eae;
  border-color: #9fd5e0;
}
.warehouse-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 252px;
}
.warehouse-action {
  min-height: 30px;
  border: 1px solid #9fd5e0;
  border-radius: 7px;
  background: #fff;
  color: #078eae;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.warehouse-action:hover {
  border-color: #54b6ca;
  background: #f0fbfd;
}
.warehouse-action.zero {
  border-color: #e7bd69;
  color: #9a6500;
  background: #fffaf0;
}
.warehouse-action.zero:hover {
  border-color: #d89b26;
  background: #fff4d9;
}
.warehouse-action.delete {
  border-color: #efb3b7;
  color: #c43f48;
  background: #fff7f7;
}
.warehouse-action.delete:hover {
  border-color: #df737b;
  background: #fff0f1;
}
.warehouse-action:disabled {
  cursor: wait;
  opacity: 0.55;
}
.pnl {
  max-width: 920px;
}
.verified {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #16865d;
  font-size: 10px;
  font-weight: 700;
}
.pnl-row {
  display: grid;
  grid-template-columns: 1fr 160px 80px;
  align-items: center;
  min-height: 45px;
  padding: 0 18px;
  border-bottom: 1px solid #e8eef1;
  font-size: 11px;
}
.pnl-row b,
.pnl-row em {
  text-align: right;
}
.pnl-row em {
  font-style: normal;
  color: #7a8995;
}
.pnl-row.total {
  background: #effaf5;
  font-size: 12px;
  border-bottom: 0;
}
.operation-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
}
.operation-hero h2 {
  font-size: 15px;
  margin: 0;
}
.operation-hero p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.operation-icon {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: #e4f6fb;
  color: #078eae;
  display: grid;
  place-items: center;
}
.integration-banner {
  min-height: 68px;
  padding: 13px 17px;
  background: linear-gradient(100deg, #173248, #1d5368);
  color: #fff;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.integration-banner > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.integration-banner b,
.integration-banner small {
  display: block;
}
.integration-banner b {
  font-size: 13px;
}
.integration-banner small {
  color: #b8d4de;
  font-size: 9px;
  margin-top: 3px;
}
.secure {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffffff17;
  font-size: 9px;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.integration-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  box-shadow: 0 4px 14px #1f40580a;
}
.integration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.integration-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 11px;
}
.integration-logo.blue {
  background: #2875e6;
}
.integration-logo.violet {
  background: #8a37ce;
}
.integration-logo.amber {
  background: #f4bc2a;
  color: #362a00;
}
.integration-logo.black {
  background: #252b30;
}
.integration-logo.green {
  background: #0b8f5a;
}
.integration-card h2 {
  font-size: 15px;
  margin: 13px 0 5px;
}
.integration-card p {
  min-height: 31px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.integration-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0;
  font-size: 9px;
  color: #8c98a2;
}
.integration-state span {
  width: 7px;
  height: 7px;
  background: #aeb9c1;
  border-radius: 50%;
}
.integration-state.enabled {
  color: #16865d;
}
.integration-state.enabled span {
  background: #1bb072;
  box-shadow: 0 0 0 4px #e5f7ef;
}
.configure-button {
  width: 100%;
  height: 35px;
}
.integration-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.integration-actions > :only-child {
  grid-column: 1 / -1;
}
.configure-button.sync-now {
  color: #087f9b;
  border-color: #a6dce7;
}
.switch {
  width: 39px;
  height: 22px;
  border: 0;
  border-radius: 12px;
  background: #d4dde2;
  padding: 3px;
  display: flex;
  align-items: center;
  transition: 0.2s;
}
.switch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0003;
  transition: 0.2s;
}
.switch.on {
  background: #18a76d;
}
.switch.on span {
  transform: translate(17px);
}
.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 780px);
  gap: 14px;
}
.settings-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  height: max-content;
}
.settings-nav button {
  width: 100%;
  height: 39px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: #5f7180;
  text-align: left;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 700;
}
.settings-nav button.active {
  background: #e8f7fb;
  color: #068bab;
}
.setting-row {
  min-height: 66px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e9eff2;
}
.setting-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf5f8;
  color: #4f7586;
  display: grid;
  place-items: center;
}
.setting-row b,
.setting-row small {
  display: block;
}
.setting-row b {
  font-size: 11px;
}
.setting-row small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.settings-footer {
  padding: 14px 16px;
  display: flex;
  justify-content: flex-end;
}
.settings-storage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9a6a12;
  background: #fff7e4;
  border: 1px solid #f1ddb4;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 8px;
  font-weight: 800;
}
.settings-storage.ready {
  color: #147a53;
  background: #eaf8f1;
  border-color: #bfe6d3;
}
.setting-control {
  min-width: 112px;
  height: 35px;
  border: 1px solid #ccdbe3;
  border-radius: 7px;
  background: #fff;
  color: #405768;
  padding: 0 9px;
  font-size: 10px;
}
.setting-number {
  height: 35px;
  display: flex;
  align-items: center;
  border: 1px solid #ccdbe3;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.setting-number input {
  width: 70px;
  height: 100%;
  border: 0;
  padding: 0 8px;
  color: #405768;
}
.setting-number span {
  padding-right: 8px;
  color: #80909a;
  font-size: 9px;
}
.compact-tables .data-table th {
  height: 34px;
}
.compact-tables .data-table td {
  height: 45px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #08141e73;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal {
  width: min(520px, calc(100vw - 48px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px #0000003d;
  overflow: hidden;
}
.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.modal-header h2 {
  margin: 0;
  font-size: 16px;
}
.modal-header p {
  margin: 3px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.modal-body {
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.modal-body > label span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}
.modal-body label em {
  font-style: normal;
  color: #83919c;
  font-weight: 500;
}
.modal-body label input {
  width: 100%;
  height: 38px;
  border: 1px solid #d5e1e7;
  border-radius: 7px;
  padding: 0 10px;
  color: #405768;
}
.modal-body label small {
  display: block;
  color: #86949e;
  font-size: 8px;
  margin-top: 5px;
}
.hidden-file-input {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.form-field {
  display: block;
  min-width: 0;
}
.form-field.wide {
  grid-column: 1 / -1;
}
.form-field > span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 6px;
}
.form-field input,
.form-field select {
  width: 100%;
  height: 38px;
  border: 1px solid #d5e1e7;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: #405768;
}
.form-field input:focus,
.form-field select:focus {
  border-color: #59bdd5;
  outline: 3px solid rgba(16, 169, 207, 0.1);
}
.field-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #edf8fb;
  color: #176f84;
  font-size: 9px;
  line-height: 1.45;
}
.field-hint svg {
  flex: 0 0 auto;
}
.modal-message {
  padding: 9px 10px;
  border-radius: 7px;
  background: #eaf8f1;
  color: #147b53;
  font-size: 9px;
  font-weight: 700;
}
.modal-message.error {
  background: #fff0f1;
  color: #c84750;
}
.sync-options {
  padding-top: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sync-options > b {
  grid-column: 1/-1;
  font-size: 10px;
}
.sync-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.modal-footer {
  padding: 12px 18px;
  background: #f7f9fb;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-footer button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.product-editor {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: #f3f6f8;
  color: #2d4352;
}
.product-editor-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-editor-header {
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  grid-template-columns: 185px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 26px;
  background: #fff;
  border-bottom: 1px solid #dce5ea;
  box-shadow: 0 2px 9px #1d34450d;
}
.editor-back {
  height: 36px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #526b7b;
  font-size: 10px;
  font-weight: 800;
  padding: 0 8px;
  border-radius: 7px;
}
.editor-back:hover {
  background: #edf5f8;
  color: #087f9b;
}
.product-editor-header h1 {
  margin: 2px 0 1px;
  font-size: 17px;
  line-height: 1.2;
  max-width: 560px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-editor-header p {
  margin: 0;
  color: #8796a0;
  font:
    9px SFMono-Regular,
    Consolas,
    monospace;
}
.editor-kicker {
  color: #078eae;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.85px;
}
.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.editor-readiness {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #a26b0a;
  background: #fff7e6;
  border: 1px solid #f5deb1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 8px;
}
.editor-readiness b {
  font-size: 11px;
}
.editor-readiness.complete {
  color: #137a54;
  background: #eaf8f1;
  border-color: #bde7d3;
}
.product-editor-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 190px minmax(570px, 920px) 275px;
  justify-content: center;
  gap: 18px;
  padding: 18px 22px 0;
  overflow: hidden;
}
.card-section-nav {
  align-self: start;
  background: #fff;
  border: 1px solid #dfe7ec;
  border-radius: 11px;
  padding: 7px;
  box-shadow: 0 4px 14px #1f40580a;
}
.card-section-nav button {
  width: 100%;
  height: 43px;
  border: 0;
  background: transparent;
  color: #5d7180;
  border-radius: 8px;
  padding: 0 9px;
  display: grid;
  grid-template-columns: 22px 1fr 15px;
  align-items: center;
  text-align: left;
  font-size: 10px;
  font-weight: 750;
}
.card-section-nav button:hover {
  color: #078eae;
  background: #e9f7fa;
}
.card-section-nav button svg:last-child {
  opacity: 0.45;
}
.card-editor-content {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 0 2px 28px;
  scroll-behavior: smooth;
}
.card-editor-section {
  scroll-margin-top: 12px;
  background: #fff;
  border: 1px solid #dfe7ec;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px #1f405809;
}
.card-editor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.card-editor-title > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.card-editor-title > div > span {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e6f6fa;
  color: #078eae;
  font-size: 10px;
  font-weight: 900;
}
.card-editor-title h2 {
  margin: 0;
  font-size: 14px;
}
.card-editor-title p {
  margin: 3px 0 0;
  color: #7e8f9a;
  font-size: 9px;
}
.card-editor-title em {
  color: #8897a1;
  font-size: 9px;
  font-style: normal;
}
.photo-dropzone {
  width: 100%;
  min-height: 105px;
  border: 1.5px dashed #9dcfda;
  border-radius: 10px;
  background: #f4fbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2d6473;
}
.photo-dropzone:hover {
  border-color: #0a9cbe;
  background: #eef9fb;
}
.photo-dropzone:disabled {
  opacity: 0.6;
  cursor: wait;
}
.photo-dropzone > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #0792b3;
  background: #daf1f6;
  border-radius: 10px;
  margin-bottom: 7px;
}
.photo-dropzone b {
  font-size: 10px;
}
.photo-dropzone small {
  margin-top: 4px;
  color: #81929d;
  font-size: 8px;
}
.frame-tool-panel {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #cfe1d5;
  border-radius: 10px;
  background: #f7fbf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.frame-tool-panel > div:first-child {
  min-width: 0;
}
.frame-tool-panel b,
.frame-tool-panel small {
  display: block;
}
.frame-tool-panel b {
  color: #23513a;
  font-size: 10px;
}
.frame-tool-panel small {
  margin-top: 3px;
  color: #6f8176;
  font-size: 8px;
  line-height: 1.45;
}
.frame-tool-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.frame-apply-button,
.batch-frame-apply {
  border-color: #92c8a4;
  color: #167046;
}
.frame-restore-button,
.batch-frame-restore {
  border-color: #e0b46c;
  color: #93610d;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.photo-card {
  position: relative;
  aspect-ratio: 1/1.18;
  min-width: 0;
  border: 1px solid #dbe5ea;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7f8;
  cursor: grab;
}
.photo-card.main {
  border: 2px solid #169ebd;
  box-shadow: 0 0 0 3px #e2f5f9;
}
.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
}
.photo-position,
.photo-main-badge {
  position: absolute;
  top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 21px;
  padding: 0 6px;
  border-radius: 6px;
  color: #fff;
  background: #192a36c7;
  font-size: 7px;
  font-weight: 800;
}
.photo-position {
  left: 6px;
}
.photo-main-badge {
  right: 6px;
  background: #128cac;
}
.photo-frame-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #fff;
  background: #16865dde;
  font-size: 7px;
  font-weight: 850;
}
.photo-card:hover .photo-frame-badge,
.photo-card:focus-within .photo-frame-badge {
  opacity: 0;
}
.photo-card.remote {
  border-color: #9ed7e3;
  background: #eef9fb;
  cursor: default;
}
.photo-api-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  background: #103240db;
  color: #fff;
  font-size: 7px;
  font-weight: 850;
}
.photo-actions {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 7px;
  background: #182a36d1;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.15s;
}
.photo-card:hover .photo-actions,
.photo-card:focus-within .photo-actions {
  opacity: 1;
  transform: translateY(0);
}
.photo-actions button {
  width: 27px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #fffffff0;
  color: #385463;
}
.photo-actions button:disabled {
  opacity: 0.35;
}
.photo-actions button.danger {
  color: #cc4550;
}
.editor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.marketplace-routing {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid #e3ebef;
}
.marketplace-routing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.marketplace-routing-head > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #13788f;
}
.marketplace-routing-head b,
.marketplace-routing-head small {
  display: block;
}
.marketplace-routing-head b {
  color: #36515f;
  font-size: 10px;
}
.marketplace-routing-head small {
  max-width: 470px;
  margin-top: 3px;
  color: #7d8f99;
  font-size: 8px;
  line-height: 1.4;
}
.marketplace-routing-head > div:last-child {
  display: flex;
  gap: 5px;
}
.marketplace-routing-head > div:last-child button {
  height: 29px;
  border: 1px solid #cbdce3;
  border-radius: 6px;
  background: #fff;
  color: #58707e;
  padding: 0 9px;
  font-size: 8px;
  font-weight: 800;
}
.marketplace-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}
.marketplace-route-grid article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce6ea;
  border-radius: 9px;
  background: #fafcfd;
}
.marketplace-route-grid article.targeted {
  border-color: #9edbc2;
  background: #effaf5;
}
.marketplace-route-grid article.excluded {
  border-color: #efc5c8;
  background: #fff5f6;
}
.marketplace-route-grid article > div:nth-child(2) b,
.marketplace-route-grid article > div:nth-child(2) small {
  display: block;
}
.marketplace-route-grid article > div:nth-child(2) b {
  font-size: 9px;
}
.marketplace-route-grid article > div:nth-child(2) small {
  margin-top: 3px;
  color: #83929b;
  font-size: 7px;
}
.marketplace-route-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.marketplace-route-actions button {
  height: 29px;
  border: 1px solid #d3dfe4;
  border-radius: 6px;
  background: #fff;
  color: #687c87;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 800;
}
.marketplace-route-actions button.active.target {
  color: #147a53;
  border-color: #86cdae;
  background: #e5f7ef;
}
.marketplace-route-actions button.active.exclude {
  color: #b83f49;
  border-color: #e5aeb3;
  background: #fdecee;
}
.marketplace-routing-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f3f7f9;
  color: #637985;
  font-size: 8px;
}
.marketplace-routing-summary span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.marketplace-routing-summary b {
  color: #395362;
}
.marketplace-attributes {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e3ebef;
}
.marketplace-attributes > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #13788f;
}
.marketplace-attributes > div:first-child b,
.marketplace-attributes > div:first-child small {
  display: block;
}
.marketplace-attributes > div:first-child b {
  font-size: 10px;
}
.marketplace-attributes > div:first-child small {
  margin-top: 3px;
  color: #7f929c;
  font-size: 8px;
}
.marketplace-attributes dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
  background: #e1e9ed;
}
.marketplace-attributes dl > div {
  min-width: 0;
  padding: 9px 10px;
  background: #fff;
}
.marketplace-attributes dt {
  color: #7c8e99;
  font-size: 8px;
}
.marketplace-attributes dd {
  margin: 4px 0 0;
  color: #3f5664;
  font-size: 9px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.product-editor .form-field > span,
.dimensions-field > span {
  color: #425a68;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 6px;
}
.product-editor .form-field input,
.product-editor .form-field select,
.dimensions-field input {
  height: 40px;
  border-color: #ccdbe3;
  border-radius: 7px;
  font-size: 10px;
}
.product-editor .form-field input:disabled {
  background: #f2f5f7;
  color: #84939d;
}
.card-description-input {
  width: 100%;
  min-height: 154px;
  resize: vertical;
  border: 1px solid #ccdbe3;
  border-radius: 8px;
  padding: 12px;
  color: #3c5362;
  font:
    10px/1.65 Inter,
    Arial,
    sans-serif;
}
.card-description-input:focus {
  border-color: #59bdd5;
  outline: 3px solid rgba(16, 169, 207, 0.1);
}
.description-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f1f7fa;
  color: #52707f;
}
.description-tip b,
.description-tip small {
  display: block;
}
.description-tip b {
  font-size: 9px;
}
.description-tip small {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.45;
}
.dimensions-field {
  grid-column: 1 / -1;
}
.dimensions-field > span {
  display: block;
}
.dimensions-field > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dimensions-field input {
  width: 100%;
  padding: 0 10px;
}
.commercial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.product-editor .form-field > small {
  display: block;
  min-height: 31px;
  margin-top: 6px;
  color: #7c8e99;
  font-size: 8px;
  line-height: 1.35;
}
.storage-integration-card {
  max-width: 620px;
  margin: 16px;
}
.storage-integration-card .field-hint {
  margin: 12px 0;
}
.storage-integration-card .primary-button {
  margin-top: 3px;
}
.product-stock-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 190px;
}
.product-stock-breakdown > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid #dbe6eb;
  border-radius: 7px;
  background: #f7fafb;
  color: #496371;
  white-space: nowrap;
}
.product-stock-breakdown small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.product-stock-breakdown b {
  font-size: 8px;
  color: #263f4d;
}
.product-stock-breakdown .local-stock {
  background: #eef4f6;
}
.product-stock-breakdown .marketplace-stock.blue {
  border-color: #b9dafa;
  background: #f1f8ff;
}
.product-stock-breakdown .marketplace-stock.violet {
  border-color: #d6c9f6;
  background: #f7f3ff;
}
.product-stock-breakdown .marketplace-stock.amber {
  border-color: #f0d596;
  background: #fff9eb;
}
.product-stock-breakdown .marketplace-stock.black {
  border-color: #b9c4ca;
  background: #f4f6f7;
}
.product-stock-breakdown .stock-not-loaded {
  color: #879aa4;
}
.product-stock-breakdown.detailed {
  gap: 8px;
  margin-top: 9px;
}
.product-stock-breakdown.detailed > span {
  min-width: 112px;
  min-height: 52px;
  padding: 8px 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.product-stock-breakdown.detailed b {
  font-size: 13px;
}
.product-stock-breakdown.detailed em {
  color: #71858f;
  font-size: 7px;
  font-style: normal;
}
.description-translation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  padding: 10px 11px;
  border: 1px solid #cbe4ec;
  border-radius: 9px;
  background: #eff9fb;
  color: #386778;
}
.description-translation-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.description-translation-bar span,
.description-translation-bar b,
.description-translation-bar small {
  display: block;
}
.description-translation-bar b {
  font-size: 9px;
}
.description-translation-bar small {
  margin-top: 2px;
  color: #66838f;
  font-size: 8px;
}
.description-translation-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #55b4cb;
  border-radius: 7px;
  padding: 7px 10px;
  background: #fff;
  color: #168ca8;
  font:
    700 8px Inter,
    Arial,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.description-translation-bar button:hover:not(:disabled) {
  background: #e4f6fa;
}
.description-translation-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.auto-translate-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #4d6876;
  font-size: 8px;
}
.auto-translate-switch input {
  accent-color: #10a9cf;
}
.auto-translate-switch small {
  margin-left: auto;
  color: #8a9aa2;
}
.translation-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #eaf8ef;
  color: #267646;
  font-size: 8px;
}
.translation-message.error {
  background: #fff0f1;
  color: #b3404a;
}
.marketplace-stock-panel {
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #d7e4e9;
  border-radius: 9px;
  background: #fbfcfd;
}
.marketplace-stock-panel > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526d7a;
}
.marketplace-stock-panel > div:first-child span,
.marketplace-stock-panel > div:first-child b,
.marketplace-stock-panel > div:first-child small {
  display: block;
}
.marketplace-stock-panel > div:first-child b {
  font-size: 9px;
}
.marketplace-stock-panel > div:first-child small {
  margin-top: 2px;
  color: #82939b;
  font-size: 8px;
}
@media (max-width: 980px) {
  .description-translation-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .description-translation-bar button {
    width: 100%;
    justify-content: center;
  }
}
.margin-preview {
  grid-column: 1/-1;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 14px;
  background: #edf8f3;
  border: 1px solid #cceadd;
  border-radius: 9px;
}
.margin-preview span {
  font-size: 9px;
  font-weight: 700;
}
.margin-preview b {
  color: #128258;
  font-size: 18px;
}
.margin-preview small {
  grid-column: 1/-1;
  color: #6d8279;
  font-size: 8px;
}
.editor-message {
  position: sticky;
  bottom: 8px;
  z-index: 3;
  padding: 11px 13px;
  border-radius: 8px;
  box-shadow: 0 7px 20px #37191c1f;
  font-size: 9px;
  font-weight: 750;
}
.editor-message.error {
  background: #fff0f1;
  color: #bd3e49;
  border: 1px solid #f2c7ca;
}
.card-publish-panel {
  align-self: start;
  background: #fff;
  border: 1px solid #dfe7ec;
  border-radius: 11px;
  padding: 15px;
  box-shadow: 0 4px 14px #1f40580a;
}
.publish-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e5ecef;
}
.publish-score > span {
  width: 54px;
  height: 54px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#13a36c var(--progress), #e4eaed 0);
}
.publish-score > span:before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 50%;
  background: #fff;
}
.publish-score > span b {
  position: relative;
  font-size: 11px;
  color: #35505f;
}
.publish-score h3 {
  font-size: 11px;
  margin: 0;
}
.publish-score p {
  color: #82919c;
  font-size: 8px;
  margin: 4px 0 0;
}
.publish-checks {
  padding: 11px 0;
  border-bottom: 1px solid #e5ecef;
  display: grid;
  gap: 8px;
}
.published-explainer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 11px 0 0;
  padding: 9px;
  border-radius: 8px;
  background: #eaf8f1;
  color: #27735a;
  font-size: 8px;
  line-height: 1.45;
}
.published-explainer svg {
  flex: 0 0 auto;
  color: #169262;
}
.publish-routes {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid #e1e9ed;
  border-radius: 8px;
}
.publish-routes > b {
  color: #526b78;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.publish-routes > span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #87651c;
  font-size: 8px;
  line-height: 1.4;
}
.publish-routes > span.ready {
  color: #197a56;
}
.publish-routes > span.excluded {
  color: #b2464f;
}
.publish-routes svg {
  flex: 0 0 auto;
}
.publish-checks > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7c8c97;
  font-size: 9px;
}
.publish-checks > div > span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd9de;
  border-radius: 50%;
}
.publish-checks > div.ready {
  color: #197a56;
  font-weight: 700;
}
.publish-checks > div.ready > span {
  color: #fff;
  border-color: #18a36d;
  background: #18a36d;
}
.publish-preview {
  margin: 13px 0;
  border: 1px solid #e0e8ec;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.publish-preview > img,
.publish-preview > span {
  width: 100%;
  aspect-ratio: 1.35/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  background: #f4f7f8;
  color: #84949e;
}
.publish-preview > span small {
  margin-top: 5px;
  font-size: 8px;
}
.publish-preview > div {
  padding: 10px;
}
.publish-preview b,
.publish-preview small,
.publish-preview strong {
  display: block;
}
.publish-preview b {
  font-size: 9px;
  line-height: 1.4;
  max-height: 26px;
  overflow: hidden;
}
.publish-preview small {
  margin: 4px 0 8px;
  color: #85939d;
  font-size: 8px;
}
.publish-preview strong {
  font-size: 13px;
  color: #213b4a;
}
.publish-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px;
  border-radius: 8px;
  background: #eef7fa;
  color: #53717f;
  font-size: 8px;
  line-height: 1.45;
}
.publish-note svg {
  flex: 0 0 auto;
  color: #168ba7;
}
.publish-button {
  width: 100%;
  margin-top: 11px;
}
.drawer-backdrop {
  justify-content: flex-end;
  align-items: stretch;
}
.order-drawer {
  width: 480px;
  max-width: calc(100vw - 70px);
  height: 100%;
  background: #fff;
  box-shadow: -15px 0 50px #0000002b;
  padding: 20px;
  overflow-y: auto;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: #078eae;
  font-weight: 900;
  font-size: 8px;
  letter-spacing: 1px;
}
.drawer-header h2 {
  font-size: 22px;
  margin: 6px 0 2px;
}
.drawer-header p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.drawer-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.drawer-product b,
.drawer-product small {
  display: block;
}
.drawer-product b {
  font-size: 11px;
  line-height: 1.45;
}
.drawer-product small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.drawer-order-items {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 14px;
  overflow: hidden;
}
.drawer-order-items h3 {
  margin: 0;
  padding: 10px 12px;
  background: #f7f9fb;
  color: #516879;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.drawer-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #e9eff2;
}
.drawer-order-item b,
.drawer-order-item small {
  display: block;
}
.drawer-order-item b {
  max-width: 245px;
  font-size: 9px;
  line-height: 1.4;
}
.drawer-order-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.drawer-item-states {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.drawer-item-states em {
  font-style: normal;
  white-space: nowrap;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 800;
}
.drawer-item-states .sold {
  color: #117e55;
  background: #e9f8f1;
}
.drawer-item-states .returned {
  color: #a64049;
  background: #fff0f1;
}
.reference-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eaf8fb;
  color: #156f86;
  padding: 11px;
  border-radius: 9px;
  margin-bottom: 14px;
}
.reference-note b,
.reference-note small {
  display: block;
}
.reference-note b {
  font-size: 10px;
}
.reference-note small {
  font-size: 8px;
  margin-top: 2px;
}
.breakdown {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.breakdown-row {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9eff2;
  font-size: 10px;
}
.breakdown-row:last-child {
  border: 0;
}
.breakdown-row.expense b {
  color: #d54c55;
}
.breakdown-row.accrual {
  background: #eef7fb;
}
.breakdown-row.points {
  background: #fff8e8;
  color: #8b6300;
}
.breakdown-row.payout {
  background: #e5f4fa;
}
.breakdown-row.profit {
  background: #e9f8f1;
  color: #117e55;
  font-size: 11px;
}
.breakdown-row.return {
  background: #fff8e8;
  color: #8b6300;
}
.settlement-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #b9dbe8;
  border-radius: 10px;
  background: #f2fafd;
  color: #315666;
  font-size: 10px;
  line-height: 1.45;
}
.settlement-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #009bc2;
}
.settlement-note.pending {
  border-color: #ecd38a;
  background: #fff9e9;
  color: #72551a;
}
.settlement-note.pending svg {
  color: #c28a00;
}
.settlement-note.pending b {
  margin-right: 3px;
}
.pending-finance {
  color: #9a7000;
  font-weight: 800;
}
.formula {
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed #b7d7e1;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.formula span {
  font-size: 10px;
  font-weight: 700;
}
.formula b {
  font-size: 18px;
  color: #12855a;
}
.formula small {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}
.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid #dce6eb;
  border-radius: 8px;
}
.segmented button {
  height: 29px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #6a7b88;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 700;
}
.segmented button.active {
  background: #e8f7fb;
  color: #078eae;
}
@media (max-width: 1250px) {
  .sidebar {
    width: 218px;
    flex-basis: 218px;
  }
  .page-content,
  .page-heading,
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .kpi-card > strong {
    font-size: 18px;
  }
  .data-table th,
  .data-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .global-search {
    width: 250px;
  }
  .product-editor-layout {
    grid-template-columns: 160px minmax(530px, 1fr) 245px;
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .product-editor-header {
    grid-template-columns: 155px minmax(280px, 1fr) auto;
    padding: 0 16px;
  }
  .editor-readiness {
    display: none;
  }
}
@media (max-width: 1020px) {
  .card-section-nav {
    display: none;
  }
  .product-editor-layout {
    grid-template-columns: minmax(520px, 1fr) 235px;
  }
}
.date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-range {
  display: flex;
  gap: 6px;
}
.date-range label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.date-range input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.product-important {
  display: grid;
  gap: 4px;
  min-width: 210px;
  max-width: 310px;
}
.product-important span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}
.product-important b {
  color: var(--ink);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stock-export-panel {
  padding: 22px;
}
.stock-export-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 360px));
  gap: 14px;
  margin: 18px 0 12px;
}
.stock-export-controls label {
  display: grid;
  gap: 6px;
}
.stock-export-controls label > span {
  font-size: 11px;
  font-weight: 700;
}
.stock-export-controls select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  background: #fff;
}
.stock-export-table-wrap {
  max-height: 440px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.disabled-row {
  opacity: 0.55;
  background: #f7f9fa;
}
.stock-export-confirm {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  font-size: 11px;
  font-weight: 600;
}
.stock-export-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* Larger type and clearer status for day-to-day inventory work. */
:root { --muted: #526474; --line: #cbd8e0; }
body, input, select, button { line-height: 1.45; }
.nav-button { min-height: 44px; font-size: 14px; }
.panel-title h2, .operation-hero h2 { line-height: 1.25; }
.panel-title p, .operation-hero p, .field-hint { font-size: 13px; line-height: 1.55; }
.field-button, .secondary-button, .primary-button, .text-button,
.configure-button, .save-row, .field-select select { font-size: 13px; }
.data-table th { height: 46px; font-size: 11px; color: #41586a; }
.data-table td { min-height: 60px; font-size: 13px; line-height: 1.45; }
.data-table td > small, .data-table td span > small { font-size: 11px; color: #5b6c79; }
.data-table code { font-size: 12px; color: #213b4d; overflow-wrap: anywhere; }
.stock-export-controls label > span, .stock-export-confirm { font-size: 13px; }
.stock-export-controls select { min-height: 44px; font-size: 13px; }
.stock-export-table-wrap { max-height: min(55vh, 600px); }
.stock-export-table-wrap .data-table th { position: sticky; top: 0; z-index: 1; }
.stock-export-table-wrap .disabled-row { opacity: 1; background: #fff8f2; }
.stock-export-table-wrap .disabled-row td:last-child { color: #8a4e20; font-weight: 650; }
.ozon-image-links,
.ozon-card-settings {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #cfe1ff;
  border-radius: 12px;
  background: #f7faff;
}
.ozon-image-links b,
.ozon-card-settings b {
  font-size: 12px;
}
.ozon-image-links textarea,
.ozon-category-picker input,
.ozon-category-picker select,
.ozon-attribute-row input,
.ozon-attribute-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.ozon-image-links small,
.ozon-card-settings small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.ozon-card-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ozon-card-settings-head > span {
  display: grid;
  gap: 3px;
}
.ozon-category-picker {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
  gap: 8px;
}
.ozon-category-current {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eaf2ff;
}
.ozon-attribute-list {
  display: grid;
  gap: 8px;
  max-height: 480px;
  overflow: auto;
  padding-right: 4px;
}
.ozon-attribute-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.3fr);
  gap: 8px 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e3eaf5;
  border-radius: 9px;
  background: #fff;
}
.ozon-attribute-row.required {
  border-color: #b9d1ff;
}
.ozon-attribute-row > span {
  display: grid;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}
.ozon-attribute-row > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.ozon-attribute-row button {
  border: 1px solid #b9d1ff;
  border-radius: 8px;
  padding: 0 12px;
  background: #eef4ff;
  color: #1856a8;
  font-weight: 700;
}
.ozon-attribute-row > select {
  grid-column: 2;
}
.ozon-publication-status {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 9px;
  background: #eef8f2;
  color: #17603b;
}
.ozon-publication-status.error {
  background: #fff0f0;
  color: #a52e2e;
}
.ozon-publication-status small {
  font-size: 10px;
  line-height: 1.35;
}
.publish-button.ozon-publish {
  background: #1268e8;
}
.ozon-status-button {
  width: 100%;
}
@media (max-width: 900px) {
  .ozon-category-picker,
  .ozon-attribute-row {
    grid-template-columns: 1fr;
  }
  .ozon-attribute-row > select {
    grid-column: 1;
  }
  .ozon-card-settings-head {
    align-items: stretch;
    flex-direction: column;
  }
}
.feedback-page .panel{padding:24px}.feedback-controls{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.feedback-controls select,.feedback-compose textarea{font:inherit;color:#17202d;background:#fff;border:1px solid #aab4c2;border-radius:8px;padding:10px 12px}.feedback-controls select{min-width:220px}.feedback-controls button,.feedback-compose button{font:inherit;font-weight:650;background:#182b3e;color:#fff;border:0;border-radius:8px;padding:10px 17px;cursor:pointer}.feedback-controls button:disabled,.feedback-compose button:disabled{opacity:.5;cursor:default}.feedback-card{margin-top:14px}.feedback-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.feedback-meta strong{font-size:17px}.feedback-meta span{color:#586371}.feedback-text{white-space:pre-wrap;line-height:1.55;margin:16px 0}.feedback-compose{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.feedback-compose textarea{flex:1 1 420px;min-height:96px;resize:vertical}.feedback-error{color:#a52727;font-weight:650}
.market-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:18px 0}.market-toolbar label{display:grid;gap:6px;color:#475467;font-size:13px}.market-toolbar input,.market-toolbar select{min-width:150px;font:inherit;color:#17202d;background:#fff;border:1px solid #aab4c2;border-radius:8px;padding:10px 12px}.market-toolbar input[placeholder]{min-width:280px}.market-toolbar button,.panel-title>button{font:inherit;font-weight:650;background:#182b3e;color:#fff;border:0;border-radius:8px;padding:10px 17px;cursor:pointer}.comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.comparison-card{display:grid;gap:7px;padding:18px;background:#f5f7fa;border:1px solid #dce2e8;border-radius:10px}.comparison-card b{font-size:22px}.comparison-card small{color:#5c6675}@media(max-width:900px){.comparison-grid{grid-template-columns:1fr}.market-toolbar>*{width:100%}.market-toolbar input,.market-toolbar select{width:100%}}
.help-box{margin:16px 0;padding:14px 16px;border:1px solid #cbd5df;border-radius:10px;background:#f8fafc}.help-box summary{cursor:pointer;font-weight:700;color:#172b3d}.help-box ol{margin:12px 0 0 22px;line-height:1.55}.feedback-warning{padding:10px 12px;border-radius:8px;background:#fff6dc;color:#6d4b00}.action-notice{padding:10px 12px;border-radius:8px;background:#e9f7ef;color:#195d37}.save-row:disabled{opacity:.5;cursor:default}
.control-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;margin-bottom:8px}.control-tabs button{flex:0 0 auto;width:auto!important;border:1px solid #cbd5df;border-radius:8px;background:#f7f9fb;color:#24364a;font:inherit;font-weight:650;padding:9px 14px;cursor:pointer;white-space:nowrap}.control-tabs button.active{background:#182b3e;border-color:#182b3e;color:#fff}
