.nonconformity-dashboard {
  --nc-ok: var(--mint);
  --nc-open: #e8664a;
  --nc-shadow: 0 8px 24px rgba(23, 49, 83, 0.07);
  min-width: 0;
}
.nonconformity-dashboard .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.nc-page-header {
  align-items: center;
}
.nc-page-header .section-kicker {
  font: 700 11px Inter;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.nc-data-basis {
  min-width: 235px;
  padding: 13px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f7faff);
  box-shadow: 0 6px 18px #1330530d;
}
.nc-data-basis span,
.nc-data-basis b,
.nc-data-basis small {
  display: block;
}
.nc-data-basis span {
  font-size: 11px;
  color: var(--muted);
}
.nc-data-basis b {
  margin-top: 3px;
  font-size: 14px;
  color: var(--navy2);
}
.nc-data-basis small {
  margin-top: 4px;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #98a4b3;
}
.nc-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 14px;
  padding: 11px 14px;
  border: 1px solid #dae5f2;
  border-radius: 10px;
  background: #f8fbff;
}
.nc-selection-bar > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.nc-selection-bar span,
.nc-selection-bar small {
  font-size: 12px;
  color: #7b899a;
}
.nc-selection-bar b {
  font-size: 14px;
  color: var(--navy2);
}
.nc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.nc-kpi {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 19px 20px 17px;
  border: 1px solid #dfe6ef;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff 58%, #f7faff);
  box-shadow: var(--nc-shadow);
  transition: 0.2s;
}
.nc-kpi:before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}
.nc-kpi:after {
  content: '';
  position: absolute;
  right: -27px;
  top: -30px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #1769e00b;
}
.nc-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #1731531c;
}
.nc-kpi-completed:before,
.nc-kpi-completed .nc-kpi-progress i {
  background: var(--nc-ok);
}
.nc-kpi-incomplete:before,
.nc-kpi-incomplete .nc-kpi-progress i {
  background: var(--nc-open);
}
.nc-kpi-rate:before {
  background: var(--navy2);
}
.nc-kpi-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #5b6879;
}
.nc-kpi-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue);
  font: 800 13px Inter;
}
.nc-kpi-completed .nc-kpi-icon {
  background: #e8f8f4;
  color: var(--nc-ok);
}
.nc-kpi-incomplete .nc-kpi-icon {
  background: #fff0ec;
  color: var(--nc-open);
}
.nc-kpi-rate .nc-kpi-icon {
  background: #e9eef5;
  color: var(--navy2);
}
.nc-kpi-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 13px;
}
.nc-kpi-value strong {
  font: 800 34px Inter;
  letter-spacing: -0.045em;
  color: var(--navy);
}
.nc-kpi-value em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: #7b8796;
}
.nc-kpi p {
  margin: 5px 0 13px;
  font-size: 12px;
  color: #8a96a5;
}
.nc-kpi-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf1f6;
}
.nc-kpi-progress i {
  display: block;
  height: 100%;
  background: var(--blue);
  transition: width 0.55s ease;
}
.nc-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-bottom: 18px;
}
.nc-chart-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe6ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--nc-shadow);
}
.nc-chart-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 19px;
}
.nc-chart-card h2 {
  margin: 0;
  font-size: 17px;
  color: var(--navy);
}
.nc-chart-card header p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #8995a4;
}
.nc-header-metric {
  padding: 5px 9px;
  border-radius: 18px;
  background: #eef4fd;
  color: #4872a5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nc-header-metric.alert {
  background: #fff0ec;
  color: #d5543c;
}
.nc-legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #687587;
  white-space: nowrap;
}
.nc-legend span:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 3px;
}
.nc-legend .completed:before {
  background: var(--nc-ok);
}
.nc-legend .incomplete:before {
  background: var(--nc-open);
}
.nc-volume-chart,
.nc-rate-chart,
.nc-risk-list {
  display: grid;
  gap: 7px;
}
.nc-volume-row {
  display: grid;
  grid-template-columns: 112px minmax(150px, 1fr) 42px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.nc-volume-row:hover,
.nc-volume-row.active,
.nc-rate-row:hover,
.nc-rate-row.active {
  border-color: #cdddf1;
  background: #f5f9ff;
}
.nc-chart-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nc-volume-track {
  height: 16px;
  border-radius: 5px;
  background: #eef2f6;
  overflow: hidden;
}
.nc-volume-total {
  display: flex;
  height: 100%;
  min-width: 3px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 8px #0e2f521f;
}
.nc-volume-total i {
  display: block;
  height: 100%;
  transition: width 0.55s;
}
.nc-volume-complete {
  background: linear-gradient(90deg, #128f76, var(--nc-ok));
}
.nc-volume-incomplete {
  background: linear-gradient(90deg, #df6249, #f1846e);
}
.nc-volume-row > b,
.nc-rate-row > b {
  font: 700 12px Inter;
  text-align: right;
  color: #536175;
}
.nc-gauge-card {
  background: radial-gradient(circle at 50% 47%, #f4f9ff 0, #fff 62%);
}
.nc-gauge-wrap {
  display: grid;
  place-items: center;
}
.nc-gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: conic-gradient(var(--nc-ok) calc(var(--nc-rate) * 1%), #f08a72 0);
  box-shadow: 0 13px 25px #12445d21;
}
.nc-gauge:before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f7faff);
  box-shadow: inset 0 4px 10px #0e2d4d14;
}
.nc-gauge > div {
  position: relative;
  text-align: center;
}
.nc-gauge strong,
.nc-gauge span {
  display: block;
}
.nc-gauge strong {
  font: 800 30px Inter;
  color: var(--navy);
}
.nc-gauge span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #8793a2;
}
.nc-gauge-totals {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: 12px;
  color: #657184;
}
.nc-gauge-totals span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nc-gauge-totals i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.nc-gauge-totals i.completed {
  background: var(--nc-ok);
}
.nc-gauge-totals i.incomplete {
  background: var(--nc-open);
}
.nc-rate-row {
  display: grid;
  grid-template-columns: 25px 102px minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.nc-rank {
  font: 700 11px Inter;
  color: #a0aab6;
}
.nc-rate-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nc-rate-track {
  height: 9px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f5;
}
.nc-rate-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1769e0, #55a0f4);
}
.nc-risk-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(70px, 0.8fr) 35px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.nc-risk-row:hover,
.nc-risk-row.active {
  border-color: #f0d6d0;
  background: #fff8f6;
}
.nc-risk-row span b,
.nc-risk-row span small {
  display: block;
}
.nc-risk-row span b {
  font-size: 13px;
}
.nc-risk-row span small {
  font-size: 11px;
  color: #939eab;
}
.nc-risk-row > i {
  height: 6px;
  border-radius: 6px;
  background: #f1f3f6;
  overflow: hidden;
}
.nc-risk-row > i em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e15d45, #f28b72);
}
.nc-risk-row > strong {
  font: 700 13px Inter;
  text-align: right;
  color: #c94b35;
}
.nc-detail-card {
  scroll-margin-top: 84px;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--nc-shadow);
}
.nc-detail-card > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px;
  border-bottom: 1px solid #e7ecf2;
}
.nc-detail-card h2 {
  margin: 2px 0 3px;
  font-size: 18px;
  color: var(--navy);
}
.nc-detail-card header p {
  margin: 0;
  font-size: 12px;
  color: #8995a4;
}
.nc-detail-eyebrow {
  font: 700 10px Inter;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.nc-filter-bar {
  display: flex;
  gap: 8px;
}
.nc-filter-bar select,
.nc-filter-bar input {
  height: 38px;
  border: 1px solid #dbe2eb;
  border-radius: 7px;
  background: #fff;
  padding: 0 11px;
  font-size: 12px;
  outline: none;
}
.nc-search {
  display: flex;
  align-items: center;
  min-width: 285px;
  height: 38px;
  border: 1px solid #dbe2eb;
  border-radius: 7px;
  padding-left: 10px;
}
.nc-search input {
  min-width: 0;
  width: 100%;
  border: 0;
}
.nc-subsite-filter {
  display: flex;
  gap: 7px;
  padding: 12px 20px 0;
}
.nc-subsite-filter button {
  padding: 7px 12px;
  border: 1px solid #dbe3ed;
  border-radius: 18px;
  background: #fff;
  color: #667386;
  font-size: 12px;
  font-weight: 700;
}
.nc-subsite-filter button.active {
  background: var(--navy2);
  color: #fff;
}
.nc-table-wrap {
  overflow-x: auto;
}
.nc-detail-table {
  min-width: 1120px;
}
.nc-detail-table th,
.nc-detail-table td {
  padding: 11px 12px;
}
.nc-detail-table td {
  max-width: 190px;
  font-size: 12px;
  color: #536074;
}
.nc-detail-table tbody tr {
  cursor: pointer;
  outline: none;
}
.nc-detail-table tbody tr:hover td,
.nc-detail-table tbody tr:focus td {
  background: #f6f9fd;
}
.nc-status {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.nc-status.completed {
  background: #e8f7f2;
  color: #13866f;
}
.nc-status.incomplete {
  background: #fff0ec;
  color: #cf4d35;
}
.nc-status.overdue {
  background: #fff5df;
  color: #b96b00;
}
.nc-document-number {
  display: block;
  font: 700 11px Inter;
  color: #274d7b;
  white-space: nowrap;
}
.nc-document-number + small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8d99a7;
}
.nc-finding-cell {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.nc-empty {
  padding: 44px !important;
  text-align: center;
  color: #8b97a5;
}
.nc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-top: 1px solid #e7ecf2;
  color: #8793a2;
  font-size: 12px;
}
.nc-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nc-pagination button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dbe2eb;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.nc-pagination button:disabled {
  opacity: 0.45;
}
.nc-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #06162873;
  backdrop-filter: blur(2px);
}
.nc-detail-drawer {
  position: fixed;
  z-index: 150;
  top: 0;
  right: 0;
  width: min(570px, 92vw);
  height: 100vh;
  overflow: auto;
  padding: 30px;
  background: #f7f9fc;
  box-shadow: -18px 0 55px #00142a3d;
  animation: nc-in 0.25s;
}
.nc-drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid #dce4ed;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
}
.nc-drawer-head p {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}
.nc-drawer-head h2 {
  margin: 0;
  font-size: 23px;
  color: var(--navy);
}
.nc-drawer-number {
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #d9e4f1;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f6ff, #fff);
}
.nc-drawer-number span,
.nc-drawer-number b {
  display: block;
}
.nc-drawer-number b {
  margin-top: 4px;
  font: 800 16px Inter;
  color: #23538b;
}
.nc-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  background: #e0e6ed;
}
.nc-detail-meta div {
  padding: 12px 14px;
  background: #fff;
}
.nc-detail-meta dt {
  font-size: 11px;
  color: #8a96a4;
}
.nc-detail-meta dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.nc-drawer-sections {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.nc-drawer-sections section {
  padding: 16px;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  background: #fff;
}
.nc-drawer-sections h3 {
  margin: 0 0 8px;
  font-size: 13px;
}
.nc-drawer-sections p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.65;
}
.nc-load-error {
  padding: 40px;
  border: 1px solid #f0d7d1;
  border-radius: 12px;
  background: #fff8f6;
  text-align: center;
}
@keyframes nc-in {
  from {
    transform: translateX(35px);
    opacity: 0;
  }
}
@media (max-width: 1180px) {
  .nc-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nc-chart-grid {
    grid-template-columns: 1fr;
  }
  .nc-detail-card > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .nc-filter-bar {
    width: 100%;
  }
  .nc-search {
    flex: 1;
  }
}
@media (max-width: 760px) {
  .nc-page-header {
    display: block;
  }
  .nc-data-basis {
    margin-top: 15px;
  }
  .nc-selection-bar small {
    display: none;
  }
  .nc-kpi-grid {
    gap: 10px;
  }
  .nc-chart-card {
    padding: 16px;
  }
  .nc-volume-row {
    grid-template-columns: 98px minmax(130px, 1fr) 38px;
  }
  .nc-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nc-filter-bar label,
  .nc-filter-bar select {
    width: 100%;
  }
  .nc-search {
    grid-column: 1/-1;
    min-width: 0;
  }
  .nc-detail-meta {
    grid-template-columns: 1fr;
  }
  .nc-detail-drawer {
    width: 100vw;
    max-width: none;
    padding: 24px 16px;
  }
}
@media (max-width: 480px) {
  .nc-kpi-grid {
    grid-template-columns: 1fr;
  }
  .nc-kpi {
    min-height: 132px;
  }
  .nc-gauge {
    width: 154px;
    height: 154px;
  }
  .nc-rate-row {
    grid-template-columns: 22px 92px minmax(75px, 1fr) 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nc-kpi,
  .nc-kpi-progress i,
  .nc-volume-total i,
  .nc-detail-drawer {
    transition: none;
    animation: none;
  }
  .nc-kpi:hover {
    transform: none;
  }
}

/* 2026-09-14 integrated dashboard controls */
.nonconformity-dashboard .nc-kpi {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.nonconformity-dashboard .nc-kpi.selected {
  border-color: #9fc2f0;
  box-shadow:
    0 0 0 2px #1769e010,
    var(--nc-shadow);
}
.nonconformity-dashboard .nc-kpi-note {
  display: block;
  margin: 5px 0 13px;
  font-size: 12px;
  color: #8a96a5;
}
.nc-filter-panel {
  margin-bottom: 14px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--nc-shadow);
}
.nc-filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 9px 14px;
  border-top: 1px solid #edf1f5;
}
.nc-filter-row:first-child {
  border-top: 0;
}
.nc-filter-row > b {
  flex: 0 0 45px;
  color: var(--navy2);
  font-size: 12px;
}
.nc-filter-row > small {
  margin-left: auto;
  color: #8794a4;
  font-size: 11px;
}
.nc-filter-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8793a2;
  font-size: 10px;
}
.nc-filter-row select,
.nc-filter-row input {
  height: 34px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fff;
  padding: 0 9px;
  color: #4c5b6f;
  font-size: 11px;
  outline: none;
}
.nc-filter-row select:focus,
.nc-filter-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1769e012;
}
.nc-period-row > i {
  color: #b0bac5;
  font-style: normal;
}
.nc-preset-buttons,
.nc-site-chips,
.nc-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nc-preset-buttons button,
.nc-site-chips button,
.nc-status-chips button {
  height: 31px;
  border: 1px solid #dbe3ed;
  border-radius: 17px;
  background: #fff;
  padding: 0 11px;
  color: #657387;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.nc-preset-buttons button:hover,
.nc-site-chips button:hover,
.nc-status-chips button:hover {
  border-color: #9ebce2;
  color: #2c65a9;
}
.nc-preset-buttons button.active,
.nc-site-chips button.active,
.nc-status-chips button.active {
  border-color: var(--navy2);
  background: var(--navy2);
  color: #fff;
}
.nc-status-chips button.alert {
  color: #c95742;
}
.nc-status-chips button.alert.active {
  border-color: #d95d45;
  background: #d95d45;
  color: #fff;
}
.nc-date-input input {
  width: 125px;
}
.nc-active-context {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  border: 1px solid #d9e4f1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 13px;
}
.nc-active-context > div:first-child {
  min-width: 210px;
}
.nc-active-context > div:first-child b,
.nc-active-context > div:first-child span {
  display: block;
}
.nc-active-context > div:first-child b {
  font: 700 12px Inter;
  color: #294e7b;
}
.nc-active-context > div:first-child span {
  margin-top: 2px;
  color: #8492a3;
  font-size: 10px;
}
.nc-active-context > strong {
  margin-left: auto;
  color: var(--navy2);
  font: 800 15px Inter;
}
.nc-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nc-active-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  background: #eaf2ff;
  padding: 5px 9px;
  color: #396b9f;
  font-size: 10px;
  font-weight: 700;
}
.nc-active-chips button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #6686aa;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.nc-active-context .outline-btn {
  height: 32px;
  padding: 0 11px;
}
.nc-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.72fr);
  gap: 16px;
  margin-bottom: 18px;
}
.nc-compare-card {
  min-width: 0;
}
.nc-chart-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.nc-chart-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8793a2;
  font-size: 10px;
}
.nc-chart-controls select {
  height: 34px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fff;
  padding: 0 8px;
  color: #4d5d70;
  font-size: 11px;
  font-weight: 700;
}
.nc-compare-chart {
  display: grid;
  gap: 5px;
}
.nc-compare-row {
  display: grid;
  grid-template-columns: 28px minmax(105px, 145px) minmax(120px, 1fr) 66px minmax(140px, auto);
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px;
  text-align: left;
  cursor: pointer;
}
.nc-compare-row:hover,
.nc-compare-row.active {
  border-color: #cbdcf1;
  background: #f5f9ff;
}
.nc-compare-label {
  overflow: hidden;
  color: #33445a;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nc-compare-track {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f5;
}
.nc-compare-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s;
}
.nc-compare-track i.total {
  background: linear-gradient(90deg, #1769e0, #55a0f4);
}
.nc-compare-track i.completed {
  background: linear-gradient(90deg, #118b74, #25b79a);
}
.nc-compare-track i.incomplete {
  background: linear-gradient(90deg, #dc5c45, #ef806b);
}
.nc-compare-track i.rate {
  background: linear-gradient(90deg, #1d4f83, #2c7cd0);
}
.nc-compare-row > b {
  color: #354c67;
  font: 700 12px Inter;
  text-align: right;
  white-space: nowrap;
}
.nc-compare-row > small {
  overflow: hidden;
  color: #8b97a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nc-empty-chart {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: #8c98a7;
  font-size: 12px;
}
.nc-trend-card {
  margin-bottom: 18px;
}
.nc-trend-scroll {
  overflow-x: auto;
  padding: 2px 2px 8px;
}
.nc-trend-chart {
  display: grid;
  grid-template-columns: repeat(var(--nc-trend-count), minmax(var(--nc-trend-width), 1fr));
  gap: 7px;
  min-width: max(100%, calc(var(--nc-trend-count) * var(--nc-trend-width)));
  height: 245px;
  border-bottom: 1px solid #dfe5ec;
  background: repeating-linear-gradient(to top, transparent 0, transparent 48px, #edf1f5 49px);
}
.nc-trend-column {
  display: grid;
  grid-template-rows: 24px 1fr 28px;
  align-items: end;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  padding: 0 3px;
  cursor: pointer;
}
.nc-trend-column:hover {
  border-color: #cdddf1;
  background: #f6f9fd;
}
.nc-trend-column > b {
  align-self: center;
  overflow: hidden;
  color: #536276;
  font: 700 10px Inter;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nc-trend-column > span {
  display: flex;
  height: 180px;
  align-items: flex-end;
  justify-content: center;
}
.nc-trend-column i {
  display: block;
  width: min(26px, 70%);
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  transition: height 0.35s;
}
.nc-trend-column i.total {
  background: linear-gradient(#55a0f4, #1769e0);
}
.nc-trend-column i.completed {
  background: linear-gradient(#38bea3, #15947b);
}
.nc-trend-column i.incomplete {
  background: linear-gradient(#f08c77, #dd5d46);
}
.nc-trend-column i.rate {
  background: linear-gradient(#4c8bd0, #173f6c);
}
.nc-trend-column > small {
  align-self: center;
  overflow: hidden;
  color: #738195;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nc-detail-table th button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nc-detail-table th button:hover {
  color: var(--blue);
}
.nc-overdue-date {
  color: #c34e39;
  font-weight: 700;
}
.nc-status.quality {
  background: #f3edff;
  color: #7654a8;
}
.nc-quality-warning {
  margin: 13px 0 0;
  border: 1px solid #eadcf8;
  border-radius: 8px;
  background: #faf7ff;
  padding: 10px 12px;
  color: #6f548f;
  font-size: 11px;
  line-height: 1.5;
}
.nc-data-quality {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
  padding: 4px 3px;
  color: #8793a2;
  font-size: 10px;
}
.nc-data-quality span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5b7c6f;
  font-weight: 700;
}
.nc-data-quality i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
@media (max-width: 1320px) {
  .nc-period-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nc-period-row > b {
    padding-top: 9px;
  }
  .nc-filter-row > small {
    flex-basis: 100%;
    margin-left: 54px;
  }
  .nc-compare-row {
    grid-template-columns: 25px 115px minmax(100px, 1fr) 62px;
  }
  .nc-compare-row > small {
    display: none;
  }
}
@media (max-width: 1100px) {
  .nc-analysis-grid {
    grid-template-columns: 1fr;
  }
  .nc-chart-controls {
    flex-wrap: wrap;
  }
  .nc-filter-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nc-filter-row > b {
    padding-top: 7px;
  }
  .nc-site-chips {
    flex: 1;
  }
  .nc-active-context {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nc-active-context > strong {
    margin-left: 0;
  }
  .nc-active-chips {
    flex: 1 1 45%;
  }
}
@media (max-width: 760px) {
  .nc-filter-row > b {
    flex-basis: 100%;
  }
  .nc-filter-row > small {
    margin-left: 0;
  }
  .nc-period-row label.nc-date-input {
    flex: 1;
  }
  .nc-date-input input {
    width: 100%;
  }
  .nc-active-context > div:first-child {
    min-width: 0;
  }
  .nc-active-context {
    gap: 8px;
  }
  .nc-active-chips {
    flex-basis: 100%;
    order: 3;
  }
  .nc-active-context > strong {
    margin-left: auto;
  }
  .nc-compare-row {
    grid-template-columns: 24px 95px minmax(80px, 1fr) 56px;
  }
  .nc-chart-card > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .nc-chart-controls {
    width: 100%;
  }
  .nc-chart-controls label {
    flex: 1;
  }
  .nc-chart-controls select {
    flex: 1;
  }
  .nc-trend-chart {
    height: 225px;
  }
  .nc-trend-column > span {
    height: 160px;
  }
  .nc-data-quality {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .nc-period-row > i {
    display: none;
  }
  .nc-preset-buttons {
    width: 100%;
  }
  .nc-filter-row {
    padding: 10px;
  }
  .nc-site-chips button,
  .nc-preset-buttons button,
  .nc-status-chips button {
    font-size: 10px;
  }
  .nc-compare-row {
    grid-template-columns: 22px 82px minmax(68px, 1fr) 52px;
    gap: 5px;
    padding: 6px 2px;
  }
  .nc-compare-label {
    font-size: 11px;
  }
  .nc-analysis-grid {
    gap: 10px;
  }
}
