/* Compact company-style phone toolbar. */
@media (max-width: 767px) {
    html.mobile-nav-ready body { padding-top: 48px; }
    .mobile-nav-ready .site-header > tbody > tr > td:first-child,
    .mobile-nav-ready .ui-header { position: fixed; inset: 0 0 auto; z-index: 1000; width: 100% !important; height: 48px; min-height: 48px; padding: 0 8px !important; margin: 0; background: #fff; border-bottom: 1px solid var(--portal-line); box-sizing: border-box; }
    .mobile-nav-ready .site-header > tbody > tr > td:first-child > a,
    .mobile-nav-ready .ui-header > a { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
    .mobile-nav-ready .site-header .mobile-menu-toggle,
    .mobile-nav-ready .ui-header .mobile-menu-toggle { position: absolute; left: 8px; top: 2px; width: 44px; height: 44px; min-width: 44px; padding: 10px; border: 0; background: #fff; justify-content: center; }
    .mobile-menu-toggle > span, .mobile-menu-toggle > .menu-chevron { display: none; }
    .mobile-menu-toggle > svg:first-child { width: 24px; height: 24px; }
    .mobile-drawer { inset: 0 auto 0 0; }
    .portal-filter select[name=coef], .portal-filter .filter-per-page-label { display: none; }
}
.site-main .breadcrumb { display: block; max-width: 100%; white-space: nowrap !important; overflow-x: auto; overflow-y: hidden; overflow-wrap: normal; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 4px; }
.site-main .breadcrumb * { white-space: nowrap !important; overflow-wrap: normal !important; }
.portal-pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 24px 0 16px; }
.pagination-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
#wrap .pagination-number, .pagination-current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--portal-line); border-radius: 4px; background: #fff; color: var(--portal-link); text-decoration: none; box-sizing: border-box; }
.pagination-current { background: var(--portal-selected); border-color: #a5c3da; font-weight: 700; }
.pagination-gap { display: inline-flex; align-items: center; justify-content: center; width: 16px; color: var(--portal-muted); }
.pagination-directions { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 320px; font-size: 14px; }
.pagination-directions > a, .pagination-directions > span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; }
.pagination-directions [aria-disabled=true], .pagination-status { color: var(--portal-muted); }
.sape-content, #show_context:has(> .informer-content) { margin-top: 0 !important; margin-bottom: 0 !important; }
.product-grid > .list, .board-grid > .list, .company-list-item { padding-top: 12px; padding-bottom: 12px; }
.theme1_blockpage { margin-top: 20px !important; }
.theme1_blockpage_content { padding: 8px 0 !important; }
.widget-track { display: flex !important; flex-wrap: nowrap; width: 100%; max-width: 100%; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.widget-track::-webkit-scrollbar { display: none; }
.widget-track > .widget-card { flex: 0 0 calc((100% - 32px) / 3); width: auto !important; min-width: 0; height: auto; margin: 0 !important; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; overflow-wrap: anywhere; }
.widget-track > .widget-card .name { max-height: none; }
.company-widget-card { min-height: 130px; padding: 12px; border: 1px solid var(--portal-line); border-radius: 4px; font-size: 14px; }
.company-widget-card > a { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; margin: 6px 0; }
.company-widget-card p { margin: 8px 0 0; color: var(--portal-muted); font-size: 13px; }
.company-widget-rank { color: var(--portal-muted); font-size: 12px; }
.company-widget-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--portal-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.blockpage_paginator { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 !important; }
.blockpage_pleft { order: 0; flex: 0 0 44px; }
.blockpage_pright { order: 2; flex: 0 0 44px; }
.theme1_blockpage_points.widget-dots { order: 1; display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: flex-start; gap: 0; float: none; margin: 0; overflow-x: auto; scrollbar-width: none; }
.widget-dot { display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; min-width: 24px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.widget-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b9c6d0; }
.widget-dot[aria-current=true]::before { background: var(--portal-link); }
.widget-loading { opacity: .6; }
.widget-error { margin: 0; padding: 12px 0; }
.widget-error button { min-height: 44px; margin-left: 8px; }
@media (max-width: 767px) {
    .pagination-numbers { gap: 4px; }
    #wrap .pagination-number, .pagination-current { min-width: 36px; padding: 6px 8px; }
    .widget-track > .widget-card { flex-basis: 100%; }
}
.portal-pagination { margin: 24px 0 16px !important; }
#wrap .portal-pagination .pagination-current { display: inline-flex; }
.theme1_blockpage { table-layout: fixed; width: 100%; max-width: 100%; }
.theme1_blockpage > tbody > tr > td, .theme1_blockpage_content { min-width: 0; }
.site-main .breadcrumb .float_right, .site-main .breadcrumb > [style*="float"] { float: none !important; display: inline !important; margin-left: 12px; }
@media (max-width: 767px) {
    .site-main select[name=coef], .site-main .filter-per-page-label { display: none; }
    html { scroll-padding-top: 56px; }
}
.sape-content .ust_bl_text { margin-top: 0; margin-bottom: 0; }
.theme1_blockpage { margin: 16px 0 !important; }
.theme1_blockpage > tbody > tr > td { padding-bottom: 0; }
.widget-track > .clear:empty { display: none; }
@media (max-width: 767px) {
    .theme1_blockpage_pages ul { flex-wrap: nowrap; }
    .theme1_blockpage_pages li { display: flex; flex: 1 1 0; min-width: 0; }
    .theme1_blockpage_pages li a { flex: 1 1 0; justify-content: center; text-align: center; white-space: normal; }
}
