:root {
  --bg1: #eef5ff;
  --bg2: #f8f4ea;
  --bg3: #edf8f4;
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  --panel-soft: rgba(255, 255, 255, 0.52);
  --panel-solid: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(108, 132, 158, 0.2);
  --panel-border-strong: rgba(74, 102, 130, 0.3);
  --text: #0f2034;
  --muted: rgba(15, 32, 52, 0.66);
  --accent: #1557d6;
  --accent2: #0f766e;
  --accent3: #d97706;
  --danger: #dc2626;
  --ring: rgba(21, 87, 214, 0.18);
  --shadow: 0 24px 60px rgba(26, 46, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 16px 40px rgba(26, 46, 76, 0.08);
  --table-line: rgba(16, 32, 52, 0.08);
  --table-line-strong: rgba(16, 32, 52, 0.14);
  --sticky-offset: 108px;
}

html[data-theme="dark"] {
  --bg1: #06101b;
  --bg2: #0a1320;
  --bg3: #071a17;
  --panel: linear-gradient(180deg, rgba(8, 18, 32, 0.86), rgba(8, 18, 32, 0.72));
  --panel-soft: rgba(8, 18, 32, 0.72);
  --panel-solid: rgba(7, 15, 28, 0.92);
  --panel-border: rgba(147, 163, 184, 0.18);
  --panel-border-strong: rgba(148, 163, 184, 0.26);
  --text: rgba(243, 247, 252, 0.96);
  --muted: rgba(210, 222, 237, 0.66);
  --accent: #6fa7ff;
  --accent2: #47c7bc;
  --accent3: #f59e0b;
  --ring: rgba(111, 167, 255, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
  --table-line: rgba(255, 255, 255, 0.08);
  --table-line-strong: rgba(255, 255, 255, 0.14);
}

html[data-skin="business"] {
  --bg1: #f3f6fa;
  --bg2: #f7f9fc;
  --bg3: #eef3f8;
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
  --panel-soft: rgba(255, 255, 255, 0.96);
  --panel-solid: rgba(255, 255, 255, 0.99);
  --panel-border: rgba(15, 23, 42, 0.08);
  --panel-border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --accent: #1d4ed8;
  --accent2: #1e3a8a;
  --accent3: #475569;
  --ring: rgba(29, 78, 216, 0.14);
  --shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --table-line: rgba(15, 23, 42, 0.06);
  --table-line-strong: rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"][data-skin="business"] {
  --bg1: #0b1220;
  --bg2: #0d1728;
  --bg3: #0b1421;
  --panel: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(13, 23, 40, 0.98));
  --panel-soft: rgba(10, 18, 32, 0.96);
  --panel-solid: rgba(9, 15, 27, 0.98);
  --panel-border: rgba(148, 163, 184, 0.14);
  --panel-border-strong: rgba(148, 163, 184, 0.22);
  --text: rgba(241, 245, 249, 0.96);
  --muted: rgba(203, 213, 225, 0.62);
  --accent: #8cb6ff;
  --accent2: #c7d7ff;
  --accent3: #94a3b8;
  --ring: rgba(140, 182, 255, 0.16);
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.24);
  --table-line: rgba(255, 255, 255, 0.06);
  --table-line-strong: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

body.loading-open {
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(960px 560px at 8% 6%, rgba(21, 87, 214, 0.18), transparent 62%),
    radial-gradient(920px 580px at 92% 6%, rgba(15, 118, 110, 0.16), transparent 58%),
    radial-gradient(880px 520px at 50% 100%, rgba(217, 119, 6, 0.14), transparent 64%),
    linear-gradient(145deg, var(--bg1), var(--bg2) 54%, var(--bg3));
  z-index: -2;
}

html[data-skin="business"] .bg {
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.05), transparent 22%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg1), var(--bg2) 54%, var(--bg3));
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

html[data-skin="business"] .glass {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.loadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(21, 87, 214, 0.14), transparent 34%),
    rgba(6, 12, 22, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loadingCard {
  width: min(460px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 26px 24px;
  border-radius: 24px;
  text-align: center;
}

html[data-skin="business"] .loadingCard {
  border-radius: 16px;
}

.loadingSpinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 235, 0.12);
  border-top-color: var(--accent);
  animation: loading-spin 0.82s linear infinite;
}

.loadingTitle {
  font-size: 20px;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.loadingMeta {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1500px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 18px 22px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 55%),
    var(--panel);
}

html[data-skin="business"] .topbar {
  top: 10px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.06), rgba(255, 255, 255, 0) 18%),
    var(--panel);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.brandCopy {
  min-width: 0;
}

.logo {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 30px rgba(21, 87, 214, 0.24);
}

html[data-skin="business"] .logo {
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 46%),
    linear-gradient(145deg, #123b8d, #315ec7);
  box-shadow: none;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.title {
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.topbarMenu {
  display: contents;
}

.menuToggle {
  display: none !important;
  width: 46px;
  min-width: 46px;
  padding: 0;
  flex-direction: column;
  gap: 5px;
}

.menuToggleLine {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menuToggle.is-open .menuToggleLine:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menuToggle.is-open .menuToggleLine:nth-child(2) {
  opacity: 0;
}

.menuToggle.is-open .menuToggleLine:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.themeToggle {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 16px;
  align-self: end;
}

.themeToggleTrack {
  position: relative;
  width: 100%;
  min-height: 46px;
  height: 46px;
  border-radius: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
}

.themeToggleThumb {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--accent);
  transform: scale(1);
  transition: transform 0.28s ease, color 0.28s ease, opacity 0.28s ease;
}

html[data-theme="dark"] .themeToggleThumb {
  color: #dbeafe;
}

.themeToggle.is-animating .themeToggleThumb {
  animation: theme-bob 0.48s ease;
}

.themeIcon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s ease, transform 0.28s ease;
}

.themeIcon svg {
  width: 18px;
  height: 18px;
}

.themeIconSun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.themeIconMoon {
  opacity: 0;
  transform: rotate(-22deg) scale(0.8);
}

html[data-theme="dark"] .themeIconSun {
  opacity: 0;
  transform: rotate(22deg) scale(0.8);
}

html[data-theme="dark"] .themeIconMoon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.actionField {
  width: clamp(132px, 18vw, 172px);
  display: grid;
  gap: 6px;
}

.noticeBar {
  width: min(1500px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.noticeBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(29, 78, 216, 0.08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.noticePulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
  animation: pulse 1.8s infinite;
}

.noticeText {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.container {
  width: min(1500px, calc(100% - 28px));
  margin: 22px auto 28px;
  padding: 0;
}

.panel {
  border-radius: 32px;
  padding: 24px 24px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    var(--panel);
}

html[data-skin="business"] .panel {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.02), transparent 18%),
    var(--panel);
}

.toolbar {
  display: grid;
  gap: 18px;
}

.toolbarHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.filterStageBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

html[data-skin="business"] .filterStageBar {
  border-radius: 14px;
  background: rgba(29, 78, 216, 0.04);
}

.filterStageCopy {
  display: grid;
  gap: 4px;
}

.filterStageTitle {
  font-size: 13px;
  font-weight: 760;
}

.filterStageText {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.filterStageActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filterStageActions .btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
}

.toolbarIntro {
  max-width: 760px;
}

.panelEyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panelTitle {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 780;
}

.panelNote {
  margin-top: 8px;
  max-width: 700px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

html[data-theme="dark"] .tab {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.active {
  border-color: rgba(21, 87, 214, 0.34);
  background:
    linear-gradient(135deg, rgba(21, 87, 214, 0.2), rgba(15, 118, 110, 0.18)),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 24px rgba(21, 87, 214, 0.12);
}

html[data-skin="business"] .tab {
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: none;
}

html[data-skin="business"] .tab.active {
  color: #ffffff;
  border-color: rgba(29, 78, 216, 0.22);
  background: linear-gradient(135deg, #1d4ed8, #315ec7);
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.14);
}

html[data-theme="dark"][data-skin="business"] .tab.active {
  color: #08111f;
  background: linear-gradient(135deg, #8cb6ff, #c7d7ff);
}

.filters,
.filters2,
.range {
  display: none;
}

.filters3 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.filters3 .barRow {
  grid-column: 1 / -1;
}

.commonGrid,
.awardGrid,
.projectGrid {
  grid-column: 1 / -1;
}

.commonGrid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.fieldGroup,
.numGroup {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 34%),
    var(--panel-soft);
  box-shadow: var(--shadow-soft);
  align-content: start;
}

html[data-theme="dark"] .fieldGroup,
html[data-theme="dark"] .numGroup {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    var(--panel-soft);
}

html[data-skin="business"] .fieldGroup,
html[data-skin="business"] .numGroup {
  border-radius: 16px;
  background: var(--panel-solid);
  box-shadow: none;
}

#filterBox[data-filter-stage="basic"] .advancedField {
  display: none !important;
}

.searchGrid,
.numGroup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.awardGrid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

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

.groupHead {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--table-line);
}

html[data-skin="business"] .groupHead {
  padding-bottom: 10px;
}

.groupEyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
}

html[data-skin="business"] .groupEyebrow {
  color: var(--accent);
}

.groupTitle {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.field {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.field-wide {
  grid-column: span 2;
}

.field-full {
  grid-column: 1 / -1;
}

.fieldHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fieldLabel,
.label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.fieldLabel {
  font-weight: 600;
}

.fieldHelp {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.toolbarMeta {
  display: flex;
  justify-content: flex-end;
}

.schemeTools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schemeSelect {
  width: 180px;
  min-width: 180px;
}

.reportIntro {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.workflowSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflowStep {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

html[data-skin="business"] .workflowStep {
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.04);
}

.workflowStepNo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.workflowStepBody {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflowStepTitle {
  font-size: 13px;
  font-weight: 760;
}

.workflowStepText {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.inlineActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chipList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.historyList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.historyChip {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: min(100%, 320px);
  min-width: 0;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .historyChip {
  background: rgba(255, 255, 255, 0.04);
}

html[data-skin="business"] .historyChip {
  background: rgba(29, 78, 216, 0.03);
}

.historyChipMain {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.historyChipTitle {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.historyChipMeta {
  font-size: 12px;
  color: var(--muted);
}

.historyChipClose {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.historyEmpty {
  padding: 12px 14px;
  border: 1px dashed var(--panel-border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.chip {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(29, 78, 216, 0.08);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.chip-remove {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

#loadingCancelBtn {
  min-width: 132px;
}

.chk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 2px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.chk input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.projCell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  white-space: nowrap;
}

html[data-theme="dark"] .badge {
  background: rgba(255, 255, 255, 0.08);
}

.badge-ok {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.26);
}

.badge-muted {
  color: var(--muted);
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 11px 13px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.18);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
}

html[data-skin="business"] .input,
html[data-skin="business"] .select {
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: none;
}

.input::placeholder {
  color: rgba(89, 112, 138, 0.9);
}

html[data-theme="dark"] .input::placeholder {
  color: rgba(210, 222, 237, 0.44);
}

.input:focus,
.select:focus {
  border-color: rgba(21, 87, 214, 0.28);
  box-shadow: 0 0 0 4px var(--ring);
}

.batchTextarea {
  min-height: 132px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 22px rgba(26, 46, 76, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

html[data-theme="dark"] .btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

html[data-skin="business"] .btn {
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #f8fbff;
  border-color: rgba(21, 87, 214, 0.16);
  background: linear-gradient(135deg, var(--accent), #2a70ff);
  box-shadow: 0 14px 28px rgba(21, 87, 214, 0.24);
}

html[data-theme="dark"] .btn-primary {
  color: #08111f;
  background: linear-gradient(135deg, #78b0ff, #47c7bc);
}

html[data-skin="business"] .btn-primary {
  background: linear-gradient(135deg, #123b8d, #1d4ed8);
  box-shadow: 0 12px 24px rgba(18, 59, 141, 0.18);
}

html[data-theme="dark"][data-skin="business"] .btn-primary {
  color: #08111f;
  background: linear-gradient(135deg, #8cb6ff, #c7d7ff);
}

.btn-secondary {
  opacity: 0.94;
}

.status {
  min-height: 18px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hintRow {
  display: block;
}

.status.inline {
  margin: 0;
}

.statusHint {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

html[data-theme="dark"] .statusHint {
  background: rgba(71, 199, 188, 0.1);
  color: rgba(168, 252, 240, 0.92);
}

.pagerBar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
}

.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagerTools {
  justify-content: flex-start;
}

.pagerNav {
  justify-content: flex-end;
}

.insightsSection {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.insightsHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.insightsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.insightCard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

.insightCard[data-accent="primary"] {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(255, 255, 255, 0)),
    var(--panel-solid);
}

.insightHead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.insightIcon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(29, 78, 216, 0.08);
}

.insightIcon svg {
  width: 18px;
  height: 18px;
}

.insightTitle {
  font-size: 13px;
  font-weight: 700;
}

.insightMeta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.insightValue {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.insightList {
  display: grid;
  gap: 6px;
}

.insightListItem {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pageInfo {
  min-width: 180px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.3);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

html[data-skin="business"] .pageInfo {
  border-radius: 12px;
  background: var(--panel-solid);
}

html[data-theme="dark"] .pageInfo {
  background: rgba(255, 255, 255, 0.05);
}

.tableEchoBar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tableEchoBottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pageInfoBottom {
  justify-self: start;
}

.footerStatsFull {
  width: 100%;
}

.footerStats {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

html[data-skin="business"] .footerStats {
  border-radius: 12px;
  background: var(--panel-solid);
}

html[data-theme="dark"] .footerStats {
  background: rgba(255, 255, 255, 0.05);
}

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

.jumpGroup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jumpInput {
  width: 92px;
  min-width: 92px;
}

.exportFormatSelect {
  width: 110px;
  min-width: 110px;
}

.tableWrap {
  margin-top: 6px;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

html[data-theme="dark"] .tableWrap {
  background: rgba(255, 255, 255, 0.03);
}

html[data-skin="business"] .tableWrap {
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: none;
}

.table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid var(--table-line-strong);
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--panel-solid);
  color: var(--muted);
  font-size: 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

html[data-skin="business"] .table thead th {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.96), rgba(248, 250, 252, 0.96));
}

html[data-theme="dark"][data-skin="business"] .table thead th {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(9, 15, 27, 0.98));
}

.cellBox {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.cellBoxNode {
  overflow: visible;
}

.discountGreen {
  color: #059669;
  font-weight: 650;
}

.discountYellow,
.warnYellow {
  color: #b45309;
  font-weight: 650;
}

.cellScroll {
  max-width: 420px;
  overflow-x: auto;
}

.cellWrap {
  max-width: 360px;
  overflow: hidden;
}

.clamp2 {
  display: -webkit-box;
  max-height: 2.7em;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cellTight {
  max-width: 140px;
}

.thInner {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding-right: 24px;
  min-height: 22px;
}

.thLabel {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  font-weight: 600;
}

th[data-col-key="bid_section_no"],
td[data-col-key="bid_section_no"] {
  width: 220px;
}

th[data-col-key="project_name"],
td[data-col-key="project_name"] {
  width: 340px;
}

th[data-col-key="bid_section_name"],
td[data-col-key="bid_section_name"] {
  width: 240px;
}

th[data-col-key="candidate_name"],
td[data-col-key="candidate_name"] {
  width: 340px;
}

th[data-col-key="project_scale"],
td[data-col-key="project_scale"] {
  width: 220px;
}

th[data-col-key="control_price"],
td[data-col-key="control_price"] {
  width: 170px;
}

th[data-col-key="control_price_yuan"],
td[data-col-key="control_price_yuan"] {
  width: 170px;
}

th[data-col-key="publish_date"],
td[data-col-key="publish_date"] {
  width: 130px;
}

th[data-col-key="detail"],
td[data-col-key="detail"],
th[data-col-key="relate"],
td[data-col-key="relate"] {
  width: 112px;
}

th[data-col-key="actions"],
td[data-col-key="actions"] {
  width: 150px;
}

.table[data-tab="award"] th,
.table[data-tab="award"] td {
  padding: 10px 8px;
}

.table[data-tab="award"] th[data-col-key="bid_section_no"],
.table[data-tab="award"] td[data-col-key="bid_section_no"] {
  width: 168px;
}

.table[data-tab="award"] th[data-col-key="project_name"],
.table[data-tab="award"] td[data-col-key="project_name"] {
  width: 190px;
}

.table[data-tab="award"] th[data-col-key="project_scale"],
.table[data-tab="award"] td[data-col-key="project_scale"] {
  width: 150px;
}

.table[data-tab="award"] th[data-col-key="bid_section_name"],
.table[data-tab="award"] td[data-col-key="bid_section_name"] {
  width: 132px;
}

.table[data-tab="award"] th[data-col-key="publish_date"],
.table[data-tab="award"] td[data-col-key="publish_date"] {
  width: 108px;
}

.table[data-tab="award"] th[data-col-key="candidate_name"],
.table[data-tab="award"] td[data-col-key="candidate_name"] {
  width: 190px;
}

.table[data-tab="award"] th[data-col-key="control_price"],
.table[data-tab="award"] td[data-col-key="control_price"] {
  width: 130px;
}

.table[data-tab="award"] th[data-col-key="bid_price_yuan"],
.table[data-tab="award"] td[data-col-key="bid_price_yuan"] {
  width: 126px;
}

.table[data-tab="award"] th[data-col-key="duration_days"],
.table[data-tab="award"] td[data-col-key="duration_days"] {
  width: 88px;
}

.table[data-tab="award"] th[data-col-key="discount_rate"],
.table[data-tab="award"] td[data-col-key="discount_rate"] {
  width: 92px;
}

.table[data-tab="award"] th[data-col-key="actions"],
.table[data-tab="award"] td[data-col-key="actions"] {
  width: 130px;
}

.colToggle,
.colFilter {
  margin-left: 0;
  padding: 2px 6px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  cursor: pointer;
}

.colFilter {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

html[data-theme="dark"] .colToggle,
html[data-theme="dark"] .colFilter {
  background: rgba(255, 255, 255, 0.06);
}

.colFilter:disabled {
  opacity: 0.4;
  cursor: default;
}

.colResizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.colMenu {
  position: fixed;
  z-index: 200;
  width: min(300px, calc(100vw - 20px));
  max-height: 340px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

html[data-skin="business"] .colMenu {
  border-radius: 14px;
  background: var(--panel-solid);
  backdrop-filter: none;
}

.colMenuTitle {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.colMenuActions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.colMenuRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  font-size: 13px;
}

.colMenuRow input {
  width: 16px;
  height: 16px;
}

.btn-mini {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 12px;
}

.rangeEditor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.colHidden {
  display: none !important;
}

.link {
  color: var(--accent);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.actionCell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-compact {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

html[data-skin="business"] .pill {
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.08);
}

html[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.06);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 12, 22, 0.48);
}

.reportSection {
  margin-top: 8px;
}

html[data-report-skin="screen"] .reportBoard {
  gap: 18px;
}

.reportBoard {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.reportHero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.reportCard {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
}

html[data-report-skin="screen"] .reportCard {
  background:
    linear-gradient(180deg, rgba(12, 22, 44, 0.06), rgba(37, 99, 235, 0.02)),
    var(--panel-solid);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

.reportChartCard {
  overflow: hidden;
}

.reportCardHead {
  display: grid;
  gap: 6px;
}

.reportCardTitle {
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.reportCardMeta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.projectBidSectionCard {
  grid-column: 1 / -1;
  gap: 14px;
}

.projectBidViewBar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.projectBidViewCopy {
  display: grid;
  gap: 6px;
}

.projectBidViewTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.projectBidExportGroup {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.projectBidExportSelect {
  min-width: 110px;
}

.projectBidExportBtn {
  white-space: nowrap;
}

.projectBidViewToggle {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
}

.projectBidViewIcon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.projectBidViewIcon svg {
  width: 20px;
  height: 20px;
}

.projectBidIntroCard,
.projectBidDetailList {
  grid-column: 1 / -1;
}

.projectBidSectionCard-matched {
  border-color: rgba(15, 118, 110, 0.18);
}

.projectBidSectionCard-review {
  border-color: rgba(217, 119, 6, 0.2);
}

.projectBidSectionCard-unmatched {
  border-color: rgba(100, 116, 139, 0.18);
}

.projectBidSectionHead,
.projectBidHead,
.projectBidMatchHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.projectBidSectionTitleWrap,
.projectBidTitleWrap,
.projectBidMatchTitleWrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.projectBidResultGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
  align-items: start;
}

.projectBidCard {
  gap: 14px;
  align-self: start;
}

.projectBidCard[data-state="matched"] {
  border-color: rgba(15, 118, 110, 0.18);
}

.projectBidCard[data-state="review"] {
  border-color: rgba(217, 119, 6, 0.2);
}

.projectBidCard[data-state="unmatched"] {
  border-color: rgba(100, 116, 139, 0.18);
}

.projectBidBadgeRow,
.projectBidActions,
.projectBidFactRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.projectBidFactRow {
  justify-content: flex-start;
}

.projectBidSummary {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.projectBidDetailList {
  display: grid;
  gap: 12px;
}

.projectBidDetailCard {
  gap: 14px;
}

.projectBidDetailCard-matched {
  border-color: rgba(15, 118, 110, 0.18);
}

.projectBidDetailCard-review {
  border-color: rgba(217, 119, 6, 0.2);
}

.projectBidDetailCard-unmatched {
  border-color: rgba(100, 116, 139, 0.18);
}

.projectBidDetailGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.projectBidSpotlight {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
}

.projectBidSpotlight-matched {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.08));
  border-color: rgba(15, 118, 110, 0.2);
}

.projectBidSpotlight-review {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(255, 255, 255, 0.08));
  border-color: rgba(217, 119, 6, 0.2);
}

.projectBidSpotlightLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

.projectBidSpotlightTitle {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 780;
}

.projectBidSpotlightMeta,
.projectBidSpotlightEvidence {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.projectBidMatchList {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.projectBidMatchCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .projectBidMatchCard {
  background: rgba(255, 255, 255, 0.04);
}

.projectBidMore {
  border-top: 1px dashed var(--panel-border);
  padding-top: 12px;
}

.projectBidMoreSummary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  list-style: none;
}

.projectBidMoreSummary::-webkit-details-marker {
  display: none;
}

.projectBidFieldGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.projectBidField {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.projectBidFieldLabel {
  font-size: 12px;
  color: var(--muted);
}

.projectBidFieldValue {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.projectBidEvidence {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.projectBidEmpty {
  padding: 14px;
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.projectBidFactChip {
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.projectBidFactChip-accent {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(217, 119, 6, 0.08);
}

.projectBidStatus-matched {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
}

.projectBidStatus-review {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(217, 119, 6, 0.08);
}

.projectBidStatus-unmatched {
  color: var(--muted);
}

.projectBidConfidence-high {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.22);
}

.projectBidConfidence-medium {
  color: #155e75;
  border-color: rgba(8, 145, 178, 0.22);
}

.projectBidConfidence-review,
.projectBidCategory {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.22);
}

.qualityIssueCard {
  gap: 10px;
}

.qualityIssueHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.qualityIssueTitleWrap {
  display: grid;
  gap: 6px;
}

.qualityIssueStat {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
}

.qualityCauseList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qualityCauseItem {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(29, 78, 216, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.qualitySampleList {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.qualitySampleRow {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .qualitySampleRow {
  background: rgba(255, 255, 255, 0.04);
}

.qualitySampleActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qualitySampleText {
  display: grid;
  gap: 8px;
}

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

.qualitySampleList::-webkit-scrollbar {
  width: 8px;
}

.qualitySampleList::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.3);
}

.qualityBadge {
  font-weight: 700;
}

.qualityBadge-high {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
}

.qualityBadge-medium {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(217, 119, 6, 0.08);
}

.qualityBadge-low,
.qualityBadge-info {
  color: #155e75;
  border-color: rgba(8, 145, 178, 0.24);
  background: rgba(8, 145, 178, 0.08);
}

.qualityCauseBadge {
  color: var(--accent2);
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.08);
}

.reportList {
  display: grid;
  gap: 8px;
}

.reportListItem {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.chartList {
  display: grid;
  gap: 10px;
}

.vizWrap {
  margin-top: 4px;
  padding-top: 2px;
}

.vizSvg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vizAxis {
  stroke: rgba(100, 116, 139, 0.55);
  stroke-width: 1;
}

html[data-report-skin="screen"] .vizAxis {
  stroke: rgba(59, 130, 246, 0.55);
}

.vizGrid {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

html[data-report-skin="screen"] .vizGrid {
  stroke: rgba(59, 130, 246, 0.18);
}

.vizAxisText {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.vizValueText {
  fill: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.vizBar {
  fill: url(#barGradient);
}

.vizBarTrack {
  fill: rgba(148, 163, 184, 0.12);
}

.vizLine {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vizArea {
  fill: rgba(37, 99, 235, 0.12);
}

html[data-report-skin="screen"] .vizLine {
  stroke: #1d4ed8;
  stroke-width: 3.4;
}

html[data-report-skin="screen"] .vizArea {
  fill: rgba(37, 99, 235, 0.18);
}

.vizDot {
  fill: #ffffff;
  stroke: #2563eb;
  stroke-width: 3;
}

.chartRow {
  display: grid;
  gap: 6px;
}

.chartLabel {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  min-height: 18px;
}

.chartBarWrap {
  position: relative;
  min-height: 28px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.chartBar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.8), rgba(59, 130, 246, 0.48));
}

.chartValue {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.timelineList {
  display: grid;
  gap: 10px;
}

.timelineItem {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .timelineItem {
  background: rgba(255, 255, 255, 0.04);
}

.timelineDate {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.timelineBody {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}

.hidden {
  display: none !important;
}

.modalCard {
  width: min(980px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 18px 18px 12px;
  border-radius: 28px;
}

html[data-skin="business"] .modalCard {
  border-radius: 18px;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--table-line);
}

.modalTitle {
  font-size: 18px;
  font-weight: 760;
}

.modalBody {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.kv {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .kv {
  background: rgba(255, 255, 255, 0.04);
}

html[data-skin="business"] .kv {
  border-radius: 14px;
  background: var(--panel-solid);
}

.k {
  color: var(--muted);
  font-size: 12px;
}

.v {
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes theme-bob {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
}

html[data-theme="dark"] .themeToggle.is-animating .themeToggleThumb {
  animation-name: theme-bob-dark;
}

@keyframes theme-bob-dark {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
}

@media (max-width: 1180px) {
  .filters3 {
    grid-template-columns: 1fr;
  }

  .pagerBar {
    grid-template-columns: 1fr;
  }

  .pagerNav {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .topbar {
    top: 10px;
    padding: 16px;
    flex-wrap: wrap;
    align-items: center;
  }

  .noticeBar {
    width: min(1500px, calc(100% - 28px));
    flex-direction: column;
    align-items: start;
  }

  .container {
    margin-top: 18px;
  }

  .panel {
    padding: 18px;
    border-radius: 28px;
  }

  .toolbarHeader {
    align-items: start;
  }

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

  .panelTitle {
    font-size: 24px;
  }

  .menuToggle {
    display: inline-flex !important;
  }

  .topbarMenu {
    width: 100%;
    display: none;
  }

  .topbarMenu.open {
    display: block;
  }

  .actions {
    width: 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--table-line);
    justify-content: flex-start;
  }

  .actionField {
    flex: 1 1 calc(50% - 10px);
    width: auto;
    min-width: 180px;
  }

  .toolbarMeta {
    justify-content: flex-start;
  }

  .schemeSelect {
    width: 100%;
    min-width: 0;
  }

  .field-wide {
    grid-column: auto;
  }

  .insightsGrid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .tableEchoBar {
    grid-template-columns: 1fr;
  }

  .tableEchoBottom {
    grid-template-columns: 1fr;
  }

  .footerPager {
    justify-content: flex-start;
  }

  .reportHero {
    grid-template-columns: 1fr;
  }

  .reportBoard {
    grid-template-columns: 1fr;
  }

  .projectBidResultGrid {
    grid-template-columns: 1fr;
  }

  .projectBidViewBar,
  .projectBidSectionHead,
  .projectBidHead,
  .projectBidMatchHead {
    flex-direction: column;
  }

  .projectBidBadgeRow,
  .projectBidActions {
    justify-content: flex-start;
  }

  .workflowSteps {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 1180px;
  }

  .cellScroll {
    max-width: 300px;
  }

  .kv {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .container,
  .noticeBar {
    width: calc(100% - 16px);
  }

  .topbar {
    margin-top: 8px;
    border-radius: 22px;
  }

  .noticeBar {
    margin-top: 10px;
    border-radius: 14px;
    padding: 12px;
  }

  .title {
    font-size: 20px;
  }

  .subtitle {
    font-size: 12px;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

  .actions > *:not(.themeToggle) {
    flex: 1 1 100%;
  }

  .schemeTools {
    width: 100%;
  }

  .themeToggle {
    width: 46px;
    min-width: 46px;
  }

  .fieldGroup,
  .numGroup {
    padding: 16px;
    border-radius: 20px;
  }

  .filterStageActions {
    width: 100%;
  }

  .filterStageActions .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .searchGrid,
  .numGroup {
    grid-template-columns: 1fr;
  }

  .pageInfo {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .footerStats {
    width: 100%;
  }

  .jumpGroup {
    width: 100%;
  }

  .jumpInput {
    flex: 1 1 auto;
    width: auto;
  }

  .reportCard {
    padding: 14px;
  }

  .projectBidSpotlightTitle {
    font-size: 16px;
  }

  .projectBidViewTabs {
    width: 100%;
  }

  .projectBidExportGroup {
    width: 100%;
  }

  .projectBidDetailGrid,
  .projectBidFieldGrid {
    grid-template-columns: 1fr;
  }

  .projectBidViewToggle {
    align-self: flex-start;
  }

  .timelineItem {
    grid-template-columns: 1fr;
  }

  .insightCard {
    padding: 14px;
    border-radius: 16px;
  }

  .insightValue {
    font-size: 24px;
  }

  .modal {
    padding: 12px;
  }

  .modalCard {
    border-radius: 22px;
    padding: 16px 14px 10px;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .bg,
  .topbar,
  .noticeBar,
  .filters3,
  .pagerBar,
  .tableWrap,
  .tableEchoBar,
  .insightsSection,
  .modal,
  .menuToggle {
    display: none !important;
  }

  .container,
  .panel,
  .reportSection,
  .reportBoard {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .reportCard,
  .insightCard {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #d9dee7 !important;
    background: #fff !important;
  }

  .reportHero {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .reportBoard {
    grid-template-columns: 1fr 1fr !important;
  }

  .chartBarWrap {
    background: #eef2f7 !important;
  }

  .chartBar {
    background: #2a5bd7 !important;
  }
}
