.final-page-title-probe {
  display: none;
}

.final-inspection-page .workspace-card__body {
  padding: 0;
}

.final-workspace {
  min-height: calc(100vh - 158px);
  background: #fff;
}

.final-panel {
  display: none;
}

.final-panel.is-active {
  display: block;
}

.final-inspection-header {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto minmax(420px, 1fr);
  gap: 24px;
  align-items: end;
  padding: 34px 20px 10px;
}

.final-title {
  align-self: center;
  color: #20293a;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.final-scan-row,
.final-search-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.final-search-group {
  align-items: center;
}

.final-main-scan {
  display: grid;
  grid-template-columns: 104px minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.final-main-scan span {
  color: #20293a;
  font-size: 22px;
  font-weight: 700;
  text-align: right;
}

.final-main-scan input,
.final-form-row input,
.final-input-with-action input,
.final-force-row input,
.final-keyword-input,
.final-date-range input,
.final-select-field select {
  min-height: 38px;
  border: 1px solid #a8b0bf;
  border-radius: 0;
  background: #fff;
  color: #25314e;
  font-size: 14px;
}

.final-main-scan input {
  min-width: 0;
}

.final-live-search {
  min-width: 190px;
}

.final-live-search input {
  min-height: 34px;
  border-color: #a8b0bf;
  border-radius: 5px;
  background: #fff;
}

.final-hint {
  color: #e11d48;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.final-inspection-layout {
  display: grid;
  grid-template-columns: minmax(520px, 40%) minmax(680px, 1fr);
  gap: 24px;
  padding: 0 20px 20px;
}

.final-form-stack {
  display: grid;
  gap: 20px;
}

.final-field-card {
  border: 1px solid #8f96a3;
  background: #fff;
}

.final-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 24px;
}

.final-card-title {
  margin: 0;
  padding: 18px 22px 10px;
  color: #20293a;
  font-size: 22px;
  font-weight: 700;
}

.final-card-title::before {
  content: "|";
  margin-right: 8px;
  font-weight: 700;
}

.final-progress {
  color: #20293a;
  font-size: 14px;
  white-space: nowrap;
}

.final-product-fields,
.final-box-fields {
  display: grid;
  gap: 36px;
  padding: 16px 28px 24px 18px;
}

.final-product-card .final-product-fields {
  max-height: 430px;
  overflow: auto;
}

.final-box-fields {
  padding-block: 26px 68px;
}

.final-form-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.final-form-row > span {
  color: #20293a;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.final-form-row input {
  width: 100%;
  padding: 8px 10px;
}

.final-input-with-action {
  position: relative;
  min-width: 0;
}

.final-input-with-action input {
  width: 100%;
  padding-right: 86px;
}

.final-input-with-action button {
  position: absolute;
  top: 50%;
  right: 10px;
  min-width: 64px;
  min-height: 30px;
  transform: translateY(-50%);
  border-radius: 4px;
  background: #2097cf;
  color: #fff;
  font-size: 13px;
}

.final-live-board {
  display: grid;
  align-content: start;
  gap: 16px;
}

.final-live-table-shell {
  max-height: 624px;
  border-radius: 0;
}

.final-live-table {
  min-width: 1180px;
}

.final-live-table thead th,
.final-live-table tbody td {
  border-right: 1px solid #8c929d;
  border-bottom: 1px solid #8c929d;
  text-align: center;
  vertical-align: middle;
}

.final-live-table thead th {
  padding: 12px 10px;
  background: #ededed;
  color: #20293a;
  font-size: 15px;
}

.final-live-table tbody td {
  height: 48px;
  padding: 8px 10px;
  color: #111827;
  font-size: 16px;
}

.final-live-table tbody tr {
  cursor: default;
}

.final-live-table th:first-child,
.final-live-table td:first-child {
  width: 64px;
}

.final-link-button {
  color: #0284c7;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-live-actions {
  display: flex;
  justify-content: flex-start;
}

.final-query-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 28px 28px 14px;
}

.final-query-toolbar--stats {
  justify-content: space-between;
}

.final-date-range,
.final-select-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #20293a;
  font-size: 13px;
  white-space: nowrap;
}

.final-date-range input {
  width: 170px;
  min-height: 32px;
  padding: 5px 6px;
  font-size: 12px;
}

.final-select-field select {
  min-width: 92px;
  min-height: 32px;
  padding: 5px 26px 5px 8px;
  border-color: #b1b7c4;
  font-size: 12px;
}

.final-keyword-input {
  width: 170px;
  min-height: 32px;
  padding: 5px 8px;
}

.final-query-toolbar .action-button {
  min-width: 76px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: #a7a9ad;
  color: #fff;
}

.final-export-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #323c52;
  font-size: 13px;
}

.final-export-button span {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid #8f96a3;
}

.final-export-button span::before,
.final-export-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 1px;
  background: #8f96a3;
}

.final-export-button span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.final-export-button span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.final-record-table-shell {
  margin: 0 28px;
  min-height: 520px;
  border-radius: 0;
}

.final-record-table {
  min-width: 1160px;
}

.final-record-table thead th,
.final-record-table tbody td,
.final-stat-table thead th,
.final-stat-table tbody td {
  border-right: 1px solid #8c929d;
  border-bottom: 1px solid #8c929d;
  text-align: center;
  vertical-align: middle;
}

.final-record-table thead th,
.final-stat-table thead th {
  padding: 14px 12px;
  background: #e2e2e2;
  color: #20293a;
  font-size: 13px;
}

.final-record-table tbody td {
  height: 42px;
  padding: 8px 12px;
  color: #20293a;
  font-size: 13px;
}

.final-result-pill {
  font-weight: 700;
}

.final-result-pill--ok {
  color: #166534;
}

.final-result-pill--ng {
  color: #dc2626;
}

.final-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 82px 28px 28px;
  color: #5e6677;
  font-size: 13px;
}

.final-pagination button,
.final-pagination input {
  min-height: 28px;
  border: 1px solid #c8ced8;
  border-radius: 4px;
  background: #fff;
  color: #7a8294;
}

.final-pagination button {
  min-width: 66px;
}

.final-pagination input {
  width: 62px;
  text-align: center;
}

.final-stat-table-shell {
  margin: 18px 28px 0;
  min-height: 600px;
  border-radius: 0;
}

.final-stat-table {
  min-width: 2330px;
}

.final-stat-table thead th {
  min-width: 90px;
  white-space: normal;
}

.final-stat-table tbody td {
  height: 46px;
  padding: 8px 10px;
  color: #20293a;
  font-size: 13px;
}

.final-stat-ng {
  background: #eb7d8d;
  color: #7f1d1d;
  font-weight: 700;
}

.final-quality-modal__panel {
  width: min(960px, calc(100vw - 32px));
  margin-top: 5vh;
  border-radius: 0;
}

.final-quality-modal__body {
  padding: 46px 54px 28px;
}

.final-error-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 34px;
  color: #20293a;
  font-size: 18px;
  line-height: 1.5;
}

.final-modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: #20293a;
  font-size: 18px;
}

.final-modal-section-head h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.final-modal-section-head h4::before {
  content: "|";
  margin-right: 8px;
}

.final-miss-link {
  color: #1d4ed8;
  text-decoration: underline;
}

.final-quality-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #20293a;
  font-size: 18px;
}

.final-quality-stats label {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid #9ba3b0;
  border-radius: 4px;
  font-size: 14px;
}

.final-quality-table-shell {
  max-height: 322px;
  border-radius: 0;
}

.final-quality-table {
  min-width: 720px;
}

.final-quality-table thead th,
.final-quality-table tbody td {
  border-right: 1px solid #8c929d;
  border-bottom: 1px solid #8c929d;
  text-align: center;
}

.final-quality-table thead th {
  background: #f1f1f1;
  color: #20293a;
  font-size: 17px;
}

.final-quality-table tbody td {
  height: 38px;
  color: #20293a;
  font-size: 18px;
}

.final-quality-table tr.is-ng td {
  color: #dc2626;
}

.final-password-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 54px;
}

.final-password-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #20293a;
  font-size: 17px;
}

.final-password-row input {
  width: 300px;
  min-height: 30px;
  border: 1px solid #9ba3b0;
}

.final-password-row > span {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.final-force-modal__panel {
  width: min(520px, calc(100vw - 32px));
  margin-top: 10vh;
  border-radius: 0;
}

.final-force-modal__body {
  padding: 48px 32px 26px;
}

.final-force-progress {
  margin: 0 0 42px;
  color: #20293a;
  font-size: 18px;
}

.final-force-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
  color: #20293a;
  font-size: 18px;
}

.final-force-row input {
  min-height: 30px;
}

@media (max-width: 1440px) {
  .final-inspection-header,
  .final-inspection-layout {
    grid-template-columns: 1fr;
  }

  .final-title {
    justify-self: start;
  }

  .final-search-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .final-inspection-header,
  .final-inspection-layout,
  .final-query-toolbar {
    padding-inline: 12px;
  }

  .final-main-scan,
  .final-form-row,
  .final-force-row {
    grid-template-columns: 1fr;
  }

  .final-main-scan span,
  .final-form-row > span {
    text-align: left;
  }

  .final-record-table-shell,
  .final-stat-table-shell {
    margin-inline: 12px;
  }

  .final-quality-modal__body {
    padding: 28px 18px 20px;
  }
}
