.camera-dialog{width:min(94vw,560px);max-height:94dvh;padding:18px;border:0;border-radius:14px;background:#fff;color:#142821}.camera-dialog::backdrop{background:#000b}.camera-dialog video{display:block;width:100%;max-height:55dvh;object-fit:contain;background:#111;border-radius:8px}.camera-dialog button{min-height:48px;width:100%}.camera-scan-button{margin:6px 0;min-height:46px;white-space:normal}.mobile-print-note{padding:12px;background:#fff2ce;border-radius:8px}
@media(max-width:650px){input,select,textarea{font-size:16px!important}.form-row,.workspace-grid,.two-column,.return-workflow{grid-template-columns:minmax(0,1fr)}.scan-row{flex-wrap:wrap}.scan-row>input{min-width:0;width:100%}.scan-row>.camera-scan-button{flex:1 0 100%}.panel-body{padding:14px}.dialog-actions{flex-wrap:wrap}.dialog-actions>button{flex:1 1 150px}.product-cell{min-width:0}.product-cell>div{min-width:0;overflow-wrap:anywhere}.topbar{flex-wrap:wrap}.camera-dialog h2{font-size:20px}main{min-width:0;overflow-wrap:anywhere}.return-inspection fieldset{min-width:0}.return-inspection .form-row{display:grid;grid-template-columns:1fr}.return-placement{min-width:0}.table-wrap{max-width:100%;overflow:auto}}

#mobile-navigation-toggle{display:none}@media(max-width:650px){#mobile-navigation-toggle{display:block;width:100%;min-height:46px}.sidebar #navigation,.sidebar .sidebar-note{display:none}.sidebar.mobile-navigation-open #navigation{display:block}.sidebar{padding:12px}.sidebar .brand{margin-bottom:8px}}

.return-scanner-panel{position:static;z-index:auto}.return-box-number{display:block;font-size:clamp(32px,4vw,64px);line-height:1.1;margin-bottom:12px;color:#07543c}.return-box-suggestion{font-size:18px}.return-box-suggestion>p{line-height:1.45}@media(min-width:1100px){.return-placement-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:16px;align-items:start}.return-placement-step>*{grid-column:1}.return-placement-step>.return-box-suggestion{grid-column:2;grid-row:1 / span 8;position:sticky;top:16px}}

.scanner-mode .workflow-guide{display:none}

.fast-receiving .page-heading{margin-bottom:16px}.fast-receipt-result:empty{display:none}.fast-receipt-result>.button{margin:6px 8px 6px 0;white-space:normal}.fast-receipt-result .location-tag{margin-bottom:12px}.fast-receipt-product{margin:14px 0}.fast-receipt-product h2{font-size:18px;margin:0}.fast-receipt-options{margin-top:14px;border-top:1px solid var(--line);padding-top:6px}.fast-receipt-options>summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:600}.fast-receipt-options>select{max-width:100%}.fast-receiving code{overflow-wrap:anywhere}@media(max-width:650px){.fast-receiving .page-heading h1{font-size:22px}.fast-receipt-result>.button{width:100%;margin-right:0;min-height:48px}.fast-receipt-product h2{font-size:16px}.fast-receiving .camera-scan-button{width:100%}.fast-receipt-result .return-box-number{font-size:38px}}

.fast-receipt-result>a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}

.camera-tools{display:flex;gap:8px;margin:8px 0}.camera-dialog .camera-tools button{flex:1;min-width:0;width:auto}.camera-dialog .field-help{font-size:14px;line-height:1.35}

/* Phone records keep actions beside their item rather than off-screen columns. */
.mobile-cell-label{display:none}
@media(max-width:650px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .topbar-actions,.auth-user,.seller-switcher{min-width:0;flex-wrap:wrap;max-width:100%}
 .topbar-actions{gap:8px;width:100%;justify-content:space-between}
 .pilot-banner{flex-wrap:wrap;gap:6px}
 .brand{padding-bottom:8px}.brand>div{min-width:0}.brand span:not(.brand-mark){display:block}
 .panel-heading,.page-heading{flex-wrap:wrap}
 .panel-heading>*,.page-heading>*,.form-field{min-width:0;max-width:100%}
 .form-layout,.form-grid{grid-template-columns:minmax(0,1fr)}
 input,select,textarea{max-width:100%}
 .data-table.mobile-record-table{display:block;min-width:0;width:100%;table-layout:auto}
 .mobile-record-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-record-table>tbody{display:block}
 .mobile-record-table tr.mobile-record{display:block;padding:12px 14px;border-bottom:1px solid var(--line)}
 .mobile-record-table tr.mobile-record>td{display:block;width:100%;padding:7px 0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;text-align:left}
 .mobile-record-table .mobile-cell-label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:4px}
 .mobile-record-table td .button{min-height:44px;max-width:100%}
 .mobile-record-table td:empty{display:none}
}
