@import url('/static/core_import.css');

.products-view {
  margin-top: 20px;
}

.products-head {
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.products-head > div:first-child {
  min-width: 0;
}

.products-head .eyebrow,
.products-head h2 {
  display: none;
}

.products-head #productsPeriod {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

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

.products-head-actions .primary-button,
.products-head-actions .secondary-button {
  min-height: 44px;
  margin: 0;
}

.inventory-source-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-color: #dfe5ff;
  background: linear-gradient(135deg, #f5f6ff, #fff);
}

.inventory-source-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eceeff;
  color: #5964df;
  font-size: 21px;
  font-weight: 900;
}

.inventory-source-note > div {
  min-width: 0;
  flex: 1;
}

.inventory-source-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.inventory-source-note p {
  margin: 0;
  color: #737b8d;
  font-size: 12px;
  line-height: 1.5;
}

.inventory-source-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4dc;
  color: #9a6811;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.products-empty,
.products-loading {
  min-height: 360px;
  padding: 44px 28px;
}

.products-empty h3,
.products-loading h3 {
  font-size: 24px;
}

.products-empty > p:not(.panel-kicker),
.products-loading > p {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.products-empty > small,
.products-loading > small {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-metric > span,
.product-metric small {
  font-size: 12px;
}

.product-metric strong {
  font-size: 30px;
}

.product-bar-copy strong,
.product-bar-row > b,
.abc-row strong {
  font-size: 12px;
}

.product-bar-copy small,
.abc-row small,
.abc-note,
.product-rank {
  font-size: 10px;
}

.products-toolbar input,
.products-toolbar select {
  height: 44px;
  font-size: 12px;
}

.products-table th,
.products-table td {
  font-size: 12px;
}

.product-cell > span {
  font-size: 12px;
}

.product-cell small {
  font-size: 10px;
}

.inventory-empty {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f3f7;
  color: #7b8190;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .inventory-source-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .inventory-source-status {
    margin-left: 56px;
  }

  .products-head {
    gap: 14px;
    flex-wrap: wrap;
  }

  .products-head-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .products-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .products-head-actions button {
    width: 100%;
  }

  .inventory-source-status {
    margin-left: 0;
  }

  .products-empty,
  .products-loading {
    min-height: 320px;
    padding: 32px 18px;
  }
}
