/* Invoice-search layout only. Unverified reference filters are intentionally absent. */
#screen #tradeSearchFilters[hidden],#screen #tradeSearchPaging[hidden],#screen.tradeSearchLayout>.filters[hidden]{display:none!important}
#screen .tradeSearchSrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media screen{
 #screen.tradeSearchLayout{padding:8px 14px 16px;min-height:calc(100vh - 48px)}
 #screen.tradeSearchLayout>h1{font-size:26px;line-height:32px;font-weight:400;margin:0 0 9px;padding:0 0 7px;text-align:center;border-bottom:1px solid #c4c4c4}
 #screen.tradeSearchLayout #tradeSearchFilters{margin:0 0 11px;padding:7px 0 9px;border-bottom:1px solid #d3d3d3}
 #screen.tradeSearchLayout .tradeSearchFields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 24px;padding:0;border:0;margin:0;min-width:0}
 #screen.tradeSearchLayout .tradeSearchFields>label,#screen.tradeSearchLayout .tradeSearchPeriod{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;min-width:0;font-size:12px;color:#444}
 #screen.tradeSearchLayout .tradeSearchPeriod{grid-column:span 2;grid-template-columns:92px minmax(250px,1fr)}
 #screen.tradeSearchLayout .tradeSearchPeriod>div{display:flex;align-items:center;gap:8px;max-width:356px}
 #screen.tradeSearchLayout .tradeSearchFields input,#screen.tradeSearchLayout .tradeSearchFields select{width:100%;min-width:0;height:27px;padding:3px 6px;font:12px Arial,sans-serif;color:#222;background:#fff;border:1px solid #c4c4c4;border-radius:2px}
 #screen.tradeSearchLayout .tradeSearchActions{text-align:center;margin-top:10px}
 #screen.tradeSearchLayout .tradeSearchActions .action{min-width:110px;min-height:28px;padding:5px 18px;font-size:12px}
 #screen.tradeSearchLayout #tradeSearchTableWrap{height:calc(100vh - 294px);min-height:330px;overflow:auto;border:1px solid #bbb;background:repeating-linear-gradient(to bottom,#fff 0,#fff 25px,#e4e4e4 25px,#e4e4e4 26px,#f7f7f7 26px,#f7f7f7 51px,#e4e4e4 51px,#e4e4e4 52px)}
 #screen.tradeSearchLayout .table{margin:0;table-layout:fixed;min-width:1110px;background:#fff;border:0;font-size:12px}
 #screen.tradeSearchLayout .table th,#screen.tradeSearchLayout .table td{height:26px;padding:3px 5px;border:1px solid #d1d1d1;vertical-align:middle;overflow-wrap:anywhere;font-size:12px}
 #screen.tradeSearchLayout .table th{position:sticky;top:0;z-index:1;background:#e9e9ee;font-weight:600;white-space:normal}
 #screen.tradeSearchLayout .table th:nth-child(1){width:42px}
 #screen.tradeSearchLayout .table th:nth-child(2){width:85px}
 #screen.tradeSearchLayout .table th:nth-child(3){width:79px}
 #screen.tradeSearchLayout .table th:nth-child(4){width:150px}
 #screen.tradeSearchLayout .table th:nth-child(5){width:92px}
 #screen.tradeSearchLayout .table th:nth-child(6){width:175px}
 #screen.tradeSearchLayout .table th:nth-child(7){width:95px}
 #screen.tradeSearchLayout .table th:nth-child(8){width:51px}
 #screen.tradeSearchLayout .table th:nth-child(9){width:96px}
 #screen.tradeSearchLayout .table th:nth-child(10){width:135px}
 #screen.tradeSearchLayout .table th:nth-child(11){width:95px}
 #screen.tradeSearchLayout .table .tradeSearchAmount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
 #screen.tradeSearchLayout .tradeSearchDocument{padding:0;border:0;background:transparent;color:var(--n);font:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
 #screen.tradeSearchLayout .status{display:inline-block;padding:1px 4px;border-radius:2px;font-size:11px;line-height:16px}
 #screen.tradeSearchLayout .emptyHint{text-align:center;height:52px;color:#666}
 #screen.tradeSearchLayout #tradeSearchPaging{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;margin-top:5px;font-size:12px;color:#555}
 #screen.tradeSearchLayout #tradeSearchPaging button{height:25px;min-width:28px;padding:0 6px;border:1px solid #bfbfbf;border-radius:2px;background:#fafafa;color:#333;cursor:pointer}
 #screen.tradeSearchLayout #tradeSearchPaging button:disabled{color:#aaa;cursor:default}
 #screen.tradeSearchLayout #tradeSearchPageLabel{min-width:155px;text-align:center;font-variant-numeric:tabular-nums}
}

/* Source-backed offer and inventory search controls; no reference-only fields. */
@media screen{
 #quotesList>.filters,#inventoryScreen .stockDocumentSearchPanel .filters{grid-template-columns:110px minmax(160px,1fr) 85px 150px 85px minmax(140px,1fr)}
 #quoteReset,#stockDocumentReset{grid-column:1/-1;justify-self:end}
 #inventoryScreen .stockDocumentSearchPanel{margin-top:16px}
 #inventoryScreen .stockDocumentSearchPanel>h2{margin:0 0 8px}
 #inventoryScreen .stockDocumentSearchPanel .filters input,#inventoryScreen .stockDocumentSearchPanel .filters select{width:100%;min-width:0}
}
