:root {
  --ink: #111827;
  --muted: #6b7280;
  --navy: #131921;
  --navy-2: #232f3e;
  --blue: #146eb4;
  --orange: #ff9900;
  --line: #d5d9d9;
  --soft-line: #e5e7eb;
  --paper: #ffffff;
  --bg: #f3f4f6;
  --row-alt: #edf3f8;
  --parent-row: #d8e7f8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Helvetica Neue", sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

.sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  height: 100vh;
  overflow: auto;
}

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

.product-center-mode .sidebar {
  display: none;
}

.sidebar-head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar h1 {
  margin: 0;
  font-size: 16px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  cursor: pointer;
}

.account-select,
.connect-row,
.folder-head {
  padding: 12px;
  border-bottom: 1px solid var(--soft-line);
}

.account-select span,
.connect-row,
.folder-head {
  color: var(--muted);
  font-size: 12px;
}

.account-select select {
  width: 100%;
  margin-top: 6px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.connect-row,
.folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.small-primary {
  border: 1px solid var(--blue);
  color: white;
  background: var(--blue);
  height: 28px;
  border-radius: 6px;
  padding: 0 10px;
}

.folder-list {
  padding: 8px;
}

.folder-tree-row {
  padding-left: calc(var(--folder-depth, 0) * 16px);
}

.folder-tree-row.drag-over-before .folder-item {
  box-shadow: inset 0 2px 0 var(--blue);
}

.folder-tree-row.drag-over-after .folder-item {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.folder-item {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: white;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 64px;
  align-items: center;
  text-align: left;
  color: #374151;
  border-bottom: 1px dashed var(--soft-line);
  cursor: pointer;
}

.folder-item.dragging {
  opacity: 0.55;
}

.folder-item:focus-within,
.folder-item:hover {
  background: #f3f7fc;
}

.folder-item.active {
  background: #e8f1ff;
  color: var(--blue);
}

.folder-item.system-folder-item {
  font-weight: 700;
}

.folder-info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  cursor: help;
}

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

.folder-caret {
  width: 20px;
  height: 26px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0;
}

.folder-caret.placeholder {
  display: inline-grid;
  place-items: center;
  cursor: default;
}

.folder-caret:not(.placeholder):hover {
  color: var(--blue);
}

.folder-name-input {
  width: 100%;
  height: 26px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 0 7px;
}

.folder-name-input.invalid {
  border-color: #b42318;
  background: #fff5f4;
}

.folder-name-edit {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.folder-inline-error {
  color: #b42318;
  font-size: 11px;
  line-height: 1.2;
}

.folder-drag-status {
  margin: 2px 0 8px;
  padding: 6px 8px;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.35;
}

.folder-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  gap: 2px;
  color: var(--blue);
  text-align: right;
}

.folder-add-button,
.folder-menu-button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
}

.folder-add-button:hover,
.folder-menu-button:hover {
  background: #dbeafe;
}

.folder-menu {
  position: fixed;
  left: var(--folder-menu-left, 0);
  top: var(--folder-menu-top, 0);
  z-index: 90;
  min-width: 116px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}

.folder-menu button {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  text-align: left;
  padding: 0 9px;
}

.folder-menu button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.folder-menu button:not(:disabled):hover {
  background: #fff1f2;
}

.database {
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.toolbar {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 7px 10px 8px;
  background: white;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.brand-row,
.action-row {
  width: 100%;
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 12px;
}

.action-row {
  gap: 8px;
  overflow-x: auto;
}

.brand-strip {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  border-radius: 6px;
  padding: 0 12px;
  white-space: nowrap;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.compact-account-action {
  height: 28px;
  padding: 0 9px;
}

.product-center-button {
  height: 30px;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff7e6;
  color: #92400e;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.user-admin-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.user-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.product-center-button.active {
  background: var(--orange);
  color: #111827;
  border-color: var(--orange);
}

.top-nav {
  flex: 1;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.top-nav-button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: #374151;
  cursor: pointer;
}

.top-nav-button.active {
  border-color: var(--orange);
  background: #fff7e6;
  color: #9a5b00;
  font-weight: 700;
}

.amazon-mark {
  color: var(--orange);
  font-size: 24px;
  font-weight: 700;
}

.search-box {
  display: flex;
  min-width: 280px;
}

.search-box input {
  width: 240px;
  height: 34px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 10px;
}

.search-action-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
}

.primary-button,
.ghost-button {
  height: 34px;
  border-radius: 6px;
  padding: 0 12px;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
}

a.primary-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.search-box .search-submit-button {
  border-radius: 0 6px 6px 0;
  border-right: 0;
}

.search-mode-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue);
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0 6px 6px 0;
  background: var(--blue);
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.search-box .search-submit-button + .search-mode-button {
  margin-left: -6px;
}

.search-mode-menu {
  position: fixed;
  top: var(--search-mode-menu-top, 0);
  left: var(--search-mode-menu-left, 0);
  z-index: 90;
  width: 132px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.search-mode-menu[hidden] {
  display: none;
}

.search-mode-menu button {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  background: white;
  color: #374151;
  text-align: left;
  cursor: pointer;
}

.search-mode-menu button:hover {
  background: #f3f4f6;
}

.ghost-button {
  background: white;
  color: #374151;
  border: 1px solid var(--line);
}

.danger-button {
  height: 34px;
  border: 1px solid #b42318;
  border-radius: 6px;
  padding: 0 12px;
  background: #b42318;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.batch-actions-wrap {
  position: relative;
  flex: 0 0 auto;
}

.batch-actions-menu {
  position: fixed;
  top: var(--batch-menu-top, 0);
  left: var(--batch-menu-left, 0);
  z-index: 80;
  width: max-content;
  max-width: min(220px, calc(100vw - 8px));
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.batch-actions-menu[hidden] {
  display: none;
}

.batch-actions-menu button {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  padding: 0 10px;
  background: white;
  color: #374151;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.batch-actions-menu button:hover {
  background: #f3f4f6;
}

.check-toggle {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  white-space: nowrap;
}

.filter-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  background: #f9fafb;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.filter-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.filter-row select,
.page-size select {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.global-database-alert {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff7ed;
  color: #7c2d12;
  font-size: 13px;
  flex: 0 0 auto;
}

.global-database-alert > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.global-database-alert button {
  flex: 0 0 auto;
}

.info-trigger {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: help;
}

.column-config-trigger {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.column-config-trigger span {
  width: 16px;
  height: 16px;
  position: relative;
  display: block;
  border: 2px solid #6b7280;
  border-radius: 50%;
}

.column-config-trigger span::before,
.column-config-trigger span::after {
  content: "";
  position: absolute;
  border: 1.7px solid #6b7280;
  border-radius: 2px;
}

.column-config-trigger span::before {
  width: 6px;
  height: 6px;
  left: 3px;
  top: 3px;
  background: white;
}

.column-config-trigger span::after {
  width: 5px;
  height: 5px;
  right: -5px;
  bottom: -4px;
  background: white;
}

.column-config-trigger:hover {
  border-color: var(--blue);
}

.column-config-trigger:hover span,
.column-config-trigger:hover span::before,
.column-config-trigger:hover span::after {
  border-color: var(--blue);
}

.hidden-products-toggle {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.hidden-products-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.hidden-products-toggle.is-active {
  border-color: var(--orange);
  background: #fff7e6;
}

.hidden-products-toggle span {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
  border: 2px solid #6b7280;
  border-radius: 999px / 70%;
}

.hidden-products-toggle span::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 4px;
  top: 1px;
  border-radius: 50%;
  background: #6b7280;
}

.hidden-products-toggle.is-active span {
  border-color: var(--orange);
}

.hidden-products-toggle.is-active span::before {
  background: var(--orange);
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  flex: 1;
  overflow: auto;
  background: white;
  min-height: 0;
}

.dashboard-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
}

.dashboard-view[hidden] {
  display: none;
}

.dashboard-filter-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px auto auto;
  gap: 8px;
  align-items: center;
}

.dashboard-control {
  height: 30px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  color: #374151;
  font-size: 12px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-kpi {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: white;
}

.dashboard-kpi small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.15;
}

.dashboard-kpi em {
  display: inline-block;
  margin-top: 4px;
  margin-right: 6px;
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
}

.dashboard-grid,
.dashboard-chart-grid,
.dashboard-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dashboard-panel,
.dashboard-todo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-panel h2,
.dashboard-todo-card h2 {
  margin: 0;
  font-size: 16px;
}

.dashboard-panel p,
.dashboard-todo-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 4px;
  border-radius: 999px;
  vertical-align: middle;
}

.line-current-sales {
  background: var(--blue);
}

.line-prev-sales {
  background: #8ab4f8;
}

.line-current-price {
  background: var(--orange);
}

.line-prev-price {
  background: #f7c66a;
}

.dashboard-chart {
  position: relative;
  min-height: 244px;
  padding: 4px 4px 0;
  border-left: 1px solid #d8dee8;
  border-bottom: 1px solid #d8dee8;
}

.dashboard-chart svg {
  width: 100%;
  height: 190px;
  display: block;
}

.dashboard-grid-lines line {
  stroke: #edf0f2;
  stroke-width: 1;
}

.dashboard-chart polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-chart .line-current-sales {
  stroke: var(--blue);
}

.dashboard-chart .line-prev-sales {
  stroke: #8ab4f8;
}

.dashboard-chart .line-current-price {
  stroke: var(--orange);
}

.dashboard-chart .line-prev-price {
  stroke: #f7c66a;
}

.dashboard-hover-band {
  fill: transparent;
  cursor: crosshair;
}

.dashboard-hover-band:hover {
  fill: rgba(17, 24, 39, 0.12);
}

.dashboard-month-axis {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding-top: 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.dashboard-todo-grid {
  display: grid;
  gap: 8px;
}

.dashboard-todo-grid {
  grid-template-columns: 1fr 1fr;
}

.dashboard-price-panel {
  grid-column: 1 / -1;
}

.price-distribution-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.price-distribution-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-distribution-controls input,
.price-distribution-controls select {
  width: 72px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

.price-distribution-controls select {
  width: 88px;
  background: white;
}

.price-distribution-chart {
  min-height: 360px;
}

.price-combo-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #475467;
  font-size: 13px;
  padding: 10px 0 0;
}

.price-combo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-bar {
  width: 28px;
  height: 12px;
  border-radius: 4px;
  background: #ff9900;
}

.legend-line {
  width: 28px;
  height: 0;
  border-top: 2px solid #57c65a;
  position: relative;
}

.legend-line::after {
  content: "";
  position: absolute;
  left: 11px;
  top: -5px;
  width: 8px;
  height: 8px;
  border: 2px solid #57c65a;
  border-radius: 50%;
  background: white;
}

.price-combo-chart {
  height: 330px;
  position: relative;
}

.price-combo-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.price-grid-lines line {
  stroke: #dce3ec;
  stroke-dasharray: 4 4;
}

.price-axis-line {
  stroke: #d6dde8;
}

.price-axis-left text,
.price-axis-right text,
.price-x-label {
  fill: #667085;
  font-size: 12px;
}

.price-count-bar {
  fill: #ff9900;
}

.price-count-label {
  fill: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.price-share-line {
  fill: none;
  stroke: #57c65a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-share-point {
  fill: white;
  stroke: #57c65a;
  stroke-width: 2;
}

.price-hover-band {
  fill: transparent;
  cursor: crosshair;
}

.price-hover-band:hover {
  fill: rgba(15, 23, 42, 0.06);
}

.price-bucket-tooltip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  min-width: 132px;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
  pointer-events: none;
  z-index: 4;
}

.market-trend-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
}

.market-trend-operation,
.market-trend-display {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.market-trend-operation {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
}

.market-trend-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-trend-title h2,
.market-trend-display-head h3 {
  margin: 0;
  font-size: 16px;
}

.market-trend-title p,
.market-trend-display-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.price-calculator-view {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
}

.price-calculator-operation,
.price-calculator-display {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.price-calculator-operation {
  padding: 8px 10px;
}

.price-calculator-title h2,
.price-calculator-display-head h3 {
  margin: 0;
  font-size: 16px;
}

.price-calculator-title p,
.price-calculator-display-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.price-calculator-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-calculator-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-top: 6px;
}

.price-calculator-filters {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(132px, 1fr));
  gap: 8px;
  align-items: end;
}

.price-calculator-filters label,
.price-calculator-upload label:not(.price-calculator-file-control) {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
}

.price-calculator-filters select,
.price-calculator-upload input {
  height: 34px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--ink);
  background: white;
}

.price-calculator-search {
  min-width: 0;
}

.price-calculator-upload {
  flex: 1 1 620px;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.price-calculator-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr)) minmax(128px, 0.8fr);
  gap: 6px;
  align-items: stretch;
}

.price-calculator-upload-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-calculator-download-template {
  width: 100%;
  justify-content: center;
}

.price-calculator-file-control {
  position: relative;
  min-width: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 0 10px;
  color: #7c2d12;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.price-calculator-file-control:hover {
  border-color: var(--orange);
  background: #fffaf0;
}

.price-calculator-file-control span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-calculator-file-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.price-calculator-input-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-calculator-upload-actions button {
  height: 28px;
  min-width: 0;
  justify-content: center;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-calculator-upload-group,
.price-calculator-template-group {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.price-calculator-template-group {
  align-content: end;
}

.price-calculator-upload-group .ghost-button {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.price-calculator-display-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.price-calculator-summary {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.price-calculator-summary span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.price-calculator-table-wrap {
  overflow: auto;
  min-width: 0;
  max-height: calc(100vh - 220px);
  --price-calculator-product-left: 0px;
  --price-calculator-product-width: 360px;
  --price-calculator-brand-left: 360px;
  --price-calculator-brand-width: 140px;
  --price-calculator-launch-left: 500px;
  --price-calculator-launch-width: 104px;
}

@media (max-width: 900px) {
  .price-calculator-filters {
    flex-basis: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .price-calculator-upload {
    flex-basis: 100%;
  }

  .price-calculator-upload-actions {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .price-calculator-upload-actions {
    grid-template-columns: 1fr;
  }

  .price-calculator-input-status {
    white-space: normal;
  }
}

.price-calculator-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.price-calculator-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--soft-line);
  background: #f8fafc;
  text-align: center;
  white-space: nowrap;
}

.price-calculator-table td {
  min-height: 44px;
  padding: 8px;
  border-bottom: 1px solid var(--soft-line);
  border-right: 1px solid var(--soft-line);
  background: white;
  text-align: center;
  vertical-align: middle;
}

.price-calculator-table .price-calculator-sticky-col {
  position: sticky;
  z-index: 3;
  background: white;
}

.price-calculator-table th.price-calculator-sticky-col {
  z-index: 5;
  background: #f8fafc;
}

.price-calculator-table .price-calculator-product-head,
.price-calculator-table .price-calculator-product-cell {
  left: var(--price-calculator-product-left);
  width: var(--price-calculator-product-width);
  min-width: var(--price-calculator-product-width);
  max-width: var(--price-calculator-product-width);
}

.price-calculator-table .price-calculator-brand-head,
.price-calculator-table .price-calculator-brand-cell {
  left: var(--price-calculator-brand-left);
  width: var(--price-calculator-brand-width);
  min-width: var(--price-calculator-brand-width);
  max-width: var(--price-calculator-brand-width);
}

.price-calculator-table .price-calculator-launch-head,
.price-calculator-table .price-calculator-launch-cell {
  left: var(--price-calculator-launch-left);
  width: var(--price-calculator-launch-width);
  min-width: var(--price-calculator-launch-width);
  max-width: var(--price-calculator-launch-width);
}

.price-calculator-table .price-calculator-empty-value-head,
.price-calculator-table .price-calculator-empty-value-cell {
  min-width: calc(100vw - 604px);
  background: white;
}

.price-calculator-table .price-calculator-empty-value-head {
  background: #f8fafc;
}

.weather-radar-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
}

.weather-radar-operation,
.weather-radar-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.weather-radar-operation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.weather-radar-title h2 {
  margin: 0;
  font-size: 16px;
}

.weather-radar-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.weather-radar-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.weather-radar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  gap: 8px;
  align-items: start;
}

.weather-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 8px;
  padding: 10px;
}

.weather-category-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.weather-category-card.weather-level-high {
  border-left-color: var(--orange);
}

.weather-category-card.weather-level-medium {
  border-left-color: var(--blue);
}

.weather-category-card.weather-level-low {
  border-left-color: #64748b;
}

.weather-category-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.weather-category-head h3 {
  margin: 0;
  font-size: 15px;
}

.weather-category-head p,
.weather-category-reason,
.weather-category-risk,
.weather-category-asin {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.weather-level-badge {
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #111827;
  background: #fed7aa;
  font-size: 12px;
  font-weight: 700;
}

.weather-category-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.weather-category-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 6px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
}

.weather-category-metrics strong {
  color: var(--ink);
  font-size: 15px;
}

.weather-category-asin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-category-risk {
  color: #92400e;
}

.weather-state-table-wrap {
  max-height: calc(100vh - 294px);
  overflow: auto;
}

.weather-state-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.weather-state-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 36px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--soft-line);
  padding: 6px 8px;
  background: #f8fafc;
  text-align: left;
}

.weather-state-table td {
  border-bottom: 1px solid var(--soft-line);
  border-right: 1px solid var(--soft-line);
  padding: 8px;
  background: white;
}

.weather-state-table td:first-child {
  display: grid;
  gap: 2px;
}

.weather-state-table td:first-child span {
  color: var(--muted);
  font-size: 11px;
}

.price-calculator-table .parent-row td {
  background: var(--parent-row);
  text-align: left;
  font-weight: 700;
}

.price-calculator-product-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left !important;
}

.price-calculator-table .parent-row .price-calculator-parent-label-cell {
  left: 0;
  z-index: 4;
  width: calc(var(--price-calculator-product-width) + var(--price-calculator-brand-width) + var(--price-calculator-launch-width));
  min-width: calc(var(--price-calculator-product-width) + var(--price-calculator-brand-width) + var(--price-calculator-launch-width));
  max-width: calc(var(--price-calculator-product-width) + var(--price-calculator-brand-width) + var(--price-calculator-launch-width));
  background: var(--parent-row);
}

.price-calculator-product-cell img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.price-calculator-product-cell div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.price-calculator-asin-actions,
.price-calculator-product-cell em,
.price-calculator-product-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-calculator-asin-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.price-calculator-asin-actions a {
  min-width: 0;
  overflow: hidden;
  color: #0f5f9a;
  font-weight: 700;
  text-overflow: ellipsis;
  text-decoration: none;
}

.price-calculator-asin-actions a:hover {
  text-decoration: underline;
}

.price-calculator-asin-actions button {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.price-calculator-asin-actions button:hover {
  border-color: var(--orange);
  color: var(--ink);
  background: #fffaf0;
}

.price-calculator-product-cell em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.price-calculator-product-cell span {
  color: var(--muted);
}

.price-calculator-brand-cell,
.price-calculator-launch-cell {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-calculator-launch-cell {
  color: var(--muted);
}

.price-calculator-main-price,
.price-calculator-subline,
.price-calculator-range {
  display: block;
}

.price-calculator-main-price {
  font-weight: 700;
  color: var(--ink);
}

.price-calculator-table .price-year-total {
  border-left: 2px solid var(--orange);
  background: #fffaf0;
}

.price-calculator-subline {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.price-calculator-range {
  margin-top: 2px;
  color: #8a5a00;
  font-size: 11px;
}

.market-trend-rules {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}

.market-trend-rules strong {
  color: #78350f;
  white-space: nowrap;
}

.market-trend-control-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 6px;
}

.market-trend-control-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  font-size: 12px;
  white-space: nowrap;
}

.market-trend-control-grid select {
  min-width: 0;
  flex: 1;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: white;
  color: #111827;
}

.market-trend-tag-button {
  min-width: 0;
  height: 28px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: white;
  color: #111827;
  cursor: pointer;
}

.market-trend-tag-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-trend-tag-button small {
  color: #6b7280;
  font-size: 11px;
}

.market-trend-tag-button:hover {
  border-color: var(--blue);
  background: #f8fbff;
}

.market-trend-head,
.market-trend-panel,
.market-trend-kpis article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.market-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.market-trend-head h2,
.market-trend-panel h3 {
  margin: 0;
  font-size: 16px;
}

.market-trend-head p,
.market-trend-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.market-trend-controls,
.market-trend-months,
.segment-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.market-trend-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.market-trend-controls select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: white;
}

.market-trend-months {
  align-content: start;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.market-trend-months span {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.market-trend-months button,
.segment-tabs button {
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: white;
  color: #374151;
  cursor: pointer;
}

.market-trend-months button.active,
.segment-tabs button.active {
  border-color: var(--blue);
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 700;
}

.market-trend-months button:disabled {
  border-color: var(--line);
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.month-all-button {
  border-color: #f59e0b !important;
  color: #92400e !important;
}

.month-all-button.active {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

.market-trend-tag-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.22);
  overflow: hidden;
}

.market-trend-tag-dialog header {
  padding: 16px 22px 12px;
  border-bottom: 1px solid var(--line);
}

.market-trend-tag-dialog h2 {
  margin: 0;
  font-size: 18px;
}

.market-trend-tag-dialog p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.market-trend-tag-options {
  min-height: 0;
  padding: 16px 22px;
  overflow: auto;
  background: #fbfdff;
}

.market-trend-tag-group + .market-trend-tag-group {
  margin-top: 14px;
}

.market-trend-tag-group-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-trend-tag-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.market-trend-tag-list button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
  color: #374151;
  text-align: left;
  cursor: pointer;
}

.market-trend-tag-list button:hover,
.market-trend-tag-list button.active {
  border-color: var(--blue);
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 700;
}

.market-trend-tag-dialog footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: white;
}

.market-trend-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.market-trend-kpis article {
  padding: 10px 12px;
}

.market-trend-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.market-trend-kpis strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.market-trend-kpis em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.market-trend-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
}

.market-trend-panel {
  padding: 12px;
}

.market-trend-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.market-trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.market-trend-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #475467;
  text-align: left;
}

.market-trend-table td {
  padding: 8px;
  border-bottom: 1px solid var(--soft-line);
  vertical-align: middle;
}

.market-trend-table tr.selected {
  background: #fff7ed;
}

.market-trend-table.wide {
  min-width: 900px;
}

.positive {
  color: #0f766e;
}

.negative {
  color: #b42318;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
  white-space: nowrap;
}

.status-chip.growing {
  background: #dcfce7;
  color: #047857;
}

.status-chip.falling {
  background: #fee2e2;
  color: #b42318;
}

.status-chip.new {
  background: #e0f2fe;
  color: #0369a1;
}

.market-alert-list {
  display: grid;
  gap: 8px;
}

.market-alert-list div {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfdff;
}

.market-alert-list strong,
.market-alert-list span,
.market-alert-list small {
  display: block;
}

.market-alert-list small {
  margin-top: 3px;
  color: var(--muted);
}

.market-trend-contributors {
  overflow: auto;
}

.market-trend-display {
  min-height: 0;
  overflow: hidden;
}

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

.market-trend-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
}

.market-trend-summary span {
  color: var(--muted);
}

.market-trend-summary strong {
  color: var(--blue);
}

.market-trend-table-wrap {
  max-height: calc(100vh - 310px);
  overflow: auto;
}

.market-trend-tree-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.market-trend-tree-table th {
  top: 0;
  z-index: 3;
  border-right: 1px solid #c9d7e8;
  border-bottom: 1px solid #b9cbe0;
  background: #dbeafe;
  color: #1f3b57;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.market-trend-tree-table thead tr:nth-child(2) th {
  top: 34px;
  background: #e8f2ff;
}

.market-trend-tree-table td {
  height: 36px;
  padding: 4px 8px;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #e5edf6;
  color: #1f2937;
  white-space: nowrap;
}

.market-trend-tree-table th:nth-child(1),
.market-trend-tree-table th:nth-child(2),
.market-trend-tree-table th:nth-child(3) {
  width: 78px;
}

.market-trend-tree-table th:nth-child(4) {
  width: 116px;
}

.market-trend-variant-col {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
}

.market-trend-image-col,
.market-trend-image-cell {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.market-trend-sales-group {
  background: #dbeafe !important;
}

.market-trend-share-group {
  background: #dcfce7 !important;
}

.market-trend-price-group {
  background: #fef3c7 !important;
}

.market-trend-tree-table th:nth-child(5),
.market-trend-tree-table th:nth-child(6),
.market-trend-tree-table th:nth-child(8) {
  width: 56px;
}

.market-trend-tree-table th:nth-child(7) {
  width: 90px;
}

.market-trend-tree-table th:nth-child(13),
.market-trend-tree-table th:nth-child(14) {
  width: 92px;
}

.market-trend-tree-table th:nth-child(15) {
  width: 118px;
}

.market-trend-thumb {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.market-trend-preview-wrap {
  width: 32px;
  height: 32px;
}

.market-trend-preview-wrap > img {
  width: 32px;
  height: 32px;
}

.market-trend-tree-table tbody tr:nth-child(even):not(.total-row):not(.level-1):not(.level-2) {
  background: #f8fbff;
}

.market-trend-tree-table a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.market-trend-tree-table a:hover {
  text-decoration: underline;
}

.market-trend-tree-table .total-row {
  background: #233246;
  color: white;
  font-weight: 700;
}

.market-trend-tree-table .total-row td {
  color: white;
  border-color: #314155;
}

.market-trend-tree-table .level-1 {
  background: #dbeafe;
  font-weight: 700;
}

.market-trend-tree-table .level-1 td:first-child {
  padding-left: 18px;
}

.market-trend-tree-table .level-2 {
  background: #eef6ff;
  font-weight: 700;
}

.market-trend-tree-table .level-2 td:nth-child(2) {
  padding-left: 20px;
}

.negative-cell {
  color: #b42318 !important;
  font-weight: 700;
}

.positive-cell {
  color: #047857 !important;
  font-weight: 700;
}

.new-cell {
  color: #0369a1 !important;
  font-weight: 700;
}

.preview-thumb {
  width: 32px;
  height: 32px;
  display: inline-block;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  vertical-align: middle;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.36);
}

.preview-thumb.blue {
  background: linear-gradient(135deg, #93c5fd, #1d4ed8);
}

.preview-thumb.teal {
  background: linear-gradient(135deg, #99f6e4, #0f766e);
}

.preview-thumb.pink {
  background: linear-gradient(135deg, #fbcfe8, #db2777);
}

.preview-thumb.orange {
  background: linear-gradient(135deg, #fed7aa, #ea580c);
}

.preview-thumb.cyan {
  background: linear-gradient(135deg, #a5f3fc, #0891b2);
}

.preview-thumb.green {
  background: linear-gradient(135deg, #bbf7d0, #16a34a);
}

.mini-trend-svg {
  width: 120px;
  height: 28px;
  display: block;
}

.mini-trend-svg polyline {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-current {
  stroke: var(--blue);
}

.mini-prev {
  stroke: #f7c66a;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-scroll-table {
  overflow: auto;
}

.share-growth-scroll {
  max-height: 346px;
}

.new-products-scroll {
  max-height: 430px;
}

.dashboard-scroll-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

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

.wide-dashboard-table {
  min-width: 720px;
}

.dashboard-table th {
  padding: 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  color: #475467;
  text-align: left;
  white-space: normal;
  line-height: 1.25;
}

.dashboard-table td {
  padding: 8px;
  border-bottom: 1px solid #edf2f7;
  white-space: nowrap;
}

.own-brand-row td {
  background: #fff7ed;
}

.own-total-row td {
  font-weight: 700;
}

.dashboard-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef6ff;
  color: #175cd3;
  font-size: 11px;
}

.dashboard-pill.own {
  background: #ffedd5;
  color: #9a3412;
}

.dashboard-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.dashboard-brand-selector {
  position: relative;
  flex: 0 0 auto;
}

.dashboard-brand-menu {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 20;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: white;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.dashboard-brand-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 6px;
  font-size: 12px;
}

.dashboard-brand-menu label:hover {
  background: #f3f4f6;
}

.dashboard-metric-type {
  font-weight: 700;
}

.empty-month {
  opacity: 0.38;
}

.dashboard-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 190px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111827;
  color: white;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  transform: translate(10px, -100%);
}

.dashboard-product-thumb,
.dashboard-empty-thumb {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f4f6;
  object-fit: cover;
}

.dashboard-loading,
.dashboard-empty {
  grid-column: 1 / -1;
  min-height: 80px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-todo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.download-missing-card-button {
  white-space: nowrap;
}

.compact-action {
  height: 30px;
  padding: 0 10px;
}

.product-table {
  min-width: var(--product-table-width, 1780px);
  width: max-content;
  border-collapse: collapse;
  font-size: 12px;
}

.product-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  background: white;
  border-bottom: 2px solid #2f80ed;
  color: #374151;
  font-weight: 700;
  text-align: left;
  padding: 0 8px;
}

.product-table th.sales-share-col,
.product-table td.sales-share-cell {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  box-sizing: border-box;
  text-align: center;
}

.product-table th.buybox-seller-col,
.product-table td.buybox-seller-cell {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.product-table td.buybox-seller-cell {
  overflow: hidden;
}

.buybox-seller-text {
  display: block;
  max-width: 134px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-line-list {
  display: block;
  line-height: 1.35;
}

.category-line-list span {
  display: block;
}

.source-folder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 220px;
}

.source-folder-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #c7d2fe;
  border-radius: 5px;
  color: #3730a3;
  background: #eef2ff;
  font-size: 12px;
  line-height: 1.2;
}

.product-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.custom-header-button {
  max-width: 150px;
  height: 28px;
  display: inline-block;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  background: #fff0c2;
  color: #9a5b00;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.custom-header-button:hover {
  background: #ffe4a3;
  color: #7c4500;
}

.custom-header-input {
  width: 120px;
  height: 28px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 0 8px;
  background: #fffdf6;
  color: #7c4500;
  font-weight: 700;
  outline: 0;
}

.custom-header-input:focus {
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.18);
}

.product-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 8px;
  vertical-align: middle;
}

.product-row-even {
  background: var(--row-alt);
}

.hidden-product-row,
.product-row-even.hidden-product-row {
  background: #f3f4f6;
}

.sales-share-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-table th.sales-share-year-total,
.product-table td.sales-share-year-total {
  border-left: 2px solid #f59e0b;
  background-clip: padding-box;
}

.product-table th.sales-share-year-total {
  background: #fff7ed;
}

.product-table td.sales-share-year-total {
  box-shadow: inset 8px 0 10px -12px rgba(146, 64, 14, 0.9);
}

.missing-sales-share {
  color: #8b929c;
}

.parent-row td {
  height: 24px;
  padding: 0 12px;
  background: var(--parent-row);
  color: #1f4e79;
  font-weight: 700;
  border-bottom: 1px solid #b7cce4;
}

.parent-row td.parent-product-cell {
  padding: 0 12px;
  display: table-cell;
}

.parent-group-cell {
  position: sticky;
  left: 36px;
  z-index: 5;
  background: var(--parent-row);
  box-shadow: 8px 0 12px -12px rgba(17, 24, 39, 0.45);
}

.parent-sales-cell {
  color: #1f4e79;
}

.parent-market-share {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
}

.parent-select-col {
  vertical-align: middle;
}

.parent-select-col input {
  margin: 0;
}

.parent-label-text {
  display: block;
  width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.parent-product-cell .parent-label-text {
  line-height: 24px;
}

.child-sales-value,
.child-sales-share {
  display: block;
  line-height: 1.2;
}

.child-sales-share {
  margin-top: 2px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
}

.child-sales-price,
.parent-average-price {
  display: block;
  margin-top: 2px;
  color: #4b5563;
}

.parent-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.parent-select-label input {
  flex: 0 0 auto;
  margin: 0;
}

.select-col {
  width: 36px;
  min-width: 36px;
  text-align: center;
}

.index-col {
  width: 48px;
  min-width: 48px;
  color: var(--muted);
}

.product-col {
  width: 360px;
  min-width: 360px;
}

.product-table th.select-col,
.product-table td.select-col,
.product-table th.index-col,
.product-table td.index-col,
.product-table th.product-col,
.product-table td.product-cell {
  position: sticky;
  background: white;
}

.product-table th.select-col,
.product-table td.select-col {
  left: 0;
  z-index: 5;
}

.product-table th.index-col,
.product-table td.index-col {
  left: 36px;
  z-index: 5;
}

.product-table th.product-col,
.product-table td.product-cell {
  left: 84px;
  z-index: 5;
  box-shadow: 8px 0 12px -12px rgba(17, 24, 39, 0.45);
}

.product-table .parent-row td.select-col,
.product-table .parent-row td.index-col,
.product-table .parent-row td.product-cell {
  background: var(--parent-row);
}

.product-table th.select-col,
.product-table th.index-col,
.product-table th.product-col {
  z-index: 7;
}

.product-row-even td.select-col,
.product-row-even td.index-col,
.product-row-even td.product-cell {
  background: var(--row-alt);
}

.hidden-product-row td.select-col,
.hidden-product-row td.index-col,
.hidden-product-row td.product-cell,
.product-row-even.hidden-product-row td.select-col,
.product-row-even.hidden-product-row td.index-col,
.product-row-even.hidden-product-row td.product-cell {
  background: #f3f4f6;
}

.product-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  overflow: visible;
}

.product-table td.product-cell:hover {
  z-index: 60;
}

.image-preview-wrap {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
}

.image-preview-wrap > img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--soft-line);
  background: white;
}

.image-preview-card {
  position: fixed;
  left: var(--preview-left, 460px);
  top: var(--preview-top, 150px);
  z-index: 70;
  width: 430px;
  display: none;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.22);
  pointer-events: none;
}

.image-preview-wrap:hover .image-preview-card {
  display: block;
}

.image-preview-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  background: white;
}

.image-preview-title,
.image-preview-sku {
  display: block;
  margin-top: 10px;
  color: #374151;
  line-height: 1.45;
}

.image-preview-title {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.image-preview-sku {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.product-title {
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.asin-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
  color: #4b5563;
  font-size: 11px;
}

.asin-actions button,
.asin-actions a {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #374151;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.external-link-icon {
  color: #b9c1cc;
  font-size: 15px;
  font-weight: 700;
}

.asin-actions button:hover,
.asin-actions a:hover {
  color: var(--blue);
}

td small {
  display: block;
  color: #60a5fa;
  margin-top: 3px;
}

.custom-value-cell {
  min-width: 120px;
}

.add-tag-button,
.custom-value-filled {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.add-tag-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #f2f3f5;
  color: #8b929c;
  font-size: 14px;
}

.add-tag-button span {
  color: #7b8490;
  font-size: 22px;
  line-height: 1;
}

.add-tag-button:hover {
  background: #e8f1ff;
  color: var(--blue);
}

.add-tag-button:hover span {
  color: var(--blue);
}

.custom-value-filled {
  max-width: 180px;
  padding: 0 10px;
  background: transparent;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-value-filled:hover {
  color: var(--blue);
}

.custom-inline-input {
  width: 132px;
  height: 32px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 0 8px;
  background: white;
  color: #374151;
  outline: 0;
}

.custom-inline-input:focus {
  box-shadow: 0 0 0 2px rgba(20, 110, 180, 0.16);
}

.loading-cell {
  height: 180px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: white;
  border-top: 1px solid var(--line);
}

#pageButtons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination button,
.pagination select,
.page-ellipsis {
  min-width: 32px;
  height: 30px;
  border: 1px solid var(--line);
  background: #f3f4f6;
  border-radius: 4px;
}

.pagination button {
  cursor: pointer;
}

.pagination button:disabled {
  background: #f3f4f6;
  color: #c7cdd4;
  opacity: 1;
}

.pagination button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.page-ellipsis {
  display: inline-grid;
  place-items: center;
  color: #374151;
  font-weight: 700;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.sidebar-collapsed {
  grid-template-columns: 54px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar h1,
.sidebar-collapsed .account-select,
.sidebar-collapsed .connect-row,
.sidebar-collapsed .folder-head,
.sidebar-collapsed .folder-list {
  display: none;
}

.sidebar-collapsed .sidebar-head {
  justify-content: center;
  padding: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.34);
}

.modal-backdrop[hidden] {
  display: none;
}

.column-config-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.22);
  overflow: hidden;
}

.column-config-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--soft-line);
}

.column-config-head h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.template-select,
.link-button {
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
}

.template-select {
  color: var(--muted);
}

.column-config-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  background: #f8fafc;
  overflow: hidden;
}

.column-picker {
  padding: 16px 28px;
  overflow: auto;
  background: white;
  border-right: 1px solid var(--line);
}

.column-search {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
  color: var(--muted);
}

.column-search input {
  width: 100%;
  border: 0;
  outline: 0;
}

.column-group {
  margin-top: 14px;
}

.column-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.column-group-title button {
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
}

.column-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px 22px;
  margin-top: 10px;
}

.column-option {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  min-width: 0;
}

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

.column-option input {
  width: 14px;
  height: 14px;
  accent-color: #2f80ed;
}

.selected-columns {
  padding: 18px 18px 12px;
  overflow: auto;
}

.selected-columns h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.selected-columns p,
.selected-columns small {
  color: var(--muted);
  font-size: 12px;
}

.selected-columns ol {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.selected-columns li {
  min-height: 30px;
  display: grid;
  grid-template-columns: 20px 22px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 4px;
  color: #374151;
  font-size: 13px;
  border-radius: 4px;
}

.selected-columns li > span:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-columns li.dragging {
  opacity: 0.45;
}

.selected-columns li.drag-over {
  background: #e8f1ff;
}

.drag-handle {
  color: #93a4bd;
  letter-spacing: -1px;
  cursor: grab;
}

.selected-index {
  color: var(--muted);
}

.selected-columns li div {
  display: inline-flex;
  gap: 2px;
}

.selected-columns li button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.selected-columns li button:hover {
  color: var(--blue);
}

.column-config-actions {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-top: 1px solid var(--line);
  background: white;
}

.compact-modal {
  z-index: 25;
}

.custom-column-dialog {
  width: min(420px, calc(100vw - 32px));
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.22);
  overflow: hidden;
}

.custom-column-dialog header {
  padding: 18px 22px 10px;
}

.custom-column-dialog h2 {
  margin: 0;
  font-size: 18px;
}

.delete-folder-message {
  display: grid;
  gap: 10px;
  padding: 10px 22px 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.delete-folder-question,
.delete-folder-impact {
  margin: 0;
}

.delete-folder-name {
  display: block;
  padding: 9px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff5f5;
  color: #991b1b;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.delete-folder-impact {
  color: #4b5563;
}

.field-row {
  display: grid;
  gap: 8px;
  padding: 8px 22px 22px;
  color: var(--muted);
  font-size: 13px;
}

.field-row input,
.field-row textarea {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
}

.field-row textarea {
  height: auto;
  min-height: 150px;
  padding: 10px;
  resize: vertical;
}

.custom-column-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--soft-line);
  background: #f9fafb;
}

.product-import-dialog {
  width: min(440px, calc(100vw - 32px));
}

.export-options-dialog {
  width: min(460px, calc(100vw - 32px));
}

.folder-transfer-dialog {
  width: min(480px, calc(100vw - 32px));
}

.folder-transfer-summary {
  padding-bottom: 0;
}

.folder-transfer-list {
  display: grid;
  gap: 6px;
  max-height: min(360px, 52vh);
  overflow: auto;
  padding: 8px 22px;
}

.folder-transfer-option {
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px calc(8px + var(--folder-depth, 0) * 16px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.folder-transfer-option:hover {
  border-color: #f59e0b;
  background: #fffaf0;
}

.folder-transfer-option.disabled {
  color: #9ca3af;
  background: #f9fafb;
  cursor: not-allowed;
}

.folder-transfer-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-transfer-option small {
  color: #9ca3af;
  font-size: 12px;
}

.export-options-list {
  display: grid;
  gap: 10px;
  padding: 8px 22px 0;
}

.export-option-card {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.export-option-card:hover {
  border-color: #f59e0b;
  background: #fffaf0;
}

.export-option-card:disabled {
  color: #9ca3af;
  background: #f9fafb;
  cursor: not-allowed;
}

.export-option-card strong {
  font-size: 14px;
}

.export-option-card .info-trigger {
  color: var(--muted);
  font-size: 12px;
}

.app-tooltip {
  position: fixed;
  z-index: 120;
  max-width: min(300px, calc(100vw - 20px));
  padding: 8px 10px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.import-actions {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 22px 0;
}

.download-template-link {
  justify-content: center;
}

.upload-workbook-control {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
}

.upload-workbook-control span {
  flex: 0 0 auto;
  font-weight: 700;
}

.upload-workbook-control input {
  min-width: 0;
  font-size: 12px;
}

.sales-upload-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.sales-upload-actions .upload-workbook-control {
  min-height: 42px;
  justify-content: center;
  border-style: solid;
  border-radius: 7px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.sales-upload-actions .upload-workbook-control span {
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sales-upload-actions .upload-workbook-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.seller-sales-upload {
  border-color: #d5a000;
  color: #111827;
  background: linear-gradient(#ffd978, #f7bd38);
}

.seller-sales-upload:hover {
  border-color: #b88a00;
  background: linear-gradient(#ffcf57, #f2b42a);
}

.correction-sales-upload {
  border-color: #9ca3af;
  color: #1f2937;
  background: linear-gradient(#ffffff, #eef1f5);
}

.correction-sales-upload:hover {
  border-color: #6b7280;
  background: linear-gradient(#f9fafb, #e5e7eb);
}

.sales-upload-actions .upload-workbook-control:focus-within {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .sales-upload-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.import-hint,
.import-status {
  margin: 12px 22px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.import-status {
  min-height: 18px;
  color: #1f4e79;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .sidebar {
    display: block;
  }

  .toolbar,
  .filter-row {
    flex-wrap: wrap;
  }

  .dashboard-kpis,
  .dashboard-grid,
  .dashboard-chart-grid,
  .dashboard-table-grid,
  .dashboard-answer-grid,
  .dashboard-todo-grid,
  .dashboard-filter-strip {
    grid-template-columns: 1fr;
  }

  .price-chart-body {
    overflow-x: auto;
  }

  .price-distribution-controls {
    justify-content: flex-start;
  }

  .search-box {
    min-width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .column-config-body {
    grid-template-columns: 1fr;
  }

  .selected-columns {
    border-top: 1px solid var(--line);
  }

  .column-options {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
