@media screen {
html,body{max-width:100%;overflow-x:hidden}main,.workspace,section,.panel,form{min-width:0;box-sizing:border-box}main{width:100%}input,select,textarea{max-width:100%;box-sizing:border-box}button,a.btn,nav a{min-height:44px;box-sizing:border-box}
.document-zoom-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:12px 0}
.document-zoom-toolbar button{height:44px;min-width:44px;padding:10px 14px;line-height:1.2}.document-zoom-toolbar output{min-width:64px;text-align:center;font-size:14px}
.document-viewport{width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;padding:2px;box-sizing:border-box}
.document-zoom-stage{position:relative;margin:0 auto}.document-zoom-target{transform-origin:top left;margin:0!important;max-width:none!important}
@media(max-width:1000px){main{padding:18px!important}.fields,.grid,.party-notes{grid-template-columns:repeat(2,minmax(0,1fr))!important}.document-action-header>h1,.document-action-header>h2{flex-basis:100%}.document-action-toolbar{justify-content:flex-start;width:100%}.document-action-toolbar button{flex:1 1 160px}.staff-session{flex-basis:100%;justify-content:flex-end}.item-row{min-width:700px}.scroll,.hawb-table-scroll{max-width:100%;overflow:auto}}
@media(max-width:600px){main{padding:12px!important}section,.panel{padding:14px!important;margin-left:0!important;margin-right:0!important}.fields,.grid,.party-columns,.party-fields,.party-notes,.parties,.agent-fields{grid-template-columns:1fr!important}.span2,.layout-full{grid-column:1/-1!important}nav.main-navigation{gap:8px!important;padding:10px!important}nav.main-navigation>a{flex:1 1 calc(50% - 8px);padding:10px 8px!important;min-width:0;text-align:center}.staff-session{justify-content:space-between!important;width:100%}.staff-session select{min-width:0!important;max-width:100%;width:100%!important}.staff-session>label{flex:1;min-width:0}.document-action-toolbar,.actions,.toolbar,.receipt-controls,.party-picker{gap:8px!important}.document-action-toolbar button,.actions>button,.toolbar>button,.receipt-controls>button{flex:1 1 calc(50% - 8px);min-width:0;white-space:normal;line-height:1.25}.actions>label,.toolbar>label,.receipt-controls>label,.party-picker>label{flex:1 1 100%;width:100%}.shipment-picker>label{flex-basis:100%!important;min-width:0}.shipment-picker>button{width:100%}.invoice-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.invoice-row>label:first-child{grid-column:1/-1}.line{grid-template-columns:repeat(2,minmax(0,1fr))!important}.document-zoom-toolbar{justify-content:center;gap:8px}.document-zoom-toolbar button{flex:1 1 auto}.appearance-controls{justify-content:center}.appearance-controls button{flex:1 1 150px}input,select,textarea{font-size:16px!important}.welcome{max-width:100%}}
}
@media print{.document-zoom-toolbar{display:none!important}.document-viewport,.document-zoom-stage{display:contents!important;width:auto!important;height:auto!important;overflow:visible!important;padding:0!important}.document-zoom-target{transform:none!important;max-width:none!important}}
