/* =========================================================
   大工单 · 生产库存协同 原型样式
   仅用于交互评审，不含生产环境适配
   ========================================================= */

:root {
  --sidebar-w: 236px;
  --ink: #14211d;
  --ink-2: #2c3b35;
  --muted: #6f7d77;
  --faint: #98a39e;
  --line: #e6eae8;
  --line-strong: #d7dedb;
  --canvas: #f3f6f4;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-2: #0b5f59;
  --brand-3: #0a4f4a;
  --brand-soft: #e7f4f1;
  --brand-line: #cfe8e2;
  --amber: #b9760c;
  --amber-soft: #fff7e6;
  --red: #c0392b;
  --red-soft: #fdf0ee;
  --green: #1d7a4c;
  --green-soft: #eaf7ef;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --violet: #6d5bd0;
  --violet-soft: #f1effc;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 33, 29, 0.04);
  --shadow-lg: 0 18px 48px rgba(8, 24, 19, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #b9e6dc;
  color: #062a24;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #cbd6d1;
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #aebdb7;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: -3px;
}
.ico-sm {
  width: 15px;
  height: 15px;
}
.ico-lg {
  width: 22px;
  height: 22px;
}
.ico-fill {
  fill: currentColor;
  stroke: none;
}

/* ========================= 布局 ========================= */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.main {
  min-width: 0;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 26px 30px 48px;
}

.view[hidden] {
  display: none !important;
}

/* ========================= 侧边栏 ========================= */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px 16px;
  color: #dbe8e3;
  background: linear-gradient(180deg, #0b211c 0%, #0d2a23 58%, #0a1d19 100%);
  overflow: hidden;
  z-index: 10;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2bb3a3, #0f766e);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
  flex: none;
}

.brand-mark .ico {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #f2faf7;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: #7f9f95;
  font-weight: 600;
}

.nav-label {
  padding: 0 10px;
  margin: 2px 0 -8px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #6c8c82;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 11px;
  border-radius: 6px;
  color: #a9c1b9;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item .ico {
  width: 17px;
  height: 17px;
  opacity: 0.9;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(43, 179, 163, 0.24), rgba(43, 179, 163, 0.05));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.14);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2dd4bf;
}

.nav-item.active .ico {
  color: #5eead4;
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #cfe0da;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav-badge.alert {
  background: rgba(239, 122, 107, 0.18);
  color: #ffb4a9;
}

.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  z-index: 1;
}

.remote-card {
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.remote-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #d6e7e1;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
  flex: none;
}

.dot.amber {
  background: #f2b84b;
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.14);
}

.dot.red {
  background: #ef7a6b;
  box-shadow: 0 0 0 3px rgba(239, 122, 107, 0.16);
}

.remote-latency {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #6f9186;
  font-weight: 500;
}

.remote-meta {
  margin-top: 6px;
  font-size: 9.5px;
  line-height: 1.65;
  color: #729388;
  font-family: var(--mono);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7f4f1;
  color: #0f766e;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.avatar.dark {
  background: rgba(255, 255, 255, 0.09);
  color: #d9ece6;
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.side-user-info {
  min-width: 0;
  line-height: 1.3;
}

.side-user-info b {
  display: block;
  font-size: 11.5px;
  color: #dfede8;
  font-weight: 600;
}

.side-user-info span {
  display: block;
  font-size: 9.5px;
  color: #73958a;
  margin-top: 1px;
}

.side-more {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #729388;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.side-more:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ========================= 顶栏 ========================= */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-sub {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.date-chip .ico {
  width: 15px;
  height: 15px;
  color: var(--faint);
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: #cbd6d1;
  background: #fbfcfb;
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #c0392b;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--canvas);
}

/* ========================= 基础组件 ========================= */

.card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.5;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 11px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s ease;
  user-select: none;
}

.btn .ico {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover {
  background: var(--brand-2);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: #fafcfb;
  border-color: #b9c6c1;
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-3);
  border-color: var(--brand-line);
}

.btn-soft:hover {
  background: #dbf0eb;
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: #f0d2cd;
}

.btn-danger:hover {
  background: #fbe5e1;
}

.btn-sm {
  height: 31px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 6px;
}

.btn-sm .ico {
  width: 14px;
  height: 14px;
}

.btn-lg {
  height: 46px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 表单 */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span {
  font-size: 11.5px;
  font-weight: 600;
  color: #44534d;
}

.field em {
  color: var(--red);
  font-style: normal;
}

.field-hint {
  font-size: 10px;
  color: var(--faint);
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  height: auto;
  min-height: 74px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.55;
}

.input::placeholder,
.textarea::placeholder {
  color: #aab5b0;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #6cb8ad;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f7d77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.search {
  position: relative;
  min-width: 0;
}

.search .input {
  padding-left: 35px;
}

.search > .ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--faint);
  pointer-events: none;
}

/* 状态标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.pill .dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.pill-ok {
  background: var(--green-soft);
  color: var(--green);
}
.pill-warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill-danger {
  background: var(--red-soft);
  color: var(--red);
}
.pill-info {
  background: var(--blue-soft);
  color: var(--blue);
}
.pill-neutral {
  background: #f1f4f2;
  color: #63716b;
}
.pill-brand {
  background: var(--brand-soft);
  color: var(--brand-3);
}
.pill-violet {
  background: var(--violet-soft);
  color: var(--violet);
}

/* 分段控件 */
.seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 5px;
  background: #f2f5f3;
  border: 1px solid #e9eeeb;
  gap: 2px;
}

.seg-btn {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.active {
  background: #fff;
  color: var(--brand-3);
  box-shadow: 0 1px 4px rgba(20, 33, 29, 0.09);
}

/* 表格 */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef1ef;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfcfb;
}

.data-table .num {
  text-align: right;
}

.data-table .act {
  text-align: right;
  white-space: nowrap;
}

.cell-main {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.cell-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
  line-height: 1.4;
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px 0;
  font-size: 10.5px;
  color: var(--faint);
  flex-wrap: wrap;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

/* 水位条 */
.meter {
  min-width: 92px;
}

.meter-bar {
  height: 6px;
  border-radius: 99px;
  background: #eef2f0;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2bb3a3, #0f766e);
  transition: width 0.4s ease;
}

.meter-fill.warn {
  background: linear-gradient(90deg, #f2b84b, #d97706);
}

.meter-fill.danger {
  background: linear-gradient(90deg, #ef7a6b, #c0392b);
}

.meter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* 空态 */
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

.empty .ico {
  width: 30px;
  height: 30px;
  color: #c3cec9;
  margin-bottom: 8px;
}

/* ========================= KPI ========================= */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi {
  position: relative;
  overflow: hidden;
  padding: 15px 16px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -36px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.55;
  pointer-events: none;
}

.kpi.amber::after {
  background: var(--amber-soft);
}
.kpi.blue::after {
  background: var(--blue-soft);
}
.kpi.red::after {
  background: var(--red-soft);
}

.kpi-icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 12px;
}

.kpi.amber .kpi-icon {
  background: var(--amber-soft);
  color: var(--amber);
}
.kpi.blue .kpi-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.kpi.red .kpi-icon {
  background: var(--red-soft);
  color: var(--red);
}

.kpi-icon .ico {
  width: 17px;
  height: 17px;
}

.kpi-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.kpi-value {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.kpi-value small {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.kpi-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--faint);
  line-height: 1.4;
}

.kpi-foot .up {
  color: var(--green);
  font-weight: 600;
}
.kpi-foot .down {
  color: var(--red);
  font-weight: 600;
}

/* ========================= 仪表盘 ========================= */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 18px;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand);
}

.legend-swatch.out {
  background: #e2a13b;
}

.chart-wrap {
  height: 244px;
  min-height: 200px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-stats {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.chart-stat span {
  display: block;
  font-size: 9.5px;
  color: var(--faint);
}

.chart-stat b {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.chart-stat b small {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 3px;
}

.alert-list {
  display: flex;
  flex-direction: column;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 1px;
  border-bottom: 1px solid #eef1ef;
}

.alert-item:first-child {
  padding-top: 2px;
}

.alert-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.alert-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
}

.alert-icon .ico {
  width: 15px;
  height: 15px;
}

.alert-icon.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.alert-icon.danger {
  background: var(--red-soft);
  color: var(--red);
}
.alert-icon.info {
  background: var(--blue-soft);
  color: var(--blue);
}

.alert-body {
  min-width: 0;
  flex: 1;
}

.alert-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.alert-desc {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}

.alert-time {
  flex: none;
  font-size: 9px;
  color: var(--faint);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.alert-foot {
  margin-top: 10px;
}

.health-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.health-item {
  padding: 7px 9px;
  border: 1px solid #edf1ef;
  border-radius: 6px;
  background: #f8faf9;
}

.health-item span {
  display: block;
  font-size: 9px;
  color: var(--faint);
}

.health-item b {
  display: block;
  margin-top: 1px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.health-item b.ok {
  color: var(--green);
}

.health-item b.warn {
  color: var(--amber);
}

.health-item b.danger {
  color: var(--red);
}

/* 生产动态 */
.prod-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
}

.prod-stat {
  padding: 10px 11px;
  border-radius: 6px;
  background: #f8faf9;
  border: 1px solid #edf1ef;
}

.prod-stat span {
  display: block;
  font-size: 9.5px;
  color: var(--faint);
}

.prod-stat b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.prod-stat b small {
  font-size: 9px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 2px;
}

.order-mini {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.order-mini-row {
  display: block;
}

.order-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-mini-name {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.order-mini-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--faint);
}

.progress {
  height: 5px;
  border-radius: 99px;
  background: #eef2f0;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2bb3a3, #0f766e);
  transition: width 0.4s ease;
}

.progress-fill.warn {
  background: linear-gradient(90deg, #f2b84b, #d97706);
}

.progress-fill.danger {
  background: linear-gradient(90deg, #ef7a6b, #c0392b);
}

/* ========================= 工单 ========================= */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 33, 29, 0.03);
}

.stat-ico {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.stat-ico .ico {
  width: 16px;
  height: 16px;
}

.stat-ico.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.stat-ico.red {
  background: var(--red-soft);
  color: var(--red);
}
.stat-ico.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-box span {
  display: block;
  font-size: 9.5px;
  color: var(--faint);
}

.stat-box b {
  display: block;
  margin-top: 1px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-box b small {
  font-size: 9px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 2px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-bar .search {
  width: 270px;
}

.filter-bar .select {
  width: 142px;
  height: 38px;
}

.filter-spacer {
  flex: 1;
}

.page-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.page-note .dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.order-table {
  min-width: 940px;
}

.order-table .wo-id {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
  font-weight: 600;
}

.report-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.report-pair b {
  font-size: 13px;
  font-weight: 700;
}

.report-pair span {
  font-size: 9.5px;
  color: var(--faint);
}

.defect-rate {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.defect-rate.bad {
  color: var(--red);
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.row-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.row-icon:hover {
  background: #f2f6f4;
  color: var(--brand);
  border-color: var(--line);
}

.row-icon.danger:hover {
  background: var(--red-soft);
  color: var(--red);
}

/* ========================= 产品 / BOM ========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2bb3a3, #0f766e 55%, transparent);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.product-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-meta {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--faint);
}

.product-meta .mono {
  color: var(--muted);
}

.product-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.product-kpi {
  padding: 8px 10px;
  border-radius: 5px;
  background: #f8faf9;
  border: 1px solid #eef2ef;
}

.product-kpi span {
  display: block;
  font-size: 9px;
  color: var(--faint);
}

.product-kpi b {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.product-kpi b small {
  font-size: 9px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 1px;
}

.bom-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #f0f3f1;
  border-radius: 6px;
  background: #fbfcfb;
  font-size: 11px;
}

.bom-row .bom-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #9ccfc4;
  flex: none;
}

.bom-row .bom-name {
  font-weight: 600;
}

.bom-row .bom-qty {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.bom-row .bom-stock {
  color: var(--faint);
  font-size: 9.5px;
  white-space: nowrap;
}

.product-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.product-actions .btn {
  flex: 1;
}

.remote-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f3f6f4;
  border: 1px solid #e6ebe8;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.remote-chip .dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

/* ========================= 同步中心 ========================= */

.sync-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  margin-bottom: 16px;
  border: 1px solid #f3ddbd;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf1, #fffdf9 70%);
}

.sync-banner.hidden {
  display: none;
}

.sync-banner .banner-ico {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #fcefd9;
  color: var(--amber);
  display: grid;
  place-items: center;
  flex: none;
}

.sync-banner .banner-ico .ico {
  width: 19px;
  height: 19px;
}

.sync-banner-body {
  min-width: 0;
  flex: 1;
}

.sync-banner-body b {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}

.sync-banner-body p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

.sync-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sync-kpis .kpi-value {
  font-size: 23px;
}

.sync-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: #f4fbf8;
  color: #426056;
}

.sync-note .ico {
  width: 16px;
  height: 16px;
  color: var(--brand);
  margin-top: 1px;
  flex: none;
}

.sync-note b {
  font-size: 11px;
  color: var(--brand-3);
}

.sync-note p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.65;
}

.sync-table {
  min-width: 950px;
}

.qty-in {
  color: var(--green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qty-out {
  color: var(--red);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ========================= 弹窗 ========================= */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 22, 18, 0.48);
  backdrop-filter: blur(3px);
  overflow: auto;
  animation: fadeIn 0.15s ease;
}

.modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.18s ease;
}

.modal-lg {
  width: min(1040px, 100%);
}

.modal-sm {
  width: min(520px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex: none;
}

.modal-kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.modal-sub {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.modal-close:hover {
  color: var(--ink);
  background: #fafcfb;
}

.modal-body {
  padding: 22px;
  overflow: auto;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: #fbfcfb;
  flex: none;
}

.modal-foot .spacer {
  flex: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
  gap: 22px;
}

.detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.summary-box {
  padding: 10px 11px;
  border: 1px solid #edf1ef;
  border-radius: 6px;
  background: #f8faf9;
}

.summary-box span {
  display: block;
  font-size: 9.5px;
  color: var(--faint);
}

.summary-box b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.summary-box b small {
  font-size: 9px;
  font-weight: 500;
  color: var(--faint);
  margin-left: 2px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-sub {
  font-size: 9.5px;
  color: var(--faint);
}

.detail-table {
  min-width: 0;
  font-size: 11px;
}

.detail-table th {
  padding: 8px 9px;
  font-size: 8.5px;
}

.detail-table td {
  padding: 8px 9px;
}

.qr-card {
  padding: 15px;
  text-align: center;
  border: 1px solid #d5eae3;
  border-radius: 8px;
  background: linear-gradient(160deg, #f4fcf9, #eaf6f1);
}

.qr-card img {
  width: 146px;
  height: 146px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.12);
}

.qr-card .qr-title {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-3);
}

.qr-card .qr-sub {
  margin-top: 2px;
  font-size: 9.5px;
  color: #66857b;
}

.qr-token {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d7eae4;
  font-family: var(--mono);
  font-size: 8.5px;
  color: #55756b;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.qr-actions .btn {
  height: 31px;
  font-size: 10.5px;
  padding: 0 8px;
}

.label-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px dashed #c8d6d0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.label-mini img {
  width: 50px !important;
  height: 50px !important;
  display: block;
  object-fit: contain;
  flex: none;
}

.label-mini .lm-title {
  font-size: 10.5px;
  font-weight: 700;
}

.label-mini .lm-sub {
  margin-top: 2px;
  font-size: 8.5px;
  color: var(--faint);
  line-height: 1.5;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding-bottom: 13px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 21px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--green-soft);
  color: var(--green);
  position: relative;
  z-index: 1;
}

.timeline-dot .ico {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

.timeline-dot.fail {
  background: var(--red-soft);
  color: var(--red);
}

.timeline-dot.wait {
  background: #f1f4f2;
  color: var(--faint);
}

.timeline-body {
  min-width: 0;
  flex: 1;
}

.timeline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.timeline-title span {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--faint);
  font-weight: 500;
}

.timeline-sub {
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.5;
}

.timeline-sub code {
  font-family: var(--mono);
  font-size: 9px;
  color: #55756b;
  background: #f3f7f5;
  padding: 1px 4px;
  border-radius: 3px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
}

.info-row span {
  color: var(--faint);
  flex: none;
}

.info-row b {
  font-weight: 600;
  text-align: right;
  line-height: 1.45;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.audit-item {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #eef1ef;
  font-size: 9.5px;
  line-height: 1.5;
}

.audit-item:last-child {
  border-bottom: 0;
}

.audit-time {
  flex: none;
  width: 92px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--faint);
  padding-top: 1px;
}

.audit-body b {
  font-weight: 600;
  color: var(--ink-2);
}

.audit-body span {
  color: var(--muted);
}

/* 新建工单 */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: -2px;
}

.bom-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfb;
}

.bom-check-head {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bom-check-head b {
  font-size: 11px;
}

.bom-check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.bom-check-table th {
  padding: 7px 10px;
  text-align: left;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: #fbfcfb;
  border-bottom: 1px solid #eef1ef;
}

.bom-check-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef1ef;
}

.bom-check-table tr:last-child td {
  border-bottom: 0;
}

.bom-check-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.check-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 10.5px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.check-banner.ok {
  background: var(--green-soft);
  color: var(--green);
}

.check-banner.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-banner .ico {
  width: 14px;
  height: 14px;
  flex: none;
}

.bom-builder {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bom-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 30px;
  gap: 6px;
  align-items: center;
}

.bom-builder-row .select,
.bom-builder-row .input {
  height: 35px;
  font-size: 11px;
}

.icon-x {
  width: 30px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--faint);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-x:hover {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f0d2cd;
}

/* ========================= Toast ========================= */

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 11px 13px;
  border-radius: 6px;
  background: #10231e;
  color: #eaf4f0;
  box-shadow: 0 12px 36px rgba(8, 24, 19, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: toastIn 0.2s ease;
  pointer-events: auto;
}

.toast b {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}

.toast p {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #a9c4ba;
}

.toast.ok {
  border-left: 3px solid #34d399;
}

.toast.warn {
  border-left: 3px solid #f2b84b;
}

.toast.err {
  border-left: 3px solid #ef7a6b;
}

/* ========================= 动画 ========================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* =========================================================
   手机报工页
   ========================================================= */

.report-body {
  margin: 0;
  background: #dfe8e3;
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
}

.report-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f6f8f7;
  box-shadow: 0 0 70px rgba(8, 24, 19, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.report-top {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 24px;
  color: #fff;
  background: linear-gradient(145deg, #0a4f4a 0%, #0f766e 55%, #14877c 100%);
  flex: none;
}

.report-top::before {
  content: "";
  position: absolute;
  right: -56px;
  top: -66px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.report-top::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
}

.report-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.report-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.report-brand .brand-mark .ico {
  width: 16px;
  height: 16px;
}

.report-title {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.report-sub {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.report-meta-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.report-token {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  padding: 5px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.report-demo-btn {
  position: relative;
  z-index: 1;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-family: inherit;
  font-size: 9.5px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.report-demo-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.report-token .ico {
  width: 12px;
  height: 12px;
}

.report-content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 14px 120px;
  flex: 1;
}

.report-card {
  padding: 15px;
  background: #fff;
  border: 1px solid #e4eae7;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 33, 29, 0.03);
}

.report-product {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-product h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.report-product p {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: #7b8a84;
}

.report-product .wo-no {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  color: #98a39e;
}

.plan-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px dashed #e4eae7;
}

.plan-strip span {
  display: block;
  font-size: 9.5px;
  color: #98a39e;
}

.plan-strip b {
  display: block;
  margin-top: 1px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan-strip b small {
  font-size: 10px;
  font-weight: 500;
  color: #7b8a84;
  margin-left: 2px;
}

.plan-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.plan-tags span {
  font-size: 9px;
  color: #7b8a84;
  background: #f4f7f5;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: var(--mono);
}

.qty-field {
  margin-bottom: 14px;
}

.qty-field:last-child {
  margin-bottom: 0;
}

.qty-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.qty-label span {
  font-size: 11px;
  font-weight: 650;
  color: #44534d;
}

.qty-label em {
  font-style: normal;
  font-size: 9px;
  color: #98a39e;
  font-weight: 400;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty-btn {
  width: 44px;
  height: 46px;
  flex: none;
  border: 1px solid #dbe4e0;
  border-radius: 8px;
  background: #f7faf8;
  color: #44534d;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.12s ease;
  user-select: none;
}

.qty-btn:hover {
  background: #eef5f1;
  border-color: #b9d4cb;
}

.qty-btn:active {
  transform: scale(0.96);
}

.qty-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 46px;
  border: 1px solid #dbe4e0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qty-input:focus {
  border-color: #6cb8ad;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.qty-input.bad {
  border-color: #e7a79d;
  background: #fffafa;
}

.qty-hint {
  margin-top: 5px;
  font-size: 9px;
  color: #98a39e;
  line-height: 1.4;
}

.qty-hint.warn {
  color: var(--amber);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 31px;
  padding: 0 10px;
  border: 1px solid #dbe4e0;
  border-radius: 99px;
  background: #fff;
  color: #5b6a64;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.12s ease;
}

.chip:hover {
  border-color: #a9cec3;
}

.chip.active {
  background: #e7f4f1;
  border-color: #7fc3b7;
  color: #0b5f59;
  font-weight: 650;
}

.report-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.report-field > span {
  font-size: 10.5px;
  font-weight: 600;
  color: #44534d;
}

.report-field .input {
  height: 40px;
  font-size: 12px;
  border-color: #dbe4e0;
  border-radius: 6px;
}

.report-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.material-details {
  border-top: 1px dashed #e4eae7;
  margin-top: 13px;
  padding-top: 11px;
}

.material-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  color: #55756b;
  user-select: none;
}

.material-details summary::-webkit-details-marker {
  display: none;
}

.material-details summary .ico {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.material-details[open] summary .ico {
  transform: rotate(180deg);
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 7px;
}

.material-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef1ef;
  font-size: 10px;
}

.material-row:last-child {
  border-bottom: 0;
}

.material-row span {
  color: #7b8a84;
}

.material-row b {
  font-family: var(--mono);
  font-size: 10px;
  color: #44534d;
  font-weight: 600;
}

.report-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  padding: 14px 15px;
  border-radius: 8px;
  background: #0f2b25;
  color: #eaf6f2;
}

.report-summary .item span {
  display: block;
  font-size: 9px;
  color: #8fb1a6;
}

.report-summary .item b {
  display: block;
  margin-top: 1px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.report-summary .item b small {
  font-size: 9px;
  font-weight: 500;
  color: #8fb1a6;
  margin-left: 2px;
}

.report-warning {
  display: none;
  align-items: flex-start;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 9.5px;
  line-height: 1.5;
}

.report-warning.show {
  display: flex;
}

.report-warning .ico {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}

.report-field-error {
  display: none;
  font-size: 9.5px;
  color: var(--red);
  line-height: 1.4;
  margin-top: 2px;
}

.report-field-error.show {
  display: block;
}

.report-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #dfe7e3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.report-bar .total {
  flex: none;
  line-height: 1.15;
}

.report-bar .total span {
  display: block;
  font-size: 9px;
  color: #8b9993;
}

.report-bar .total b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.report-bar .total b small {
  font-size: 9px;
  font-weight: 500;
  color: #8b9993;
  margin-left: 1px;
}

.report-bar .btn {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  font-size: 13.5px;
}

.report-bar .btn .ico {
  width: 16px;
  height: 16px;
}

/* 确认 sheet */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 20, 16, 0.45);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease;
}

.sheet {
  width: 100%;
  max-width: 460px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 10px 10px 0 0;
  background: #fff;
  animation: slideUp 0.22s ease;
  max-height: 88vh;
  overflow: auto;
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #dce4e0;
}

.sheet-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sheet-sub {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: #7b8a84;
}

.sheet-receipt {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e4eae7;
  border-radius: 8px;
  background: #fbfcfb;
}

.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e9eeeb;
  font-size: 11px;
}

.sheet-row:last-child {
  border-bottom: 0;
}

.sheet-row span {
  color: #7b8a84;
}

.sheet-row b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.sheet-actions .btn {
  flex: 1;
  height: 46px;
  border-radius: 8px;
}

/* 提交成功 */
.report-success {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  background: #f6f8f7;
  overflow: auto;
  animation: fadeIn 0.2s ease;
}

.success-mark {
  width: 66px;
  height: 66px;
  margin: 26px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f6ee;
  color: #1d7a4c;
  box-shadow: 0 0 0 10px rgba(29, 122, 76, 0.06);
}

.success-mark .ico {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.success-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.success-sub {
  margin: 5px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: #7b8a84;
  line-height: 1.5;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px auto 0;
  padding: 5px 10px;
  border-radius: 99px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 9.5px;
  font-weight: 600;
}

.sync-state.done {
  background: var(--green-soft);
  color: var(--green);
}

.sync-state .ico {
  width: 12px;
  height: 12px;
}

.receipt {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e4eae7;
  border-radius: 8px;
  background: #fff;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #edf1ef;
  font-size: 10.5px;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row span {
  color: #7b8a84;
}

.receipt-row b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.receipt-note {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f4f8f6;
  color: #66857b;
  font-size: 9px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.success-actions .btn {
  flex: 1;
  height: 46px;
  border-radius: 8px;
}

/* 已提交 / 失效状态 */
.report-state {
  display: flex;
  flex-direction: column;
  padding: 34px 18px 24px;
  flex: 1;
}

.state-mark {
  width: 62px;
  height: 62px;
  margin: 10px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  box-shadow: 0 0 0 9px rgba(29, 122, 76, 0.05);
}

.state-mark.warn {
  background: var(--amber-soft);
  color: var(--amber);
  box-shadow: 0 0 0 9px rgba(185, 118, 12, 0.05);
}

.state-mark .ico {
  width: 27px;
  height: 27px;
}

.state-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.state-sub {
  margin: 6px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: #7b8a84;
  line-height: 1.6;
}

.state-card {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #e4eae7;
  border-radius: 8px;
  background: #fff;
}

.state-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.state-actions .btn {
  flex: 1;
  height: 44px;
  border-radius: 6px;
}

/* 演示状态切换 */
.demo-bar {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(10, 31, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  opacity: 0.92;
}

.demo-bar .demo-label {
  padding: 0 6px 0 8px;
  font-size: 8.5px;
  color: #8fb1a6;
  white-space: nowrap;
}

.demo-bar button {
  height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: #cfe0da;
  font-size: 9px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.demo-bar button.active {
  background: #2dd4bf;
  color: #062a24;
  font-weight: 700;
}

.demo-bar button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   标签打印页
   ========================================================= */

.label-body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #e8eeeb;
  font-family: var(--font);
  color: var(--ink);
}

.label-toolbar {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.label-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.label-tip {
  font-size: 11px;
  color: #6f7d77;
}

.flight-label {
  width: 100mm;
  height: 60mm;
  padding: 5mm;
  display: flex;
  gap: 5mm;
  background: #fff;
  border: 1px dashed #b8c8c1;
  box-sizing: border-box;
  color: #14211d;
}

.flight-qr {
  width: 30mm;
  height: 30mm;
  padding: 1.5mm;
  background: #fff;
  border: 1px solid #e3e9e6;
  box-sizing: border-box;
  flex: none;
}

.flight-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.flight-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flight-brand {
  display: flex;
  align-items: center;
  gap: 1.5mm;
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f766e;
}

.flight-brand span {
  font-size: 5.5pt;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #98a39e;
}

.flight-wo {
  margin-top: 2mm;
  font-family: var(--mono);
  font-size: 7pt;
  color: #6f7d77;
  letter-spacing: 0.02em;
}

.flight-product {
  margin-top: 1mm;
  font-size: 13pt;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.flight-spec {
  margin-top: 0.8mm;
  font-size: 6.5pt;
  color: #7b8a84;
}

.flight-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1mm 3mm;
  padding-top: 2mm;
  border-top: 1px solid #e6eae8;
}

.flight-grid span {
  display: block;
  font-size: 5.5pt;
  color: #98a39e;
}

.flight-grid b {
  display: block;
  font-size: 8pt;
  font-weight: 700;
  margin-top: 0.3mm;
  font-variant-numeric: tabular-nums;
}

.flight-foot {
  margin-top: 1.5mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2mm;
  font-size: 5.5pt;
  color: #98a39e;
}

.flight-foot b {
  color: #0f766e;
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .dash-grid,
  .dash-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sync-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 11px 16px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar::after {
    display: none;
  }

  .brand {
    padding: 0;
    flex: none;
  }

  .brand-text span {
    display: none;
  }

  .nav {
    flex-direction: row;
    gap: 3px;
    flex: none;
  }

  .nav-label {
    display: none;
  }

  .nav-item {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-item.active::before {
    display: none;
  }

  .nav-badge {
    display: none;
  }

  .side-foot {
    display: none;
  }

  .main {
    padding: 20px 18px 44px;
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
  }

  .top-actions {
    width: 100%;
    padding-top: 0;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-mask {
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px 13px 40px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-sub {
    font-size: 11.5px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .kpi {
    padding: 12px 13px 11px;
  }

  .kpi-value {
    font-size: 22px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    padding: 15px;
    border-radius: 8px;
  }

  .filter-bar .search {
    width: 100%;
  }

  .filter-bar .select {
    flex: 1;
    width: auto;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .product-kpis {
    gap: 5px;
  }

  .product-kpi {
    padding: 7px 8px;
  }

  .sync-banner {
    flex-wrap: wrap;
  }

  .sync-banner .btn {
    width: 100%;
  }

  .modal-head,
  .modal-body,
  .modal-foot {
    padding-left: 15px;
    padding-right: 15px;
  }

  .modal-title {
    font-size: 16px;
  }

  .toast-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .report-shell {
    max-width: none;
    box-shadow: none;
  }

  .report-bar {
    max-width: none;
  }

  .report-content {
    padding: 12px 12px 110px;
  }

  .report-top {
    padding: 18px 15px 22px;
  }

  .report-title {
    font-size: 22px;
  }

  .report-card {
    padding: 13px;
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  .report-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .label-toolbar,
  .label-tip {
    display: none !important;
  }

  .label-body {
    display: block;
    padding: 0;
    background: #fff;
  }

  .label-wrap {
    display: block;
  }

  .flight-label {
    width: 100mm;
    height: 60mm;
    border: 0;
    margin: 0;
  }

  @page {
    size: 100mm 60mm;
    margin: 0;
  }
}


/* =========================================================
   硬朗边角收敛（评审反馈：不要过度圆润）
   ========================================================= */

.kpi::after,
.sidebar::after,
.report-top::before,
.report-top::after {
  display: none;
}

.pill {
  border-radius: 4px;
}

.chip {
  border-radius: 6px;
}

.report-demo-btn,
.report-token,
.remote-chip {
  border-radius: 4px;
}

.seg {
  border-radius: 6px;
}

.seg-btn {
  border-radius: 4px;
}

.report-card {
  border-radius: 8px;
}

.report-summary {
  border-radius: 8px;
}

.state-card {
  border-radius: 8px;
}

.receipt {
  border-radius: 8px;
}

.qty-btn,
.qty-input {
  border-radius: 8px;
}

.report-field .input {
  border-radius: 6px;
}

.product-card::before {
  height: 2px;
  background: var(--brand);
}

.sync-banner {
  background: #fffaf1;
}

.qr-card {
  background: #f4faf8;
}

.report-top {
  background: linear-gradient(135deg, #0b5f59, #0f766e);
}

.btn-primary {
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.16);
}

.toast {
  box-shadow: 0 8px 24px rgba(8, 24, 19, 0.2);
}

.report-shell {
  box-shadow: 0 0 40px rgba(8, 24, 19, 0.1);
}
