.ops-section{border-top:1px solid #dce7ec;padding:24px 0;margin-top:24px}.ops-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px}.ops-heading h2{font-size:20px;margin:0}.ops-heading p,.ops-muted{color:#627988;font-size:12px;margin:7px 0}.ops-subheading{margin:24px 0 12px}.ops-table{max-height:380px;margin:12px 0 22px}.ops-table td{overflow-wrap:anywhere}.ops-table small{display:block;font-size:11px;color:#718894}.ops-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ops-fields label{display:grid;gap:6px;font-size:12px}.ops-fields input,.ops-fields select{width:100%;min-height:40px}.ops-fields [hidden],label[hidden]{display:none}.ops-dialog{width:min(760px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #cddde5;border-radius:8px;padding:24px;color:#2a4655}.ops-dialog::backdrop{background:#24485e55}.ops-dialog header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.ops-dialog h2{font-size:20px;margin:0}.ops-dialog header button{background:none;border:0;width:40px;height:40px}.ops-dialog form{display:grid;gap:18px}.ops-dialog label{display:grid;gap:7px;font-size:12px}.ops-dialog input,.ops-dialog select,.ops-dialog textarea{width:100%;padding:10px;border:1px solid #cadce5;border-radius:4px}.ops-dialog footer{display:flex;justify-content:flex-end}.ops-feedback{color:#a3492b;font-size:12px;margin:0}.ops-feedback:empty{display:none}.ops-dialog input[type=checkbox]{width:18px}.ops-dialog .check-label{display:flex;align-items:center;gap:10px}.payment-badge{display:inline-block;padding:3px 8px;border-radius:4px;font-size:11px}.payment-badge.paid{background:#e8f5ee;color:#397a55}.payment-badge.unpaid{background:#fff1e4;color:#9a672d}.verified-badge{display:inline-flex;vertical-align:middle;color:#008dc2}.verified-badge svg{width:19px;height:19px}.currency-band{padding:18px 0;border-top:1px solid #e3ebef}.ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ops-metrics>div{border-left:3px solid #bee0ee;padding:8px 12px;min-width:0}.ops-metrics>div:nth-child(2){border-color:#b8ddc5}.ops-metrics>div:nth-child(3){border-color:#efd1ae}.ops-metrics small{display:block;color:#637d8c}.ops-metrics strong{display:block;font-size:20px;overflow-wrap:anywhere}.revenue-row{display:grid;grid-template-columns:80px minmax(0,1fr) 190px;gap:16px;align-items:center;margin:14px 0;font-size:12px}.revenue-track{height:10px;background:#f2f7f9;margin:5px 0}.sold-bar{height:100%;background:#b2d8eb}.paid-bar{height:100%;background:#a8d6bb}.verification-document{display:block;max-width:100%;max-height:400px;object-fit:contain;border:1px solid #d6e3ea}.verification-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:#f0f7fb}.activity-notice{font-size:11px;color:#647c8a;padding:8px 0}.community-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px}.community-channels{border-right:1px solid #e1e9ee;padding-right:14px}.community-channels button{display:block;width:100%;text-align:left;padding:10px;border:0;background:transparent;border-radius:4px;font-size:13px}.community-channels button.active{background:#eaf4fa;color:#087ea5}.community-channel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.community-channel-heading h2{font-size:20px}.community-search{width:100%;margin:12px 0}.community-feed{height:480px;overflow:auto;border-top:1px solid #e1e9ee;border-bottom:1px solid #e1e9ee;padding:8px 0}.community-message{padding:14px 8px;border-bottom:1px solid #edf1f4}.community-message>header{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px}.community-message time{font-size:11px;color:#78909e}.community-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.community-message .message-actions{display:flex;gap:8px;flex-wrap:wrap}.community-message button{font-size:11px;background:#f7fafc;border:1px solid #dce7ee;border-radius:4px;padding:5px 9px}.community-message button[aria-pressed=true]{background:#e4f3fa;border-color:#9fcfe2}.community-compose{display:grid;gap:10px;margin-top:16px}.community-compose textarea{width:100%;min-height:90px}.community-compose footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#678291}.community-thread{max-height:360px;overflow:auto}.community-empty{padding:32px;color:#7c929f}.community-channel-description{font-size:12px;color:#708896}.ops-section[hidden]{display:none}
@media(max-width:760px){.ops-fields{grid-template-columns:minmax(0,1fr)}.ops-heading{align-items:flex-start;flex-wrap:wrap}.ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-metrics strong{font-size:16px}.revenue-row{grid-template-columns:60px minmax(0,1fr);gap:10px}.revenue-row>small{grid-column:2}.ops-dialog{padding:18px}.community-layout{grid-template-columns:minmax(0,1fr);gap:12px}.community-channels{display:flex;overflow:auto;gap:6px;border-right:0;border-bottom:1px solid #e1e9ee;padding:0 0 12px}.community-channels button{width:auto;white-space:nowrap}.community-feed{height:420px}.community-channel-heading{flex-wrap:wrap}.verification-status{align-items:flex-start;flex-wrap:wrap}}
.community-compose[hidden],.community-layout [hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#trackerWorkspace{min-width:0}.ops-heading .button-row{display:flex;flex-wrap:wrap;max-width:100%}.ops-heading button{white-space:normal;min-width:0}.community-message .message-actions svg{width:14px;height:14px}
.commerce-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;border:0;padding:0;margin:0}.commerce-fields legend{font-weight:600;margin-bottom:12px}.commerce-fields label{min-width:0}.commerce-fields textarea{min-height:88px;resize:vertical}.commerce-fields .wide-field{grid-column:1/-1}.commerce-table{max-height:460px;overflow:auto}.commerce-table small{display:block;color:#627382;margin-top:5px}.commerce-summary{color:#526b7b;font-size:13px;margin:0 0 12px}.commerce-summary:empty{display:none}.commerce-line-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.commerce-line-heading h3{font-size:16px;margin:0}.commerce-lines{display:grid;gap:16px}.commerce-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 44px;gap:12px;align-items:end;padding-bottom:16px;border-bottom:1px solid #dfE7ed}.commerce-line>*{min-width:0}.commerce-total{display:block;text-align:right;font-weight:600;padding:12px 0;color:#145e7b}.commerce-history{border-top:1px solid #dce7ed;padding-top:12px}.commerce-history summary{cursor:pointer;font-weight:600}.commerce-history ol{padding-left:20px;max-height:260px;overflow:auto}.commerce-history li{margin:12px 0;font-size:13px}.commerce-history p{white-space:pre-wrap}.commerce-sale-switch{border-bottom:1px solid #dde6ed;padding-bottom:14px}#saleDeviceSerial[multiple]{min-height:128px}#productionOutcome{padding:10px 12px;background:#edf6fb;border-left:3px solid #8fc3da;color:#23536c}.commerce-table td{max-width:340px;overflow-wrap:anywhere}.commerce-table .icon-button{width:40px;min-height:40px}
@media(max-width:760px){.commerce-fields{grid-template-columns:minmax(0,1fr)}.commerce-line{grid-template-columns:repeat(2,minmax(0,1fr)) 44px;gap:10px}.commerce-line>label:first-child{grid-column:1/-1}.commerce-line-heading{flex-wrap:wrap}.commerce-table{max-height:65dvh}.ops-dialog label{font-size:14px}.ops-dialog input,.ops-dialog select,.ops-dialog textarea{font-size:16px;min-height:44px}.commerce-table .icon-button{min-height:44px;width:44px}}
.ops-fields[hidden]{display:none}
.board-product-label{display:block;color:#607784;font-size:12px;margin-top:5px}
.ops-dialog:has(.stock-entry-modes) form>footer{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid #d9e6ec;padding:12px 0}.ops-dialog:has(.stock-entry-modes) form>footer button{min-height:44px}
.stock-entry-modes{display:flex;border-bottom:1px solid #d5e3ea;gap:8px}.stock-entry-modes button{flex:1;min-height:44px;background:transparent;border:0;border-bottom:3px solid transparent;color:#526b7b;padding:8px;font-size:14px}.stock-entry-modes button[aria-pressed=true]{border-color:#1182a5;color:#086684;background:#edf8fc}.stock-pair-summary{font-size:13px;color:#356377}.stock-pair-preview{max-height:180px;overflow:auto;border:1px solid #d9e6ec;border-radius:4px}.stock-pair-preview[hidden]{display:none}.stock-pair-preview table{width:100%;min-width:0;font-size:13px}.stock-pair-preview th{position:sticky;top:0;background:#f2f8fb}.stock-pair-preview td,.stock-pair-preview th{padding:8px;overflow-wrap:anywhere}.stock-entry-options summary{font-size:13px;cursor:pointer;color:#526b7b;padding:8px 0}.stock-entry-options .ops-fields{margin-top:12px}.stock-file input{font-size:13px;min-width:0}.ops-dialog textarea[name=pairs]{font-family:ui-monospace,monospace;min-height:140px;resize:vertical}
/* PCB inspection sheets share the record workspace; only the matrix scrolls. */
#pcbTestsPanel { min-width: 0; }
.pcb-tests-summary { margin: 6px 0 0; color: #5a7180; font-size: 13px; }
.pcb-tests-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.pcb-tests-tools label { display: grid; gap: 6px; font-size: 12px; min-width: 140px; flex: 1; }
.pcb-tests-tools select, .pcb-tests-tools input { min-width: 0; width: 100%; min-height: 44px; }
.pcb-tests-stage { display: flex; flex: 0 0 auto; border-bottom: 1px solid #cbdce5; }
.pcb-tests-stage button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px; background: white; color: #426274; min-height: 44px; font-size: 13px; }
.pcb-tests-stage button[aria-pressed=true] { background: #eaf7fb; border-color: #1285a9; color: #12617d; }
.pcb-tests-table { max-height: 540px; overflow: auto; overscroll-behavior: contain; border: 1px solid #d9e5eb; }
.pcb-tests-table table { width: 100%; min-width: 950px; table-layout: auto; }
.pcb-tests-table th { position: sticky; top: 0; z-index: 2; background: #f2f8fb; white-space: nowrap; font-size: 12px; }
.pcb-tests-table th:first-child, .pcb-tests-table td:first-child { position: sticky; left: 0; z-index: 1; background: white; min-width: 170px; max-width: 240px; }
.pcb-tests-table th:first-child { z-index: 3; background: #f2f8fb; }
.pcb-tests-table td { vertical-align: middle; padding: 10px 12px; font-size: 13px; }
.pcb-tests-table small { display: block; font-size: 11px; color: #607987; margin-top: 4px; overflow-wrap: anywhere; }
.pcb-test-cell { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; min-width: 42px; padding: 6px; border: 1px solid #d5e1e7; border-radius: 4px; background: #f8fafb; color: #607987; }
.pcb-test-cell svg { width: 18px; height: 18px; }
.pcb-test-cell[data-value=Pass] { color: #176b4c; background: #eaf7f0; border-color: #b8dacb; }
.pcb-test-cell[data-value=Fail] { color: #ab3232; background: #fff0ee; border-color: #efc5c0; }
.pcb-test-cell:disabled { opacity: .5; cursor: not-allowed; }
.pcb-test-status { font-size: 12px; font-weight: 600; color: #5a7180; }
.pcb-test-status[data-status=Passed] { color: #176b4c; }
.pcb-test-status[data-status=Failed] { color: #ab3232; }
.pcb-tests-pages { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.pcb-tests-pages > span { margin-right: auto; }
.pcb-tests-pages label { display: flex; align-items: center; gap: 6px; }
.pcb-tests-pages select { min-width: 68px; width: auto; min-height: 40px; padding: 6px; }
.pcb-tests-pages .icon-button, #pcbTestsPanel .icon-button { width: 40px; height: 40px; flex-shrink: 0; }
.pcb-test-identity { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid #d9e5eb; font-size: 13px; color: #426274; }
.pcb-test-identity strong { flex-basis: 100%; color: #263d49; }
.pcb-test-group { padding: 12px 0; border-bottom: 1px solid #e2eaf0; }
.pcb-test-group h3, .pcb-template-stage h3 { margin: 0 0 10px; font-size: 14px; color: #263d49; }
.pcb-test-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 13px; }
.pcb-test-check > span { overflow-wrap: anywhere; min-width: 0; }
.pcb-test-check [role=group] { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 280px; flex-shrink: 0; gap: 4px; }
.pcb-test-check button { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 42px; padding: 7px 4px; font-size: 12px; border: 1px solid #cedee7; border-radius: 4px; background: #fff; color: #506c7b; }
.pcb-test-check button svg { width: 16px; height: 16px; flex-shrink: 0; }
.pcb-test-check button[aria-pressed=true] { border-color: #678da0; background: #eff6f9; }
.pcb-test-check button[data-result=Pass][aria-pressed=true] { color: #176b4c; background: #eaf7f0; border-color: #52a480; }
.pcb-test-check button[data-result=Fail][aria-pressed=true] { color: #ab3232; background: #fff0ee; border-color: #cd7770; }
.pcb-test-history { margin: 16px 0; font-size: 12px; }
.pcb-test-history > section { padding: 12px 0; border-bottom: 1px solid #e2eaf0; }
.pcb-test-history ul { padding-left: 20px; }
.pcb-template-stage { padding: 18px 0; border-bottom: 1px solid #d9e5eb; }
.pcb-template-group { margin: 8px 0 16px; }
.pcb-template-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.pcb-template-row input { min-width: 0; flex: 1; width: 100%; }
.pcb-template-row button { width: 40px; height: 40px; flex-shrink: 0; }
.pcb-template-child { margin-left: 24px; border-left: 2px solid #cde4ed; padding-left: 10px; }
.pcb-tests-fullscreen { width: calc(100% - 24px); max-width: none; height: calc(100dvh - 24px); max-height: none; border: 1px solid #cbdce5; border-radius: 6px; padding: 20px; background: #fff; }
.pcb-tests-fullscreen::backdrop { background: rgb(30 50 60 / .3); }
.pcb-tests-fullscreen .pcb-tests-table { max-height: calc(100dvh - 250px); }
.ops-dialog:has(.pcb-test-checks) footer, .ops-dialog:has(.pcb-template-fields) footer { position: sticky; bottom: 0; z-index: 5; padding: 12px 0; margin-bottom: 0; background: white; border-top: 1px solid #d9e5eb; }
@media(max-width:600px) {
  #pcbTestsPanel > .section-heading { flex-wrap: wrap; gap: 10px; }
  .pcb-tests-stage { width: 100%; }
  .pcb-tests-stage button { flex: 1; }
  .pcb-tests-tools label { min-width: 110px; }
  .pcb-tests-tools .pcb-test-search { flex-basis: 100%; }
  .pcb-tests-table { max-height: 460px; }
  .pcb-test-check { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcb-test-check [role=group] { width: 100%; }
  .pcb-test-check button { min-height: 44px; }
  .pcb-tests-fullscreen { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 12px; }
  .pcb-tests-fullscreen .pcb-tests-table { max-height: calc(100dvh - 360px); }
}
