.qc-workspace { color: #182334; min-width: 0; }
.qc-workspace button, .qc-workspace input, .qc-workspace select, .qc-dialog button, .qc-dialog input, .qc-dialog select, .qc-dialog textarea { font: inherit; letter-spacing: 0; }
.qc-workspace svg, .qc-dialog svg { width: 18px; height: 18px; flex-shrink: 0; }
.qc-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 24px; }
.qc-heading h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: 0; }
.qc-heading > div > span { font-size: 12px; color: #627186; }
.qc-tool-slot { margin-left: auto; }
.qc-tool-slot .phase2-module-actions { margin: 0; gap: 8px; }
.qc-tool-slot .btn { font-size: 12px; padding: 8px 10px; min-height: 38px; border-radius: 5px; }
.qc-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid #e0e5eb; padding-bottom: 20px; margin-bottom: 20px; gap: 14px; }
.qc-metrics > div { display: flex; flex-direction: column; gap: 6px; }
.qc-metrics span { color: #627186; font-size: 12px; }
.qc-metrics strong { font-size: 23px; font-weight: 650; }
.qc-amber { color: #ac6a07; }
.qc-workspace .qc-btn, .qc-dialog .qc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; background: #fff; border: 1px solid #d5dce6; border-radius: 5px; color: #34445a; font-size: 12px; font-weight: 550; line-height: 20px; cursor: pointer; box-shadow: none; }
.qc-workspace .qc-btn:hover, .qc-dialog .qc-btn:hover { background: #f1f5ff; }
.qc-workspace .qc-icon, .qc-dialog .qc-icon { width: 36px; height: 36px; padding: 8px; flex-shrink: 0; }
.qc-workspace .qc-primary { background: #245eeb; border-color: #245eeb; color: white; }
.qc-workspace .qc-primary:hover { background: #174ed3; }
.qc-workspace button:disabled, .qc-dialog button:disabled { cursor: default; opacity: .45; }
.qc-workspace :is(button,input,select):focus-visible, .qc-dialog :is(button,input,select,textarea):focus-visible { outline: 2px solid #245eeb; outline-offset: 3px; }
.qc-scan { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #f0f6ff; padding: 14px 16px; border-left: 3px solid #245eeb; margin-bottom: 18px; }
.qc-scan label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.qc-workspace .qc-scan input { flex: 1; min-width: 180px; width: 180px; border: 1px solid #c7d4e8; background: white; border-radius: 5px; min-height: 40px; padding: 9px 12px; font-size: 14px; }
.qc-scan .qc-btn { min-height: 40px; }
.qc-tabs { display: flex; gap: 24px; border-bottom: 1px solid #e0e5eb; margin-bottom: 18px; }
.qc-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #627186; font-size: 14px; cursor: pointer; }
.qc-tabs button.selected { border-bottom-color: #245eeb; color: #245eeb; font-weight: 600; }
.qc-tabs button span { background: #eff2f6; color: #536478; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.qc-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.qc-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d5dce6; border-radius: 5px; flex: 1; min-width: 180px; color: #627186; }
.qc-workspace .qc-search input { min-width: 0; width: 100%; height: 38px; border: 0; padding: 8px 0; background: transparent; font-size: 13px; box-shadow: none; }
.qc-workspace select { min-width: 0; max-width: 100%; height: 38px; padding: 6px 26px 6px 9px; border: 1px solid #d5dce6; border-radius: 5px; background: white; color: #34445a; font-size: 12px; }
.qc-list-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 0 14px; }
.qc-list-heading > div { min-width: 0; }
.qc-list-heading h3 { margin: 0; font-size: 17px; letter-spacing: 0; overflow-wrap: anywhere; }
.qc-list-heading span { font-size: 12px; color: #627186; }
.qc-exports { margin-left: auto; display: flex; gap: 8px; }
.qc-table-wrap { border: 1px solid #e0e5eb; border-radius: 5px; overflow-x: auto; }
.qc-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.qc-table th { background: #f3f5f8; color: #56657b; font-weight: 600; white-space: nowrap; }
.qc-table th, .qc-table td { padding: 12px; border-bottom: 1px solid #e7ebf0; vertical-align: middle; }
.qc-table td { max-width: 300px; overflow-wrap: anywhere; }
.qc-table tr:last-child td { border-bottom: 0; }
.qc-table tbody tr:hover { background: #f8fbff; }
.qc-table small { display: block; margin-top: 4px; font-size: 11px; color: #627186; }
.qc-table td:last-child button { white-space: nowrap; }
.qc-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.qc-number { text-align: right; font-variant-numeric: tabular-nums; }
.qc-count { display: inline-block; min-width: 38px; padding: 4px 7px; color: #97600c; background: #fff5df; border-radius: 4px; font-weight: 650; text-align: center; }
.qc-status { display: inline-block; padding: 4px 7px; color: #97600c; background: #fff5df; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.qc-return-status { color: #8c4247; background: #fff0f1; }
.qc-table .qc-empty { padding: 40px 15px; text-align: center; color: #627186; }
.qc-pagination { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 0; color: #627186; font-size: 12px; }
.qc-pagination > div { display: flex; gap: 8px; }
.qc-dialog { width: min(560px,calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #d5dce6; border-radius: 8px; margin: auto; overflow-y: auto; color: #182334; box-shadow: 0 16px 50px #10182830; }
.qc-dialog::backdrop { background: #18233466; }
.qc-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #e0e5eb; gap: 12px; }
.qc-dialog h3 { font-size: 19px; margin: 0; letter-spacing: 0; }
#qc-inspection-modal.qc-dialog h3 { color: #182334 !important; }
.qc-dialog-body { display: flex; flex-direction: column; padding: 18px 20px; gap: 8px; }
.qc-unit { display: flex; flex-direction: column; gap: 5px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid #e0e5eb; overflow-wrap: anywhere; }
.qc-unit > strong { font-size: 18px; color: #245eeb; }
.qc-unit > span { font-size: 13px; }
.qc-unit > small { font-size: 12px; color: #627186; }
.qc-unit .qc-status { align-self: flex-start; }
.qc-dialog label { font-size: 12px; font-weight: 600; margin-top: 6px; }
.qc-dialog input, .qc-dialog select, .qc-dialog textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cbd4e1; border-radius: 5px; background: white; color: #182334; font-size: 14px; }
.qc-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid #e0e5eb; }
.qc-dialog .qc-success { color: white; border-color: #13835f; background: #13835f; }
.qc-dialog .qc-success:hover { background: #096e4f; }
.qc-dialog .qc-danger { color: #ba3542; border-color: #eebec5; }
.qc-dialog-error { font-size: 12px; color: #b42435; margin: 4px 0 0; }
.qc-reject-reason:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
.qc-owner-dialog { width: min(760px,calc(100vw - 28px)); }
.qc-owner-dialog h3 { color: #182334 !important; overflow-wrap: anywhere; }
.qc-confirm-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e0e5eb; }
.qc-confirm-facts span { font-size: 12px; color: #627186; }
.qc-confirm-facts strong { display: block; color: #182334; margin-top: 4px; overflow-wrap: anywhere; }
.qc-confirm-preview { max-height: 260px; overflow: auto; margin-top: 10px; }
.qc-owner-dialog .qc-table { min-width: 460px; }
.qc-owner-dialog .qc-confirm-check { display: flex; gap: 10px; align-items: flex-start; line-height: 20px; }
.qc-owner-dialog .qc-confirm-check input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; }
.qc-owner-dialog [data-preview-result] > strong { font-size: 13px; }
@media (max-width: 760px) {
  .qc-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .qc-heading h2 { font-size: 22px; }
  .qc-heading > [data-refresh] { grid-column: 2; grid-row: 1; }
  .qc-tool-slot { margin-left: 0; grid-column: 1 / -1; grid-row: 2; }
  .qc-tool-slot .phase2-module-actions { flex-wrap: wrap; }
  .qc-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qc-metrics strong { font-size: 20px; }
  .qc-scan { gap: 10px; padding: 12px; }
  .qc-scan label { width: 100%; }
  .qc-workspace .qc-scan input { width: 100%; min-width: 0; flex-basis: 100%; }
  .qc-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qc-search { grid-column: 1 / -1; min-width: 0; }
  .qc-filters select { width: 100%; }
  .qc-tabs { gap: 14px; }
  .qc-tabs button { gap: 5px; font-size: 12px; }
  .qc-table th, .qc-table td { padding: 10px; }
  .qc-table { min-width: 680px; }
  .qc-dialog header, .qc-dialog footer { padding: 12px; }
  .qc-dialog-body { padding: 14px 12px; }
}
