/* Shared screen controls. Low specificity lets each workflow keep its semantic colors. */
@media screen {
 #app[hidden],#app [hidden]{display:none!important}
 #collectionPostingPanel:empty{display:none}
 .customer-picker [data-results],.unified-source [data-product-results]{max-height:300px;overflow:auto;overscroll-behavior:contain}
 .site-region-quotes>.panel-head{flex-wrap:wrap;gap:12px}
 .site-region-quotes .list-card{grid-template-columns:minmax(0,1fr) auto auto;gap:12px}
 .site-region-quotes [data-site-quote]{min-width:0;text-align:left;overflow-wrap:anywhere}
 #importRows .stock-table{width:100%;max-width:100%;height:min(52vh,520px);overflow-x:scroll;overflow-y:auto;scrollbar-gutter:stable;border:1px solid #d9e3e9;border-radius:9px;overscroll-behavior:contain}
 #importRows .stock-table table{min-width:1450px;width:max-content;border-collapse:separate;border-spacing:0}
 #importRows .stock-table th{position:sticky;top:0;z-index:2;background:#edf4f7;white-space:nowrap}
 #importRows .stock-table th:first-child,#importRows .stock-table td:first-child{position:sticky;left:0;background:#fff;z-index:1}
 #importRows .stock-table th:first-child{background:#edf4f7;z-index:3}
 #importRows .stock-table::-webkit-scrollbar{height:14px;width:12px}
 #importRows .stock-table::-webkit-scrollbar-track{background:#e5edf2;border-radius:8px}
 #importRows .stock-table::-webkit-scrollbar-thumb{background:#7897a9;border:2px solid #e5edf2;border-radius:8px}
 :where(#app main button){border:1px solid #bcced8;border-radius:8px;padding:9px 14px;background:#fff;color:#23465b;font:inherit;line-height:1.5;max-width:100%;white-space:normal}
 :where(#app main button):focus-visible{outline:3px solid #168b6855;outline-offset:2px}
 :where(#app main button.primary){background:#168b68;border-color:#168b68;color:#fff}
 :where(#app main button.danger,#app main button.danger-link){color:#b54141;border-color:#e4b6b6}
 :where(#app main button.link,#app main button.back,#app main button.icon){background:transparent;border-color:transparent}
 :where(#app main .page-head){flex-wrap:wrap}
 :where(#app main .page-head>div){min-width:0}
 :where(#app main .mini-actions,#app main .form-actions){flex-wrap:wrap}
 :where(#app main input,#app main select,#app main textarea){min-width:0}
 @media(max-width:850px){
  .site-region-quotes .list-card{grid-template-columns:minmax(0,1fr) auto}
  .site-region-quotes .list-card>span{grid-column:1/-1}
  #page-procurement .supply-tabs,#page-finance-reports .supply-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:8px}
  #page-procurement .supply-tabs button,#page-finance-reports .supply-tabs button{flex:1 1 135px;white-space:normal;min-height:44px}
  #app main .form-actions>button{min-height:44px}
 }
}
