:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #64748b;
  --line: #d9e0e8;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --mark: #fff2a8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app {
  width: min(1180px, calc(100vw - 32px));
  margin: 28px auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--muted);
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.searchPanel {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font-size: 17px;
  outline: none;
}

input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.statusRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.tableWrap {
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef3f7;
  color: #334155;
  font-weight: 700;
}

td.price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--accent-strong);
}

td.sku {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

tr:hover td {
  background: #f8fafc;
}

mark {
  background: var(--mark);
  border-radius: 3px;
  padding: 0 2px;
}

.empty {
  padding: 34px 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .app {
    width: min(100vw - 20px, 1180px);
    margin: 14px auto;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }

  button {
    width: 100%;
  }
}
