:root {
  --bg-1: #fff8e8;
  --bg-2: #ffe1ab;
  --bg-3: #ffc655;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-line: rgba(242, 153, 40, 0.35);
  --ink-1: #5f2f00;
  --ink-2: #8a5116;
  --brand: #f28922;
  --brand-2: #ffb531;
  --accent: #ff6b1c;
  --ok: #2f9a4d;
  --danger: #b93c25;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink-1);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
  overflow-x: hidden;
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.7;
}

.glow-a {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -80px;
  background: radial-gradient(circle at 35% 35%, #fff0d4 0%, #ffb941 66%, transparent 100%);
}

.glow-b {
  width: 460px;
  height: 460px;
  right: -170px;
  top: 90px;
  background: radial-gradient(circle at 35% 35%, #ffe6bf 0%, #ffa42d 66%, transparent 100%);
}

.grid-mask {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(242, 153, 40, 0.12) 0,
      rgba(242, 153, 40, 0.12) 1px,
      transparent 1px,
      transparent 56px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(242, 153, 40, 0.12) 0,
      rgba(242, 153, 40, 0.12) 1px,
      transparent 1px,
      transparent 56px
    );
}

.top-nav {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 28px));
  margin: 16px auto 0;
  border-radius: 18px;
  background: rgba(255, 250, 238, 0.9);
  border: 1px solid var(--panel-line);
  box-shadow: 0 14px 28px rgba(121, 58, 0, 0.12);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.brand-mini {
  margin: 0 0 4px;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.1em;
  color: #a3661d;
  font-weight: 700;
  font-size: 0.82rem;
}

.brand-block h1 {
  margin: 0;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: clamp(1.28rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: #8d4608;
}

.menu {
  display: flex;
  gap: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-form {
  margin: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #985013;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
}

.menu a.active {
  background: linear-gradient(135deg, #f28922 0%, #ffb531 100%);
  color: #fff;
}

.menu a:not(.active):hover {
  border-color: rgba(242, 153, 40, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 28px));
  margin: 14px auto 34px;
  display: grid;
  gap: 14px;
}

.dashboard-page {
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8e8 0%, #ffe6be 100%);
}

.dashboard-top-nav {
  margin-top: 10px;
}

.dashboard-user {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #93571c;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 24px));
  height: calc(100vh - 104px);
  margin: 10px auto 10px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.dashboard-toolbar {
  padding: 12px 14px;
}

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

.dashboard-toolbar-top .home-status {
  margin: 0;
}

.toolbar-meta {
  margin: 0;
  font-size: 0.83rem;
  color: #8a5e33;
}

.dashboard-toolbar-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) minmax(110px, 150px) minmax(130px, 170px);
  gap: 8px;
  align-items: end;
}

.compact-field span {
  font-size: 0.78rem;
}

.compact-field input {
  padding: 7px 8px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.compact-kpi-card {
  padding: 10px 12px;
}

.compact-kpi-card .kpi-title {
  font-size: 0.78rem;
}

.compact-kpi-card .kpi-value {
  margin: 5px 0 2px;
  font-size: clamp(1.1rem, 1.85vw, 1.65rem);
}

.compact-kpi-card .kpi-sub {
  font-size: 0.75rem;
}

.progress-kpi-card .progress-track {
  margin-top: 4px;
}

.dashboard-table-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.dashboard-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin-top: 6px;
}

.dashboard-table-wrap .history-table th,
.dashboard-table-wrap .history-table td {
  padding: 8px 9px;
  font-size: 0.81rem;
}

.hero-card,
.panel,
.kpi-card {
  border-radius: 18px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  box-shadow: 0 14px 28px rgba(121, 58, 0, 0.1);
}

.hero-card {
  padding: 18px;
}

.hero-tag {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #9b5b16;
  letter-spacing: 0.08em;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.hero-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
}

.home-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.home-status.neutral {
  color: #8a5f2e;
}

.home-status.loading {
  color: #a56f1a;
}

.home-status.success {
  color: var(--ok);
}

.home-status.error {
  color: var(--danger);
}

.panel {
  padding: 16px;
}

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

.panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-2);
}

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

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

.field span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.field input,
.text-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(242, 153, 40, 0.4);
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #6a3907;
  background: rgba(255, 255, 255, 0.9);
}

.field input:focus,
.text-input:focus {
  outline: 2px solid rgba(255, 165, 54, 0.25);
}

.action-cell {
  align-self: end;
}

.query-panel .tool-buttons {
  margin-top: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 58%, var(--brand-2) 100%);
}

.btn-secondary {
  color: #914b0f;
  border: 1px solid rgba(242, 153, 40, 0.4);
  background: rgba(255, 255, 255, 0.95);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.target-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.field-inline {
  min-width: min(360px, 100%);
}

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

.chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #8a4c0f;
  border: 1px solid rgba(242, 153, 40, 0.3);
  background: rgba(255, 240, 214, 0.82);
}

.chip.empty {
  color: #8d6d4a;
  background: rgba(222, 208, 185, 0.52);
  border-color: rgba(161, 141, 114, 0.3);
}

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

.kpi-card {
  padding: 14px;
}

.kpi-title {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.87rem;
}

.kpi-value {
  margin: 8px 0 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  color: #7f3900;
  font-weight: 700;
}

.kpi-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #936335;
}

.progress-track {
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(242, 153, 40, 0.18);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7c1a, #ffcb47);
}

.history-panel canvas {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(242, 153, 40, 0.25);
}

.table-wrap {
  margin-top: 10px;
  max-height: 340px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(242, 153, 40, 0.25);
  background: rgba(255, 255, 255, 0.72);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.history-table th,
.history-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(242, 153, 40, 0.2);
  text-align: left;
  font-size: 0.85rem;
}

.history-table th {
  position: sticky;
  top: 0;
  background: #fff6e4;
  color: #8f4d12;
  z-index: 1;
}

.target-input {
  width: 120px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(242, 153, 40, 0.42);
  padding: 6px 8px;
  font-size: 0.84rem;
  color: #713706;
  background: rgba(255, 255, 255, 0.95);
}

.target-input:focus {
  outline: 2px solid rgba(255, 165, 54, 0.25);
}

.mini-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(242, 153, 40, 0.18);
  overflow: hidden;
  margin-bottom: 4px;
  min-width: 100px;
}

.mini-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7c1a, #ffcb47);
}

.mini-progress-text {
  font-size: 0.75rem;
  color: #8f4d12;
}

.settings-actions {
  margin-bottom: 10px;
}

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

.meta-grid p {
  margin: 0;
  font-size: 0.86rem;
  color: #8a571f;
}

.settings-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

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

.store-list {
  border-radius: 12px;
  border: 1px solid rgba(242, 153, 40, 0.24);
  background: rgba(255, 255, 255, 0.8);
  max-height: 420px;
  overflow: auto;
  padding: 10px;
}

.store-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid rgba(242, 153, 40, 0.18);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
}

.store-option + .store-option {
  margin-top: 8px;
}

.store-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f28922;
  margin-top: 2px;
}

.store-name {
  margin: 0;
  font-size: 0.88rem;
  color: #7d420b;
  word-break: break-word;
}

.store-id {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #95673b;
  font-family: "Rajdhani", sans-serif;
}

.store-hint {
  margin: 8px 0;
  font-size: 0.86rem;
  color: #8a5e33;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.login-card {
  width: min(460px, 100%);
  border-radius: 18px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  box-shadow: 0 14px 28px rgba(121, 58, 0, 0.12);
  padding: 22px 18px;
}

.login-card h1 {
  margin: 0;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.16;
  color: #8d4608;
}

.login-subtitle {
  margin: 10px 0 6px;
  font-size: 0.88rem;
  color: #8a571f;
}

.login-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.login-btn {
  margin-top: 4px;
}

@media (max-width: 1320px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .dashboard-page {
    height: auto;
    overflow: auto;
  }

  .dashboard-shell {
    height: auto;
    grid-template-rows: auto;
  }

  .dashboard-toolbar-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-table-panel {
    min-height: 420px;
  }

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

  .action-cell {
    grid-column: span 2;
  }

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

@media (max-width: 720px) {
  .dashboard-toolbar-top {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .menu {
    width: 100%;
  }

  .menu a {
    flex: 1;
  }

  .nav-right {
    flex-direction: column;
    align-items: stretch;
  }

  .logout-form .btn {
    width: 100%;
  }

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

  .action-cell {
    grid-column: auto;
  }

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

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

/* Dashboard V2 */
.dashboard-v2 {
  background: linear-gradient(180deg, #fff8ec 0%, #ffeecf 100%);
}

.dashboard-v2.dashboard-page {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-v2 .dashboard-v2-nav {
  width: min(1460px, calc(100% - 20px));
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(136, 67, 0, 0.1);
}

.dashboard-v2 .dashboard-shell.dashboard-v2-shell {
  width: min(1460px, calc(100% - 20px));
  min-height: calc(100vh - 92px);
  margin: 8px auto;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
}

.dashboard-v2 .panel,
.dashboard-v2 .kpi-card {
  border-radius: 14px;
  border-color: rgba(224, 139, 33, 0.3);
  box-shadow: 0 6px 18px rgba(142, 75, 12, 0.08);
}

.dashboard-v2 .dashboard-banner {
  padding: 10px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-v2 .dashboard-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: #7e3f05;
}

.dashboard-v2 .dashboard-subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #936438;
}

.dashboard-v2 .dashboard-banner .home-status {
  margin: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dashboard-v2 .dashboard-control-panel {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, 0.95fr);
  gap: 10px;
}

.dashboard-v2 .control-group {
  display: grid;
  gap: 8px;
  align-items: end;
}

.dashboard-v2 .control-group-main {
  grid-template-columns: minmax(150px, 180px) minmax(150px, 180px) minmax(118px, 150px);
}

.dashboard-v2 .control-group-filter {
  grid-template-columns: minmax(190px, 1fr) auto auto;
}

.dashboard-v2 .table-search-field {
  min-width: 180px;
}

.dashboard-v2 .control-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed rgba(205, 130, 37, 0.35);
  padding-top: 7px;
}

.dashboard-v2 .toolbar-meta {
  font-size: 0.78rem;
}

.dashboard-v2 .compact-field span {
  font-size: 0.74rem;
}

.dashboard-v2 .compact-field input,
.dashboard-v2 .compact-field .text-input {
  height: 34px;
  padding: 6px 8px;
  font-size: 0.84rem;
}

.dashboard-v2 .btn {
  height: 34px;
  padding: 0 11px;
  font-size: 0.82rem;
  border-radius: 9px;
}

.dashboard-v2 .btn-ghost {
  color: #925015;
  border: 1px dashed rgba(217, 139, 36, 0.45);
  background: rgba(255, 255, 255, 0.7);
}

.dashboard-v2 .toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid rgba(222, 146, 45, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: #85480f;
  font-size: 0.77rem;
  cursor: pointer;
  user-select: none;
}

.dashboard-v2 .toggle-pill input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #f28922;
}

.dashboard-v2 .dashboard-kpi-grid-v2 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-v2 .compact-kpi-card {
  padding: 8px 10px;
}

.dashboard-v2 .compact-kpi-card .kpi-title {
  font-size: 0.74rem;
}

.dashboard-v2 .compact-kpi-card .kpi-value {
  margin: 4px 0 2px;
  font-size: clamp(1.02rem, 1.5vw, 1.4rem);
}

.dashboard-v2 .compact-kpi-card .kpi-sub {
  font-size: 0.72rem;
}

.dashboard-v2 .progress-kpi-card .progress-track {
  margin-top: 2px;
  height: 8px;
}

.dashboard-v2 .dashboard-table-panel-v2 {
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.dashboard-v2 .dashboard-table-panel-v2.is-loading .dashboard-table-wrap {
  opacity: 0.58;
  transition: opacity 0.18s ease;
}

.dashboard-v2 .dashboard-table-panel-v2 .panel-head {
  margin-bottom: 6px;
}

.dashboard-v2 .dashboard-table-panel-v2 .panel-head h3 {
  font-size: 0.95rem;
}

.dashboard-v2 .dashboard-table-panel-v2 .panel-head p {
  font-size: 0.76rem;
}

.dashboard-v2 .dashboard-table-wrap {
  flex: initial;
  margin-top: 0;
  max-height: none;
  overflow: visible;
  border-radius: 10px;
  border: 1px solid rgba(216, 137, 36, 0.3);
  background: #fffcf6;
}

.dashboard-v2 .table-pagination {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-v2 .page-size-group,
.dashboard-v2 .page-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-v2 .page-size-group label {
  font-size: 0.76rem;
  color: #8d5a2a;
}

.dashboard-v2 .page-size-select {
  min-width: 92px;
  height: 32px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.dashboard-v2 .page-info {
  min-width: 108px;
  text-align: center;
  font-size: 0.78rem;
  color: #88531e;
}

.dashboard-v2 .dashboard-history-table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-v2 .dashboard-history-table th,
.dashboard-v2 .dashboard-history-table td {
  padding: 5px 8px;
  font-size: 0.76rem;
  line-height: 1.3;
  border-bottom: 1px solid rgba(220, 142, 41, 0.2);
  vertical-align: middle;
  white-space: nowrap;
}

.dashboard-v2 .dashboard-history-table th {
  top: 0;
  position: sticky;
  z-index: 5;
  background: #ffe9c3;
  color: #8a4b10;
  font-weight: 700;
  padding-top: 6px;
  padding-bottom: 6px;
}

.dashboard-v2 .dashboard-history-table td {
  background: rgba(255, 255, 255, 0.95);
}

.dashboard-v2 .dashboard-history-table tr:hover td {
  background: #fff5e4;
}

.dashboard-v2 .dashboard-history-table th:first-child,
.dashboard-v2 .dashboard-history-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
}

.dashboard-v2 .dashboard-history-table th:first-child {
  z-index: 7;
}

.dashboard-v2 .dashboard-history-table td:first-child {
  background: #fffdf8;
}

.dashboard-v2 .dashboard-history-table tr:hover td:first-child {
  background: #fff2de;
}

.dashboard-v2 .dashboard-history-table .table-summary-row td {
  position: sticky;
  top: 33px;
  z-index: 4;
  background: #ffeecf;
  font-weight: 700;
}

.dashboard-v2 .dashboard-history-table .table-summary-row td:first-child {
  z-index: 8;
  background: #ffe4b3;
}

.dashboard-v2 .store-cell {
  min-width: 180px;
}

.dashboard-v2 .store-main {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a3e06;
}

.dashboard-v2 .store-sub {
  margin: 1px 0 0;
  font-size: 0.68rem;
  color: #9d6c3f;
  font-family: "Rajdhani", sans-serif;
}

.dashboard-v2 .target-input {
  width: 96px;
  padding: 4px 6px;
  height: 28px;
  font-size: 0.74rem;
}

.dashboard-v2 .mini-progress {
  margin-top: 3px;
  margin-bottom: 0;
  min-width: 84px;
  height: 6px;
}

.dashboard-v2 .progress-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 20px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.dashboard-v2 .progress-tag.good {
  color: #1f8b46;
  background: rgba(47, 154, 77, 0.13);
  border-color: rgba(47, 154, 77, 0.25);
}

.dashboard-v2 .progress-tag.mid {
  color: #9a6008;
  background: rgba(242, 153, 40, 0.14);
  border-color: rgba(242, 153, 40, 0.28);
}

.dashboard-v2 .progress-tag.low {
  color: #b84a17;
  background: rgba(230, 103, 60, 0.12);
  border-color: rgba(230, 103, 60, 0.25);
}

.dashboard-v2 .progress-tag.neutral {
  color: #7f6647;
  background: rgba(205, 184, 151, 0.25);
  border-color: rgba(168, 142, 103, 0.3);
}

.dashboard-v2 .empty-row td {
  text-align: center;
  color: #8f6840;
  padding: 16px 8px;
  background: #fff9ee;
}

@media (max-width: 1360px) {
  .dashboard-v2 .dashboard-kpi-grid-v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-v2 .dashboard-control-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .dashboard-v2.dashboard-page {
    height: auto;
    overflow: auto;
  }

  .dashboard-v2 .dashboard-shell.dashboard-v2-shell {
    height: auto;
    grid-template-rows: auto;
  }

  .dashboard-v2 .dashboard-v2-nav {
    width: min(1220px, calc(100% - 20px));
  }

  .dashboard-v2 .dashboard-shell.dashboard-v2-shell {
    width: min(1220px, calc(100% - 20px));
  }

  .dashboard-v2 .control-group-main,
  .dashboard-v2 .control-group-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-v2 .dashboard-kpi-grid-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-v2 .dashboard-table-panel-v2 {
    min-height: 440px;
  }
}

@media (max-width: 720px) {
  .dashboard-v2 .dashboard-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-v2 .dashboard-title {
    font-size: 1rem;
  }

  .dashboard-v2 .control-group-main,
  .dashboard-v2 .control-group-filter {
    grid-template-columns: 1fr;
  }

  .dashboard-v2 .control-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-v2 .dashboard-kpi-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-v2 .dashboard-history-table {
    min-width: 860px;
  }
}
