/* Shared layout boundaries: scroll wide data locally, never hide page overflow. */
html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}body{min-width:0}img,video,canvas{max-width:100%;height:auto}svg{max-width:100%}iframe{max-width:100%}input,select,textarea{max-width:100%;min-width:0}textarea{resize:vertical}input[type=checkbox],input[type=radio]{flex-shrink:0}h1,h2,h3,h4,p,dd,.preline,.alert,.brand,.muted{overflow-wrap:anywhere}.container,.panel-main,.panel-content,main,.card,.box,.grid,.stats,.toolbar,.actions{min-width:0}.container,.panel-content,main{max-width:100%}.grid>* ,.stats>*{min-width:0}.card,.box{max-width:100%}.toolbar,.actions{flex-wrap:wrap}.toolbar>input,.toolbar>select{flex:1 1 150px;width:auto}.actions>form,.toolbar>form{max-width:100%;margin-bottom:0}button,.btn{max-width:100%}.layout-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin:8px 0}.layout-table-scroll>table{min-width:680px;width:100%;table-layout:auto}.layout-table-scroll th,.layout-table-scroll td{overflow-wrap:anywhere}.layout-table-scroll td{max-width:360px}.layout-table-scroll .btn,.layout-table-scroll button{white-space:normal;line-height:1.5;margin:3px 2px}.layout-table-scroll form{max-width:320px}.layout-table-scroll input,.layout-table-scroll select{min-width:110px}.table-wrap{min-width:0;max-width:100%;overscroll-behavior-x:contain}.codes,pre{max-width:100%;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.pagination{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}.pagination a,.pagination span{max-width:100%;overflow-wrap:anywhere}.panel-header{gap:15px}.panel-heading{min-width:0}.panel-heading>div{min-width:0}.panel-header h1{overflow-wrap:anywhere}.panel-header>.actions{flex-shrink:0}.sidebar .brand{min-width:0}.sidebar .brand-icon{flex-shrink:0}.sidebar nav{min-height:0}.sidebar{overscroll-behavior:contain}.sidebar-heading{min-width:0}.supplier-cards,.supply-page,.supplier-directory{min-width:0}.supply-import select{width:100%}.captcha-row,.captcha{min-width:0}.captcha-row input,.captcha input{min-width:0;flex:1}.captcha-row img,.captcha img{flex-shrink:0;object-fit:contain}dialog{max-width:calc(100% - 24px)}.shop-live .topbar{gap:16px}.shop-live .topbar .brand{min-width:0}.shop-live .topbar nav{flex-shrink:0}
@media(max-width:800px){.panel-header{align-items:flex-start}.panel-header>.actions{gap:8px;flex-wrap:wrap}.panel-heading{flex:1}.panel-heading h1{line-height:1.4}.card,.box{padding:18px 16px}.grid{grid-template-columns:minmax(0,1fr)}.toolbar>input,.toolbar>select{flex-basis:130px}.btn,button{min-height:44px}.topbar{flex-wrap:wrap}.topbar nav{gap:10px}.panel-body .sidebar{height:100dvh;max-height:100dvh;overflow-y:auto}.sidebar-heading .brand{font-size:17px}.sidebar-heading .nav-close{flex-shrink:0}.layout-table-scroll{border-radius:7px}.layout-table-scroll td{max-width:250px}.supply-search{flex-wrap:wrap}.supply-search input{flex:1 1 150px;width:auto}.supply-pagination{overflow-wrap:anywhere}}
@media(max-width:480px){.panel-body .panel-header{gap:10px}.panel-body .panel-header .site-home{display:none}.panel-body .panel-header .actions{flex-shrink:0}.panel-body .panel-header .actions form{margin:0}.panel-body .panel-header h1{font-size:18px}.panel-body .panel-heading small{font-size:10px}.shop-live .topbar .brand{font-size:17px}.shop-live .topbar nav{font-size:12px;gap:12px}.captcha-row,.captcha{gap:8px}.captcha-row img,.captcha img{width:110px;height:42px}.container{padding-left:16px;padding-right:16px}.actions .btn,.actions button{white-space:normal}.layout-table-scroll td{font-size:12px}.supply-actions{flex-wrap:wrap}.supply-actions>a,.supply-actions>form{min-width:85px}}
