/* ElectroMarket 0.8.0: unified catalog/filters and responsive polish */
:root { --v8-ink:#213d59; --v8-line:#dce7ee; --v8-selected:#176bc1; --v8-soft:#f2f5f6; }
/* v0.8.1: restore v0.7 centered container sizing with consistent side gutters.
   The engineering table and filters remain fluid INSIDE this container; large monitors
   receive wider outside margins rather than a stretched full-screen layout. */
:root { --site-content-max:1580px; }
.shell, .top .shell,
body.page-catalog main.shell,body.page-categories main.shell {
  width:min(var(--site-content-max),calc(100% - 48px));
  max-width:var(--site-content-max);
  margin-inline:auto;
}
@media(max-width:800px) {
  .shell, .top .shell,
  body.page-catalog main.shell,body.page-categories main.shell {
    width:calc(100% - 26px);
  }
}
@media(max-width:480px) {
  .shell, .top .shell,
  body.page-catalog main.shell,body.page-categories main.shell {
    width:calc(100% - 20px);
  }
}
/* No link underline anywhere in menu, including active text or child spans */
.catalog-trigger-wrap .mega-menu .mega-list a,
.catalog-trigger-wrap .mega-menu .mega-list a:hover,
.catalog-trigger-wrap .mega-menu .mega-list a.active,
.catalog-trigger-wrap .mega-menu .mega-list a .mega-item-text,
.catalog-trigger-wrap .mega-menu .mega-list a:hover .mega-item-text,
.catalog-trigger-wrap .mega-menu .mega-list a.active .mega-item-text,
.catalog-trigger-wrap .mega-menu .mega-list .mega-all-link { text-decoration:none!important; text-decoration-line:none!important; border-bottom:0!important; }
.catalog-trigger-wrap .mega-list a:hover .mega-item-text { text-decoration:none!important; }
.catalog-trigger-wrap .mega-list a { gap:11px!important; }
.catalog-trigger-wrap .mega-list a .menu-arrow { display:inline-flex;align-items:center;justify-content:center;align-self:center!important;line-height:1!important;font-size:19px!important;width:17px;min-width:17px;height:22px;color:#879aaf;transform:none!important;text-decoration:none!important; }
.catalog-trigger-wrap .mega-list a.active .menu-arrow,.catalog-trigger-wrap .mega-list a:hover .menu-arrow { color:#237bd2!important; transform:none!important; }
.catalog-trigger-wrap .mega-item-media { width:30px;height:30px;flex:0 0 30px;border-radius:7px;margin-left:4px; }
/* Home category rows: same grid geometry for expanded and empty groups */
.home-root-group>summary,.home-root-group>.home-root-static-summary { display:grid!important;grid-template-columns:44px minmax(0,1fr) auto 144px 20px;align-items:center;gap:14px;padding:10px 20px;min-height:76px;cursor:pointer; }
.home-root-static>.home-root-static-summary { cursor:default; }
.home-root-group .home-root-icon { width:42px;height:42px; }
.home-root-group .home-root-count { margin-left:0!important;justify-self:end; }
.home-root-group .home-root-link-btn { margin-left:0!important; width:144px;justify-self:end; }
.home-root-static .home-root-link-btn { grid-column:4; }
.home-root-expand { display:inline-flex;align-items:center;justify-content:center;grid-column:5; }
.home-root-static .home-root-link-btn + .home-root-expand { display:none; }
.home-root-group:not([open]) .home-subgroups {display:none}
.home-root-group .home-subgroups {padding-left:clamp(55px,5vw,85px)!important;}
.home-root-group .home-subgroups>a { padding:8px 12px!important; gap:14px; }
.home-root-group .home-subgroups>a img { margin-right:8px;flex:none;width:36px!important;height:36px!important;object-fit:contain; }
.home-root-group .home-subgroups .home-view-all {padding-left:59px!important;}
/* The whole selected category branch is outlined; nested levels have visible indents */
.v7-category-tree { border:0;background:transparent;gap:7px;overflow:visible; }
.v7-category-node {border:1px solid #dce7f1;border-radius:9px;background:white;overflow:hidden;}
.v7-category-node[open] {border:1px solid #91c1ec;box-shadow:0 0 0 1px #d5e8fb;}
.v7-category-node >summary,.v7-category-leaf {padding:7px 13px;min-height:49px;gap:14px;}
.v7-category-node img,.v7-category-leaf img {width:31px;height:31px;padding:2px;background:#edf4f8;border-radius:7px;object-fit:contain;flex:none;}
.v7-category-node .v7-category-children {padding-left:clamp(20px,3vw,50px);padding-right:7px;border-top:1px solid #e6eef6;}
.v7-category-node .v7-category-children>.v7-category-node,.v7-category-node .v7-category-children>.v7-category-leaf {margin:5px 0;border-radius:7px;}
.v7-category-node .v7-category-actions {justify-content:flex-end; padding:6px 13px!important;background:#f8fbfe;}
.v7-category-actions a {padding:6px 10px;border-radius:7px;color:#3775ae;font-weight:600;font-size:12px;}
.v7-category-actions a:hover {background:#e7f3ff;text-decoration:none;}
.v7-category-leaf {margin:4px 0;border:1px solid #ecf1f6;border-radius:8px;background:white;}
.v7-category-node .v7-category-name,.v7-category-leaf span:not(.v7-cat-chevron) {font-size:13px;font-weight:640;}
.v7-category-node .v7-cat-chevron,.v7-category-leaf .v7-cat-chevron {display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:17px;font-weight:400;min-width:18px;height:20px;color:#8a9bae;}
.v7-category-node[open]>summary .v7-cat-chevron {transform:rotate(180deg)}
.v8-category-controls {display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:14px 0 8px;font-size:12px;color:#536a80;}
.v8-layout-toggle {display:inline-flex;overflow:hidden;border:1px solid #cddfee;border-radius:8px;background:white;}
.v8-layout-toggle button {border:0;background:white;color:#3d6482;padding:9px 13px;cursor:pointer;font-size:12px;font-weight:650;}
.v8-layout-toggle button.active {background:#1275cc;color:white;}
.v7-category-tree[data-category-tree-view="text"] img {display:none!important;}
.v7-category-tree[data-category-tree-view="text"] .v7-category-node>summary,.v7-category-tree[data-category-tree-view="text"] .v7-category-leaf {min-height:36px;}
.v7-category-tree[data-category-tree-view="text"] .v7-category-children {padding-left:26px;}
/* Technical filtering: individual cards touching but legible */
.v4-filters .tech-filter-scroller {width:100%;background:#e2e9ee;}
.v4-filters .tech-filter-cards {background:#e1e8ee;gap:0!important;width:100%;}
.v4-filters[data-filter-layout="scrolling"] .tech-filter-cards {width:max-content;min-width:100%;display:flex;}
.v4-filters[data-filter-layout="scrolling"] .tech-filter-card {flex:1 0 clamp(194px,13.8vw,240px);width:clamp(194px,13.8vw,240px);max-width:none;}
.v4-filters[data-filter-layout="stacked"] .tech-filter-cards {grid-template-columns:repeat(auto-fit,minmax(min(100%,202px),1fr))!important;display:grid;}
.v4-filters .tech-filter-card {background:#f1f3f1!important;border:1px solid #d5dfe3!important;border-left:0!important;border-top:0!important;padding:12px!important;min-height:215px;}
.v4-filters .tech-filter-card:nth-child(2n) {background:#f4f5f5!important;}
.v4-filters .tech-filter-label {font-size:12px;color:#163852;min-height:32px;line-height:1.32;}
.v4-filters .tech-filter-options label:hover {background:#e4eff7;border-radius:4px;}
.v4-filters .tech-filter-options label {padding:2px 1px;}
.v4-filters .tech-filter-card input[type=search],.v4-filters .tech-filter-card input[type=number],.v4-filters .tech-filter-card select {background:#fff!important;}
/* Fluid text and controls */
.v6-filter-toolbar {padding:13px 16px!important;flex-wrap:wrap;}
.v6-filter-toolbar .v4-local-search {flex:1 1 390px;max-width:none!important;min-width:0!important;}
.v6-filter-toolbar .v4-filter-mode {flex:0 0 auto;align-self:center;}
.v6-category-narrow .v5-category-levels {justify-content:flex-start!important;gap:8px!important;}
.v6-category-narrow .v6-category-select {min-width:188px!important;max-width:290px;flex:0 1 240px!important;}
.v6-category-narrow .v5-category-narrow-label {width:100%;margin:0 0 13px!important;}
.v6-category-narrow .v6-category-caption {min-height:32px;}
/* Sort arrows only, independent ascending/descending and toggling off */
.tech-table .v8-sort-heading {display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;}
.tech-table .v8-sort-caption {font-weight:700;color:#fff;line-height:1.2;}
.tech-table .v8-sort-actions {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:0 0 23px;}
.tech-table .v8-sort-arrow {display:flex;align-items:center;justify-content:center;height:18px;width:22px;border:1px solid transparent;border-radius:4px;font-size:16px;line-height:1;color:#91a9bf!important;text-decoration:none!important;}
.tech-table .v8-sort-arrow:hover {color:white!important;border-color:#6584a0;background:#365572;}
.tech-table .v8-sort-arrow.is-active {background:#0879d4;border-color:#3ba0ed;color:white!important;}
/* Page jump: left-to-right baseline */
.v6-pagination-row .v7-jump-form {display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:nowrap!important;}
.v6-pagination-row .v7-jump-form label {display:inline-flex!important;align-items:center!important;gap:9px!important;line-height:1.3;white-space:nowrap;margin:0;}
.v6-pagination-row .v7-jump-form input {width:60px!important;min-width:60px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:6px 7px!important;}
.v6-pagination-row .v7-jump-form button {min-height:36px!important;height:36px!important;min-width:84px!important;padding:6px 12px!important;margin:0!important;}
.v6-pagination-row {gap:12px;}
.v6-admin-group>summary,.v6-admin-nav .side-link,.v6-admin-group>div .side-link {font-weight:500!important;}
.v6-admin-nav .side-link.active {font-weight:600!important;}
/* password strength checklist */
.v8-password-rules {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:4px 0 14px;padding:12px;border:1px solid #d7e4ed;border-radius:10px;background:#f7fafc;}
.v8-password-rules span {font-size:11px;color:#7b8b9c;display:flex;gap:6px;align-items:center;}
.v8-password-rules span::before {content:'○';font-weight:800;color:#93a9b9;}
.v8-password-rules span.valid {color:#18865e;}
.v8-password-rules span.valid::before {content:'✓';color:#18865e;}
.v8-password-rules span.invalid {color:#a74444;}
.v8-phone-divider {display:flex;align-items:center;gap:10px;font-size:12px;color:#708aa2;margin:16px 0 10px;}
.v8-phone-divider::before,.v8-phone-divider::after {content:'';flex:1;height:1px;background:#e0e8f0;}
@media(max-width:980px){.home-root-group>summary,.home-root-group>.home-root-static-summary {grid-template-columns:42px minmax(0,1fr) auto 132px 18px;padding:9px 12px;gap:9px}.home-root-group .home-root-link-btn {width:132px}.v8-layout-toggle {flex-shrink:0}}
@media(max-width:680px){.home-root-group>summary,.home-root-group>.home-root-static-summary{grid-template-columns:38px minmax(0,1fr) 18px;grid-template-areas:'art title arrow' 'art count button';gap:6px}.home-root-icon{grid-area:art}.home-root-meta{grid-area:title}.home-root-count{grid-area:count;justify-self:start!important}.home-root-expand{grid-area:arrow}.home-root-link-btn{grid-area:button;justify-self:end!important;padding:6px!important;width:auto!important;font-size:11px}.home-root-group .home-subgroups{padding-left:30px!important}.v8-password-rules{grid-template-columns:1fr}.v6-pagination-row .v7-jump-form{width:auto}.v8-category-controls{justify-content:flex-start;flex-wrap:wrap}}
.v5-auth-tabs{grid-template-columns:repeat(3,minmax(0,1fr));}
.v5-auth-tabs a{font-size:12px;padding:13px 5px;white-space:nowrap;}
.v8-api-integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0;}
.v8-api-integration-grid .panel{margin:0;}
.v8-api-state{font-size:12px;font-weight:750;color:#1b8a65;}
.v8-api-state.off{color:#a67129;}
@media(max-width:740px){.v8-api-integration-grid{grid-template-columns:1fr;}}
