/* dispatch-manual-all-v4. Only the original, authorized followup renderer adds
   gc-sdf-compact. Screen layout only: paper and print contracts are untouched. */
@media screen {
  html body main#main .sample-dispatch-page.gc-sdf-compact { gap:0;min-height:0; }
  /* dispatch-focus-parent-unclip-peter-v1: the shared 3px ring touches all
     three left clipping edges. Keep list/preview scrolling and main clipping. */
  html body main#main .sample-dispatch-page.gc-sdf-compact.gc-sdf-focus-ring-pilot,
  html body main#main .gc-sdf-compact.gc-sdf-focus-ring-pilot :is(.sample-dispatch-shell,.gc-sdf-left) {overflow:visible!important;}
  html body main#main .gc-sdf-compact .gc-sdf-context {display:flex;align-items:center;gap:var(--gc-space-2);flex:0 0 auto;padding:0 0 var(--gc-space-3);min-width:0;flex-wrap:wrap;}
  html body main#main .gc-sdf-compact .pattern-control-group {display:flex;align-items:center;gap:10px;min-width:0;}
  html body main#main .gc-sdf-compact .pattern-control-label {font-size:12px;font-weight:600;color:var(--ink-mute);white-space:nowrap;}
  html body main#main .gc-sdf-compact #gcSdfBrand {width:130px;max-width:100%;font-family:var(--font-sans);}
  html body main#main .gc-sdf-compact .gc-sdf-context .pattern-control-label {display:none;}
  html body main#main .gc-sdf-compact .gc-sdf-context > .gc-sdf-scopebar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;flex:none;box-sizing:border-box;height:var(--gc-ui-field-height,36px);padding:3px;gap:2px;width:156px;}
  html body main#main .gc-sdf-compact .gc-sdf-context .gc-sdf-scope {height:100%;min-height:0;padding:0 8px;line-height:1;font-size:12.5px;font-weight:600;}
  html body main#main .gc-sdf-compact .gc-sdf-scope {padding:0 8px;white-space:nowrap;}
  html body main#main .gc-sdf-compact .sample-dispatch-shell {grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:var(--gc-space-4);flex:1 1 0;min-height:0;overflow:hidden;}
  html body main#main .gc-sdf-compact .gc-sdf-left {border:0;border-radius:0;background:transparent;padding:0 var(--gc-space-4) 0 0;border-right:1px solid var(--line);min-height:0;}
  html body main#main .gc-sdf-compact .gc-sdf-right {border:0;border-radius:0;background:transparent;display:flex;flex-direction:column;min-height:0;min-width:0;}
  html body main#main .gc-sdf-compact .gc-sdf-panels {display:flex;flex-direction:column;flex:1 1 0;min-height:0;}
  html body main#main .gc-sdf-compact .gc-sdf-style-panel {display:flex;height:auto;flex:1 1 0;gap:var(--gc-space-2);min-height:0;}
  html body main#main .gc-sdf-compact .gc-factory-searchbar {flex:0 0 auto;width:100%;max-width:100%;margin:0;}
  html body main#main .gc-sdf-compact .gc-sdf-pickbar {display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0;flex:none;}
  html body main#main .gc-sdf-compact .gc-sdf-pickbar > div:first-child {display:flex;align-items:center;gap:8px;}
  html body main#main .gc-sdf-compact #gcSdfStyleCount {margin:0;font-size:var(--gc-ledger-type-secondary-size,11.5px);color:var(--ink-mute);}
  html body main#main .gc-sdf-compact .gc-sdf-pickbar .gc-sdf-actions {width:auto;margin-left:auto;gap:12px;flex:none;}
  html body main#main .gc-sdf-compact :is(.gc-sdf-selected-toggle,.gc-sdf-pickbar button) {border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-width:0!important;width:auto!important;min-height:30px;height:auto;font:500 var(--gc-ledger-type-action-size,12.5px)/1.4 var(--font-sans);color:var(--ink-mute);cursor:pointer;}
  html body main#main .gc-sdf-compact .gc-sdf-selected-toggle {color:var(--apple-blue);}
  html body main#main .gc-sdf-compact .gc-sdf-selected-toggle[aria-pressed="true"] {text-decoration:underline;text-underline-offset:4px;}
  html body main#main .gc-sdf-compact button:disabled {opacity:.45;cursor:default;}
  html body main#main .gc-sdf-compact .gc-sdf-list {flex:1 1 0;min-height:0;padding:0;gap:0;border-top:1px solid var(--line);overscroll-behavior:contain;}
  html body main#main .gc-sdf-compact .gc-sdf-style-group {border:0;border-radius:0;background:transparent;padding:0;margin:0;}
  html body main#main .gc-sdf-compact .gc-sdf-style-group-head {padding:8px 10px;margin:0;background:transparent;}
  html body main#main .gc-sdf-compact .gc-sdf-item {grid-template-columns:16px var(--gc-ledger-thumb-width,48px) minmax(0,1fr);gap:var(--gc-space-2);border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:8px;min-height:var(--gc-ledger-row-height,82px);background:transparent;box-shadow:none;}
  html body main#main .gc-sdf-compact .gc-sdf-item:hover {background:var(--bg-hover);}
  html body main#main .gc-sdf-compact .gc-sdf-item.on {background:var(--gc-ui-selection-bg,#f0f7ff);}
  html body main#main .gc-sdf-compact .gc-sdf-thumb {width:var(--gc-ledger-thumb-width,48px);height:var(--gc-ledger-thumb-height,62px);background:transparent;}
  html body main#main .gc-sdf-compact .gc-sdf-thumb img {object-fit:contain;}
  html body main#main .gc-sdf-compact .gc-sdf-item-sku {font-size:var(--gc-ledger-type-primary-size,13px);font-weight:var(--gc-ledger-type-primary-weight,650);white-space:normal;overflow-wrap:anywhere;}
  html body main#main .gc-sdf-compact .gc-sdf-item-desc:empty {display:none;}
  html body main#main .gc-sdf-compact .gc-sdf-item-desc {font-size:var(--gc-ledger-type-secondary-size,11.5px);color:var(--ink-mute);}
  html body main#main .gc-sdf-compact .gc-sdf-item-meta {gap:4px 8px;margin-top:4px;}
  html body main#main .gc-sdf-compact .gc-sdf-tag {border:0;background:transparent;padding:0;font-size:var(--gc-ledger-type-secondary-size,11.5px);font-weight:400;color:var(--ink-mute);white-space:normal;overflow-wrap:anywhere;}
  html body main#main .gc-sdf-compact .gc-sdf-toolbar {padding:0 0 var(--gc-space-3)!important;display:flex;align-items:flex-start;gap:var(--gc-space-3);flex:0 0 auto;min-height:0;background:transparent;border:0;flex-direction:row;flex-wrap:nowrap;}
  html body main#main .gc-sdf-compact .gc-sdf-document-fields {display:flex;align-items:center;gap:var(--gc-space-3);flex-wrap:wrap;min-width:0;flex:1;}
  html body main#main .gc-sdf-compact .gc-sdf-document-field .erp-workspace-select {width:180px;min-width:0;}
  html body main#main .gc-sdf-compact .erp-workspace-select-trigger > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
  html body main#main .gc-sdf-compact .gc-sdf-output {display:flex;align-items:center;gap:8px;flex:none;white-space:nowrap;}
  html body main#main .gc-sdf-compact .gc-sdf-output-menu .erp-workspace-select-option {display:block;white-space:normal;min-height:36px;}
  html body main#main .gc-sdf-compact .gc-sdf-recipient .erp-workspace-select {width:180px;max-width:100%;}
  html body main#main .gc-sdf-compact .gc-sdf-toolbar-actions {display:flex;gap:var(--gc-space-2);margin-left:auto;align-items:center;flex-wrap:wrap;}
  html body main#main .gc-sdf-compact .gc-sdf-pickbar button {flex:none;white-space:nowrap;}
  html body main#main .gc-sdf-compact .gc-sdf-preview {flex:1 1 0;min-height:0;overflow:auto;border-radius:var(--gc-ui-control-radius,8px);padding:var(--gc-space-4);background:var(--surface-muted,#ebebef);overscroll-behavior:contain;}
  html body main#main .gc-sdf-compact .gc-sdf-paper {transform:none;margin:0 auto;flex:none;zoom:var(--gc-sdf-preview-scale,1);box-shadow:none;}
  html body main#main .gc-sdf-compact .gc-sdf-table thead th {position:static;}
  /* Public menus assume a positioned select parent. Top-layer popovers must
     reset that parent's 100% minimum width, not only set a nominal width. */
  html body main#main .gc-sdf-compact .gc-sdf-popover {position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:var(--gc-space-3);min-width:0;max-width:calc(100vw - 24px);overflow:auto;}
  html body main#main .gc-sdf-compact .gc-sdf-popover:not(:popover-open) {display:none!important;}
  html body main#main .gc-sdf-compact .gc-sdf-popover:popover-open {display:block;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-menu:popover-open {display:flex;flex-direction:column;gap:8px;overflow:hidden;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-menu .gc-sdf-panel-title {flex:none;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-tools {display:flex;gap:8px;align-items:center;flex:none;min-width:0;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-tools .gc-factory-searchbar {flex:1;min-width:0;width:auto;}
  html body main#main .gc-sdf-compact #gcSdfContactGroup {display:flex;align-items:center;gap:4px;flex:none;width:auto;max-width:130px;overflow:hidden;white-space:nowrap;}
  html body main#main .gc-sdf-compact #gcSdfContactGroup > span {min-width:0;overflow:hidden;text-overflow:ellipsis;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-results {overflow:auto;min-height:48px;flex:1;overscroll-behavior:contain;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-selected {max-height:none;overflow:visible;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-selected-label {font-size:12px;color:var(--ink-mute);padding:4px 8px;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-groups {max-height:150px;overflow:auto;flex:0 1 auto;min-height:44px;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-row {display:flex;align-items:center;gap:8px;width:100%;text-align:left;min-height:44px;white-space:normal;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-row[hidden],
  html body main#main .gc-sdf-compact .gc-sdf-contact-menu [hidden] {display:none!important;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-check {width:16px;height:16px;flex:none;border:1px solid var(--line);border-radius:4px;display:grid;place-items:center;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-row.on .gc-sdf-contact-check {background:var(--apple-blue);border-color:var(--apple-blue);color:white;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-copy {display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-name {font-weight:600;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-meta {font-size:var(--gc-ledger-type-secondary-size,11.5px);color:var(--ink-mute);font-weight:400;}
  html body main#main .gc-sdf-compact .gc-sdf-field-menu .gc-sdf-chip-row {display:flex;flex-direction:column;align-items:stretch;gap:2px;}
  html body main#main .gc-sdf-compact .gc-sdf-field-menu .gc-sdf-chip {text-align:left;white-space:normal;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-menu .gc-sdf-panel-title {align-items:center;margin-bottom:12px;}
  html body main#main .gc-sdf-compact .gc-sdf-contact-menu .gc-sdf-panel-title b {font:650 var(--gc-type-body,14px) var(--font-sans);}
  html body main#main .gc-sdf-compact .gc-sdf-reprint-note {font-size:var(--gc-ledger-type-secondary-size,11.5px);color:var(--ink-mute);}
  html body main#main .gc-sdf-compact > .gc-sdf-narrow-switch {display:none;}
  html body main#main .gc-sdf-compact :is([role="checkbox"],.gc-sdf-selected-toggle):focus-visible {outline:2px solid var(--apple-blue);outline-offset:-2px;border-radius:var(--gc-ui-control-radius,8px);}
}
@media screen and (max-width:1200px) {
  html body main#main .gc-sdf-compact .sample-dispatch-shell {grid-template-columns:minmax(260px,300px) minmax(0,1fr);}
}
@media screen and (max-width:900px) {
  html body main#main .gc-sdf-compact .gc-sdf-context > .gc-sdf-scopebar {height:var(--gc-ui-touch-target-height,44px);}
  html body main#main .gc-sdf-compact .sample-dispatch-shell {display:flex;flex-direction:column;}
  html body main#main .gc-sdf-compact .sample-dispatch-shell > :is(.gc-sdf-left,.gc-sdf-right) {flex:1 1 0;min-height:0;}
  html body main#main .gc-sdf-compact .gc-sdf-toolbar-actions {flex-direction:row;}
  html body main#main .gc-sdf-compact > .gc-sdf-narrow-switch {display:flex;margin:0 0 12px;flex:none;align-self:flex-start;}
  html body main#main .gc-sdf-compact[data-compact-view="select"] .gc-sdf-right,
  html body main#main .gc-sdf-compact[data-compact-view="preview"] .gc-sdf-left {display:none;}
  html body main#main .gc-sdf-compact .gc-sdf-left {padding:0;border:0;}
  html body main#main .gc-sdf-compact .gc-sdf-right {min-height:0;}
  html body main#main .gc-sdf-compact .gc-sdf-context {gap:8px;padding-bottom:12px;}
  html body main#main .gc-sdf-compact :is(.gc-sdf-scope,.gc-sdf-mini-btn,.gc-sdf-invoice-btn,.gc-sdf-print-btn,.erp-workspace-select-trigger,.gc-sdf-selected-toggle,.gc-sdf-pickbar button,.gc-sdf-chip) {min-height:var(--gc-ui-touch-target-height,44px);}
}
@media screen and (max-width:480px) {
  html body main#main .gc-sdf-compact .gc-sdf-document-fields .pattern-control-group {flex-wrap:wrap;gap:4px;}
  html body main#main .gc-sdf-compact .gc-sdf-document-fields .pattern-control-label {width:100%;}
  html body main#main .gc-sdf-compact .gc-sdf-output {margin-top:20px;}
  html body main#main .gc-sdf-compact #gcSdfBrand {width:130px;}
  html body main#main .gc-sdf-compact .gc-sdf-toolbar-actions {justify-content:flex-end;}
}
@media screen and (max-width:720px) {
  html body main#main .sample-dispatch-page.gc-sdf-compact {padding-bottom:58px;}
}
