/* 1PP: visually separate hierarchy; panels flow with the document */
.layout{align-items:start}
.layout>.pane{height:auto!important;max-height:none!important;overflow:visible!important}
.layout .values{height:auto!important;max-height:none!important;overflow:visible!important;grid-template-columns:repeat(3,minmax(0,1fr))}
#tree>.tree-row{margin-top:9px}
#tree>.tree-row>.tree-node{background:#e8eaed}
.tree-row{border-radius:5px}
.tree-row:has(>.cat){margin-bottom:3px}
.tree-row .cat{border:1px solid #dce1e5;background:#f3f4f6;border-radius:5px;padding:7px 8px}
.tree-row .cat:hover{background:#e4e8ed}
.tree-row .cat.active{background:#dbe8f6;border-color:#a6bdd6}
.tree-row[style*="13px"] .cat,.tree-row[style*="26px"] .cat,.tree-row[style*="39px"] .cat,.tree-row[style*="52px"] .cat{background:#fafbfc}
#tree>.tree-row .cat{background:#dfe3e7;font-weight:700;border-color:#c5ccd2;padding:10px 8px}
#tree>.tree-row .cat.active{background:#caddef}
.filter-group{background:#f7f8fa}
@media(max-width:680px){.layout .values{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Dense catalog rows: keep all offer information without card-height expansion */
.results .scroll table{table-layout:fixed!important;min-width:780px!important}
.results th,.results td{padding:3px 5px!important;vertical-align:middle!important;font-size:11px!important;line-height:1.15!important}
.results th:nth-child(1){width:36%}.results th:nth-child(2){width:13%}.results th:nth-child(3){width:11%}.results th:nth-child(4){width:10%}.results th:nth-child(5){width:13%}.results th:nth-child(6){width:17%}
.results td:first-child{min-width:0!important}.results .item img{width:25px!important;height:25px!important}.results .item{gap:5px!important}
.results td a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.results td:last-child{font-size:10px!important}
.results .supplier-entry{padding:0!important;margin:0!important;border:0!important;line-height:1.12!important}
.results .supplier-name{font-size:10px!important;font-weight:700!important;margin:0 3px 0 0!important}
.results .supplier-meta{display:inline!important;margin:0!important;font-size:9px!important;color:#75808b!important}
.results .status-pill{font-size:9px!important;padding:2px 5px!important}

.results .item img{width:68px!important;height:68px!important;min-width:68px!important;object-fit:contain!important}.results .item{align-items:center!important}
/* Compact desktop table: reserve full cart-button column. */
.layout{grid-template-columns:235px 285px minmax(0,1fr)!important;gap:8px!important}
.results{min-width:0!important}
.results .scroll{overflow-x:auto!important;max-width:100%!important}
.results table{width:100%!important;min-width:780px!important;table-layout:fixed!important}
.results th:nth-child(1){width:31%!important}.results th:nth-child(2){width:14%!important}.results th:nth-child(3){width:10%!important}.results th:nth-child(4){width:10%!important}.results th:nth-child(5){width:12%!important}.results th:nth-child(6){width:15%!important}.results th:nth-child(7){width:8%!important}
.results th,.results td{padding:5px 4px!important}
.results td:last-child,.results th:last-child{min-width:74px!important;white-space:normal!important;text-align:center!important}
.results button[data-add]{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:normal!important;font-size:10px!important;line-height:1.1!important;padding:6px 3px!important;border-radius:4px}
.results .item img{width:50px!important;height:50px!important;min-width:50px!important}
@media(max-width:1100px){
.layout{grid-template-columns:minmax(0,1fr)!important}
.layout>.pane{max-height:none!important;overflow:visible!important}
.results{grid-column:auto!important}
}
@media(max-width:700px){
main{padding:9px!important}
.top{display:grid!important;grid-template-columns:1fr auto!important}
.top input{grid-column:1/-1;min-width:0!important}
#operations{padding:8px!important}
#opsRows{gap:5px!important}
.results .scroll{overflow:visible!important;border:0!important}
.results table,.results tbody{display:block!important;min-width:0!important;width:100%!important}
.results thead{display:none!important}
.results tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 9px;padding:10px 8px;margin-bottom:9px;border:1px solid #dce2e7;border-radius:8px;background:#fff}
.results td{display:block!important;border:0!important;padding:2px!important;min-width:0!important;width:auto!important;font-size:12px!important}
.results td:nth-child(1){grid-column:1/-1!important;font-size:13px!important}
.results td:nth-child(2){grid-column:1!important}
.results td:nth-child(3){grid-column:2!important}
.results td:nth-child(4){grid-column:1!important;font-size:13px!important}
.results td:nth-child(5){grid-column:2!important;text-align:right!important}
.results td:nth-child(6){grid-column:1!important}
.results td:nth-child(7){grid-column:2!important;align-self:center!important;min-width:105px!important}
.results button[data-add]{width:100%!important;white-space:nowrap!important;font-size:12px!important;padding:9px 8px!important}
.results .item img{width:58px!important;height:58px!important;min-width:58px!important}
.results td a{-webkit-line-clamp:3!important}
.results .supplier-meta{display:block!important}
}/* 1PP definitive desktop layout: readable dense table, fully visible cart */
@media(min-width:1101px){
.layout{grid-template-columns:215px 265px minmax(0,1fr)!important;gap:8px!important}
.results{min-width:0!important;width:100%!important}
.results .scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important}
.results table{min-width:0!important;width:100%!important;table-layout:fixed!important}
.results th:nth-child(1){width:32%!important}
.results th:nth-child(2){width:13%!important}
.results th:nth-child(3){width:10%!important}
.results th:nth-child(4){width:10%!important}
.results th:nth-child(5){width:11%!important}
.results th:nth-child(6){width:14%!important}
.results th:nth-child(7){width:10%!important}
.results th,.results td{font-size:12.5px!important;line-height:1.28!important;padding:6px 5px!important;vertical-align:middle!important}
.results th:last-child,.results td:last-child{min-width:0!important;width:auto!important;padding:5px!important}
.results button[data-add]{font-size:12px!important;min-width:0!important;width:100%!important;white-space:nowrap!important;padding:7px 3px!important}
.results .item img{width:54px!important;height:54px!important;min-width:54px!important}
.results .supplier-name{font-size:12px!important}
.results .supplier-meta{font-size:11px!important}
}

/* Explicit final overrides for compact totals and uniform sort links */
#operations #opsRows>div:first-child,#operations #publishedCount{font:600 12px/18px Arial,sans-serif!important;letter-spacing:0!important}
#operations #opsRows>div:first-child b{font:inherit!important}
.results .sort-open b{font:700 13px/20px Arial,sans-serif!important}
.results .sort-open button,.results .sort-open button.selected{font:400 13px/20px Arial,sans-serif!important;letter-spacing:0!important;text-shadow:none!important;text-decoration:none!important;color:#657180!important}
.results .sort-open button.selected{color:#283b50!important;border-bottom:1px solid #283b50!important}
