.catalog-panel,.catalog-help { border:1px solid #dce3cb; border-radius:9px; background:#fff; }
.catalog-panel { padding:12px; }
.catalog-search label { display:block; float:none; width:auto; margin:0 0 6px; color:#425126; font-weight:bold; }
.catalog-search-row { display:flex; gap:5px; }
.catalog-search-row input[type="search"] { flex:1; min-width:0; width:0; border:1px solid #bec9a9; border-radius:6px; padding:7px; color:#353b2a; font:inherit; }
.catalog-search-button { position:relative; flex:0 0 38px; min-height:38px; border:0; border-radius:6px; background:#425126; color:#fff; cursor:pointer; }
.catalog-search-button::before { content:''; position:absolute; width:10px; height:10px; border:2px solid currentColor; border-radius:50%; top:10px; left:11px; }
.catalog-search-button::after { content:''; position:absolute; width:7px; height:2px; background:currentColor; top:23px; left:22px; transform:rotate(45deg); }
.catalog-panel :focus-visible,.catalog-help a:focus-visible { outline:2px solid #61752a; outline-offset:1px; }
.catalog-categories { margin-top:12px; padding-top:9px; border-top:1px solid #ebeee3; }
.catalog-categories > summary { cursor:pointer; padding:6px; color:#425126; font-weight:bold; }
.catalog-categories ul { margin:0; padding:0; list-style:none; }
.catalog-categories li { position:relative; margin:0; }
.catalog-categories li > a { display:block; border-radius:5px; padding:8px; color:#425126; overflow-wrap:anywhere; }
.catalog-categories li:has(> details) > a { padding-right:34px; }
.catalog-categories a:hover,.catalog-categories a[aria-current="page"],.catalog-help a:hover { background:#e7edda; }
.catalog-categories a[aria-current="page"] { font-weight:bold; }
.catalog-categories li > details > summary { position:absolute; top:0; right:0; display:grid; place-items:center; width:32px; height:32px; cursor:pointer; color:#425126; list-style:none; }
.catalog-categories li > details > summary::-webkit-details-marker { display:none; }
.catalog-categories li > details > summary::after { content:''; width:6px; height:6px; border-right:2px solid; border-bottom:2px solid; transform:rotate(-45deg); }
.catalog-categories li > details[open] > summary::after { transform:rotate(45deg); }
.catalog-categories li > details > ul { margin-left:12px; padding-left:5px; border-left:1px solid #dce3cb; }
.catalog-help { display:flex; flex-wrap:wrap; gap:4px; margin-top:10px; padding:6px; }
.catalog-help a { border-radius:5px; padding:6px; color:#425126; }
@media screen and (max-width:620px) {
    #content.catalog-with-sidebar:has(> #content-right) { display:flex; flex-direction:column; gap:12px; }
    #content.catalog-with-sidebar > #content-right { order:-1; margin-top:0; }
    .catalog-search-row input[type="search"] { font-size:16px; }
}

.catalog-categories li > a {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.catalog-category-icon {
    flex: 0 0 16px;
    height: 16px;
    margin-top: 1px;
    background: url('/images/catalog-category-icons.png') no-repeat 0 0 / 240px 16px;
}
.catalog-category-icon--router { background-position: -16px 0; }
.catalog-category-icon--switch { background-position: -32px 0; }
.catalog-category-icon--wifi { background-position: -48px 0; }
.catalog-category-icon--antenna { background-position: -64px 0; }
.catalog-category-icon--signal { background-position: -80px 0; }
.catalog-category-icon--tag { background-position: -96px 0; }
.catalog-category-icon--server { background-position: -112px 0; }
.catalog-category-icon--chip { background-position: -128px 0; }
.catalog-category-icon--cable { background-position: -144px 0; }
.catalog-category-icon--shield { background-position: -160px 0; }
.catalog-category-icon--power { background-position: -176px 0; }
.catalog-category-icon--license { background-position: -192px 0; }
.catalog-category-icon--support { background-position: -208px 0; }
.catalog-category-icon--module { background-position: -224px 0; }

.catalog-search { position: relative; }
.catalog-search-suggestions[hidden] { display: none; }
.catalog-search-suggestions {
    position: absolute;
    z-index: 20;
    inset-inline: 0;
    top: 100%;
    max-height: 340px;
    overflow: auto;
    margin: 4px 0 0;
    padding: 4px;
    list-style: none;
    border: 1px solid #dce3cb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(53,66,32,.16);
}
.catalog-search-suggestions li { margin: 0; }
.catalog-search-suggestions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 5px;
    color: #425126;
    font-size: 13px;
    line-height: 1.3;
}
.catalog-search-suggestions a:hover,
.catalog-search-suggestions a:focus-visible { background: #e7edda; }
.catalog-search-suggestions img {
    flex: 0 0 36px;
    width: 36px;
    height: 34px !important;
    object-fit: contain;
}

.site-sidebar-links { display: grid; gap: 2px; }
.site-sidebar-links a {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 8px;
    border-radius: 5px;
    color: #425126;
    overflow-wrap: anywhere;
}
.site-sidebar-links a:hover,
.site-sidebar-links a.scurrent,
.site-sidebar-links a.active {
    background: #e7edda;
    color: #303b24;
    text-decoration: none;
}
.site-sidebar-links a.scurrent,
.site-sidebar-links a.active { font-weight: bold; }


.catalog-help.site-sidebar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}
.catalog-help.site-sidebar-actions a {
    display: grid;
    place-items: center;
    min-height: 36px;
    box-sizing: border-box;
    padding: 6px 5px;
    color: #303b24;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}
.site-sidebar-actions a:first-child {
    border-radius: 8px 0 0 8px;
    background: #e7edda;
}
.site-sidebar-actions a:last-child {
    border-left: 1px solid #dce3cb;
    border-radius: 0 8px 8px 0;
}
.catalog-help.site-sidebar-actions a:hover,
.catalog-help.site-sidebar-actions a:focus-visible {
    background: #425126;
    color: #fff;
    text-decoration: none;
}
.catalog-help.site-sidebar-actions a:focus-visible {
    outline-color: #d6e5ad;
    outline-offset: -3px;
}


.catalog-search { background: transparent; }
.catalog-search label { margin-bottom: 6px; color: #303b24; font-size: 15px; }
.catalog-search-row {
    align-items: center;
    gap: 0;
    padding: 3px;
    border: 1px solid #aebc98;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(48,59,36,.08);
}
.catalog-search-row:focus-within { border-color: #61752a; box-shadow: 0 0 0 2px #e7edda; }
.catalog-search-row input[type="search"] {
    padding: 7px;
    border: 0;
    background: transparent;
    font-size: 14px;
}
.catalog-search-row input[type="search"]::placeholder { color: #596546; opacity: 1; }
.catalog-search-row input[type="search"]:focus-visible { outline: none; }
.catalog-search-row .catalog-search-button { flex-basis: 38px; min-height: 34px; }
.catalog-search-row .catalog-search-button::before { top: 8px; }
.catalog-search-row .catalog-search-button::after { top: 21px; }
@media screen and (max-width: 899px) {
    .catalog-search-row input[type="search"] { font-size: 16px; }
}
