.nc-report-workspace {
  --ncr-line: #c6d1df;
  --ncr-fill: #e9f1fa;
  --ncr-read: #edf0f4;
  min-width: 0;
  display: grid;
  gap: 6px;
  container: ncr-workspace / inline-size;
}
.nc-report-workspace .ncr-header {
  display: flex;
  position: relative;
  min-height: 70px;
  margin: 0 0 2px;
  padding: 10px 14px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfdfef;
  border-radius: 8px;
  background: linear-gradient(100deg, #fff 20%, #eef5fc);
}
.ncr-header-copy {
  display: flex;
  z-index: 1;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.ncr-header h1 {
  margin: 0;
  font-size: 1.24rem;
  color: #183a5e;
}
.ncr-header p {
  margin: 3px 0 0;
  color: #476481;
  font-size: 0.78rem;
}
.ncr-header-icon,
.ncr-empty-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #245a89;
  background: #e7f1fc;
}
.ncr-icon {
  display: block;
  width: 19px;
  height: 19px;
}
.ncr-header-art {
  position: absolute;
  inset: auto 5px 0 auto;
  width: 155px;
  height: 69px;
  pointer-events: none;
}
.ncr-tabs,
.ncr-detail-tabs,
.ncr-pages,
.ncr-bar,
.ncr-bar > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.ncr-tabs,
.ncr-detail-tabs {
  border-bottom: 1px solid var(--ncr-line);
}
.ncr-detail-tabs button[aria-pressed='true'] {
  color: #12375e;
  background: #fff;
  border-color: #8da6c4;
  box-shadow: inset 0 2px #315d8c;
  font-weight: 700;
}
.nc-report-workspace .ncr-tabs {
  gap: 6px;
  padding: 2px 0 7px;
}
.nc-report-workspace .ncr-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 6px;
  color: #304e6d;
  background: #fff;
}
.nc-report-workspace .ncr-tabs button[aria-pressed='true'] {
  color: #164a7b;
  border-color: #93b8dd;
  background: #e8f2fd;
  font-weight: 700;
}
.ncr-tabs .ncr-icon {
  width: 16px;
  height: 16px;
}
.ncr-bar {
  justify-content: space-between;
  min-width: 0;
}
.ncr-bar :is(h2, h3, h4) {
  margin: 0;
  font-size: 0.82rem;
  color: #173657;
}
.ncr-bar :is(h3, h4)::before {
  content: '\25B8';
  color: #284d73;
  margin-right: 4px;
}
.ncr-topbar {
  margin: 0 0 5px;
}
.ncr-topbar h2 {
  font-size: 1rem;
}
.nc-report-workspace
  :is(.ncr-bar, .ncr-tabs, .ncr-detail-tabs, .ncr-filters, .ncr-pages)
  :is(button, summary) {
  min-height: 24px;
  min-width: max-content;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
  line-height: 1.2;
}
.ncr-workbench {
  --ncr-resize-gutter: 10px;
  --ncr-list-space: 235px;
  --ncr-detail-track: clamp(
    325px,
    var(--ncr-detail-width, 34%),
    min(66%, calc(100% - var(--ncr-list-space) - var(--ncr-resize-gutter)))
  );
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ncr-resize-gutter) var(--ncr-detail-track);
  align-items: stretch;
  min-width: 0;
}
.ncr-workbench[data-ncr-layout='list'] {
  --ncr-site-width: clamp(140px, 15%, 205px);
  --ncr-list-space: calc(235px + var(--ncr-site-width));
  grid-template-columns:
    var(--ncr-site-width) minmax(0, 1fr) var(--ncr-resize-gutter)
    var(--ncr-detail-track);
}
.ncr-site-panel {
  margin-inline-end: 6px;
}
.ncr-inspector {
  container: ncr-inspector / inline-size;
  grid-column: -2;
}
.ncr-resize-handle {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  touch-action: none;
  user-select: none;
}
.ncr-resize-handle::before {
  content: '';
  border-radius: 4px;
  background: #879fb9;
}
.ncr-resize-handle:focus-visible {
  outline: 2px solid #315d8c;
  outline-offset: -2px;
}
.ncr-resize-handle:is([data-ncr-resize='width'], [data-ncr-resize='preview']) {
  cursor: col-resize;
}
.ncr-resize-handle:is([data-ncr-resize='width'], [data-ncr-resize='preview'])::before {
  width: 3px;
  height: 32px;
}
.ncr-resize-handle[data-ncr-resize='height'] {
  height: var(--ncr-resize-gutter);
  border-block: 1px solid var(--ncr-line);
  background-color: #f3f7fc;
  cursor: row-resize;
}
.ncr-resize-handle[data-ncr-resize='height']::before {
  width: 32px;
  height: 3px;
}
.ncr-resize-handle:is(:hover, :focus-visible) {
  background-color: #e1ecfa;
}
.ncr-panel {
  min-width: 0;
  border: 1px solid var(--ncr-line);
  background: #fff;
}
.ncr-panel > .ncr-bar,
[data-ncr-photo-panel] > .ncr-bar {
  min-height: 29px;
  padding: 3px 5px;
  border-bottom: 1px solid var(--ncr-line);
}
.ncr-workbench > .ncr-panel > .ncr-bar {
  box-sizing: border-box;
  min-height: 45px;
}
.ncr-panel > .ncr-bar span {
  font-size: 0.73rem;
  white-space: nowrap;
}
.ncr-notice {
  margin: 5px 0 7px;
  padding: 5px 7px;
  background: #fff5d7;
  border: 1px solid #edce81;
  font-size: 0.76rem;
}
.ncr-notice b {
  color: #a12611;
}
.ncr-message,
[data-ncr-notice] {
  padding: 5px 7px;
  color: #3e5670;
}
[data-ncr-notice]:empty {
  margin: 0;
  padding: 0;
}
.ncr-filters {
  display: grid;
  grid-template-columns: minmax(192px, 1fr) minmax(118px, 0.65fr) minmax(285px, 1.4fr) minmax(
      180px,
      0.95fr
    );
  gap: 4px 10px;
  align-items: center;
  padding: 5px 7px;
  background: #e2ecfa;
  border: 1px solid var(--ncr-line);
}
.ncr-filters[data-ncr-filter-tab='action'] {
  grid-template-columns: minmax(118px, 0.65fr) minmax(285px, 1.4fr) minmax(192px, 1fr) minmax(
      155px,
      0.9fr
    );
}
.ncr-filters[data-ncr-filter-tab='list'] {
  grid-template-columns:
    minmax(118px, 0.65fr) minmax(285px, 1.4fr) minmax(140px, 0.9fr) minmax(170px, 1fr)
    minmax(145px, 0.85fr);
  margin-bottom: 6px;
}
.ncr-filter {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.ncr-filter label {
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.ncr-filter :is(input, select),
.ncr-detail-control :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 2px 4px;
  border: 1px solid #b8c8da;
  border-radius: 2px;
  box-sizing: border-box;
  background: #fff;
  font-size: 0.78rem;
}
.ncr-input-button,
.ncr-date-range,
.ncr-detail-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.ncr-date-range {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.nc-report-workspace .ncr-filter :is(input, select, button) {
  height: 26px;
  min-height: 26px;
}
.nc-report-workspace .ncr-input-button button {
  white-space: nowrap;
  writing-mode: horizontal-tb;
  word-break: keep-all;
  min-inline-size: 37px;
  padding-inline: 5px;
}
.ncr-hidden-submit {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.ncr-scroll,
.ncr-photo-list,
.ncr-recipient-table,
[data-ncr-sites] {
  max-width: 100%;
  overflow: auto;
}
.ncr-scroll {
  container-type: inline-size;
  min-height: clamp(255px, 54vh, 640px);
  max-height: clamp(255px, 54vh, 640px);
}
.ncr-scroll table {
  min-width: 1360px;
  table-layout: fixed;
}
.ncr-scroll[data-ncr-list='action'] table,
.ncr-scroll[data-ncr-list='list'] table {
  min-width: 1690px;
}
.ncr-scroll .ncr-col-serial {
  width: 34px;
}
.ncr-scroll :is(.ncr-col-status, .ncr-col-actionStatus) {
  width: 62px;
}
.ncr-scroll .ncr-col-number {
  width: 116px;
}
.ncr-scroll :is(.ncr-col-date, .ncr-col-dueDate, .ncr-col-actionDate) {
  width: 92px;
}
.ncr-scroll :is(.ncr-col-finding, .ncr-col-measure, .ncr-col-actionText, .ncr-col-prevention) {
  width: 150px;
}
.ncr-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.73rem;
}
.ncr-panel :is(th, td) {
  padding: 4px 6px;
  border: 1px solid var(--ncr-line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.ncr-panel th {
  text-align: center;
  background: var(--ncr-fill);
  font-weight: 650;
}
.ncr-panel .ncr-empty-cell {
  padding: 0;
}
.ncr-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px;
  text-align: center;
  color: #526a83;
  font-size: 0.76rem;
}
.ncr-empty-cell .ncr-empty {
  position: sticky;
  left: 0;
  width: min(100%, 100cqw);
  padding-block: 23px;
}
.ncr-empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.ncr-panel tr[aria-selected='true'] td {
  background: #edf5ff;
}
.ncr-panel :is([data-ncr-open], [data-photo-index], [data-ncr-choose-site]) {
  text-align: left;
  min-height: 0;
  padding: 1px 3px;
  background: none;
  border-color: transparent;
  color: #17518a;
  text-decoration: underline;
}
.ncr-scroll td :is(button, a) {
  max-width: 100%;
}
.ncr-scroll td {
  overflow-wrap: anywhere;
}
.ncr-pages {
  justify-content: flex-end;
  padding: 4px 5px;
  font-size: 0.75rem;
}
.ncr-detail-tabs {
  padding-inline: 5px;
}
[data-ncr-detail] {
  --ncr-form-photo-space: clamp(420px, 62vh, 660px);
  --ncr-photo-space: clamp(
    165px,
    var(--ncr-photo-height, 250px),
    min(440px, calc(var(--ncr-form-photo-space) - 130px))
  );
}
.ncr-detail-body {
  padding: 5px;
  max-height: clamp(260px, 41vh, 510px);
  overflow: auto;
}
.ncr-detail-body:has(+ [data-ncr-resize='height']) {
  box-sizing: border-box;
  height: calc(var(--ncr-form-photo-space) - var(--ncr-photo-space));
  max-height: none;
}
.ncr-detail-body h4 {
  margin: 0 0 4px;
}
.ncr-detail-grid {
  --ncr-detail-label-width: clamp(70px, 18cqw, 112px);
  display: grid;
  min-width: 0;
  border: 1px solid var(--ncr-line);
}
.ncr-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.ncr-detail-row[data-columns='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ncr-detail-field {
  display: grid;
  grid-template-columns: var(--ncr-detail-label-width) minmax(0, 1fr);
  margin: 0;
  min-width: 0;
  border-bottom: 1px solid var(--ncr-line);
}
.ncr-detail-row[data-columns='2'] .ncr-detail-field + .ncr-detail-field {
  border-inline-start: 1px solid var(--ncr-line);
}
.ncr-detail-row:last-child .ncr-detail-field {
  border-bottom: 0;
}
.ncr-detail-label {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2px 3px;
  text-align: center;
  background: var(--ncr-fill);
  color: #173657;
  font-size: 0.73rem;
  font-weight: 650;
  border-right: 1px solid var(--ncr-line);
}
.ncr-detail-value,
.ncr-detail-control {
  min-width: 0;
  margin: 0;
  padding: 2px;
  min-height: 24px;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
.ncr-detail-value {
  background: var(--ncr-read);
  white-space: pre-wrap;
}
.ncr-detail-control :is(input[readonly], input[disabled], select[disabled]) {
  background: var(--ncr-read);
}
.ncr-detail-control textarea {
  display: block;
  resize: vertical;
}
.ncr-detail-memo[data-memo='finding'] :is(.ncr-detail-value, textarea),
.ncr-detail-memo[data-memo='action'] :is(.ncr-detail-value, textarea) {
  min-height: clamp(100px, 18vh, 210px);
}
.ncr-detail-memo[data-memo='measure'] :is(.ncr-detail-value, textarea),
.ncr-detail-memo[data-memo='prevention'] :is(.ncr-detail-value, textarea) {
  min-height: clamp(54px, 7vh, 86px);
}
.ncr-detail-lookup button {
  min-width: max-content;
  min-height: 24px;
  padding: 1px 4px;
  white-space: nowrap;
}
.ncr-recipient-table table {
  min-width: 470px;
}
[data-ncr-photo-panel] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: var(--ncr-photo-space);
}
.ncr-photos {
  --ncr-photo-header-height: 31px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) var(--ncr-resize-gutter)
    clamp(
      45%,
      var(--ncr-preview-width, 64%),
      min(78%, calc(100% - 130px - var(--ncr-resize-gutter)))
    );
  grid-template-rows: minmax(0, 1fr);
  box-sizing: border-box;
  min-height: 0;
  padding: 4px;
}
.ncr-photo-list,
.ncr-photo-view {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--ncr-line);
}
.ncr-photo-list table {
  min-width: 128px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.ncr-photo-list :is(th, td) {
  padding: 4px 3px;
  border: 0;
  border-inline-end: 1px solid var(--ncr-line);
  border-block-end: 1px solid var(--ncr-line);
}
.ncr-photo-list :is(th, td):last-child {
  border-inline-end: 0;
}
.ncr-photo-list th:first-child {
  width: 25px;
}
.ncr-photo-list th:last-child {
  width: 34px;
}
.ncr-photo-list td:last-child {
  white-space: nowrap;
}
.ncr-photo-list th:nth-child(3) {
  width: 39px;
}
.ncr-photo-list th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: var(--ncr-photo-header-height);
  white-space: nowrap;
  box-sizing: border-box;
}
.ncr-photo-list button[data-photo-index] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.ncr-photo-view {
  display: grid;
  grid-column: -2;
  grid-template-rows: var(--ncr-photo-header-height) minmax(0, 1fr);
}
.ncr-photo-view strong {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--ncr-line);
  background: var(--ncr-fill);
  font-size: 0.73rem;
}
.ncr-photo-view .ncr-empty {
  align-self: center;
}
.ncr-photo-view button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 3px;
  border: 0;
  background: transparent;
}
.ncr-photo-view img,
.ncr-photo-large {
  display: block;
  width: 100%;
  object-fit: contain;
}
.ncr-photo-view img {
  height: 100%;
}
.ncr-photo-large {
  max-height: 70vh;
}
.ncr-add-menu {
  position: relative;
}
.ncr-add-menu summary {
  cursor: pointer;
  font-weight: 650;
}
.ncr-add-menu button {
  position: absolute;
  z-index: 2;
  top: 100%;
  min-width: max-content;
}
.ncr-site-options {
  display: grid;
  gap: 5px;
  max-height: 55vh;
  overflow: auto;
}
@container ncr-workspace (max-width: 1050px) {
  .ncr-filters[data-ncr-filter-tab='list'] {
    grid-template-columns: minmax(120px, 0.7fr) minmax(275px, 1.45fr) minmax(135px, 1fr);
  }
}
@container ncr-workspace (max-width: 830px) {
  .ncr-filters[data-ncr-filter-tab] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ncr-workbench[data-ncr-layout] {
    --ncr-list-space: 235px;
    grid-template-columns: minmax(0, 1fr) var(--ncr-resize-gutter) var(--ncr-detail-track);
  }
  .ncr-site-panel {
    grid-column: 1 / -1;
    margin: 0 0 6px;
  }
  [data-ncr-sites] {
    max-height: 140px;
  }
}
@container ncr-workspace (max-width: 620px) {
  .ncr-header-art {
    display: none;
  }
  .ncr-filters[data-ncr-filter-tab] {
    grid-template-columns: minmax(0, 1fr);
  }
  .ncr-workbench[data-ncr-layout] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }
  .ncr-site-panel {
    margin: 0;
  }
  .ncr-resize-handle[data-ncr-resize='width'] {
    display: none;
  }
  .ncr-scroll {
    min-height: 170px;
    max-height: 240px;
  }
  .ncr-detail-body {
    max-height: none;
  }
}
@container ncr-inspector (max-width: 320px) {
  .ncr-detail-row[data-columns='2'],
  .ncr-photos {
    grid-template-columns: minmax(0, 1fr);
  }
  .ncr-detail-row[data-columns='2'] .ncr-detail-field + .ncr-detail-field {
    border-inline-start: 0;
  }
  .ncr-detail-row[data-columns='2']:last-child .ncr-detail-field:first-child {
    border-bottom: 1px solid var(--ncr-line);
  }
  .ncr-photos {
    grid-template-rows: min(78px, 40%) minmax(0, 1fr);
    row-gap: 4px;
  }
  .ncr-resize-handle[data-ncr-resize='preview'] {
    display: none;
  }
}
@media print {
  .ncr-resize-handle {
    visibility: hidden;
  }
}
.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;
  }
}
