body.companies-page {
    --companies-mobile-quote-fab-size: 3.5rem;
    --companies-mobile-quote-fab-clearance: 4.75rem;
    --companies-mobile-bottom-nav-inner-min-height: 2.35rem;
    --companies-mobile-bottom-nav-inner-padding-block: 0.21rem;
    --companies-mobile-bottom-nav-inner-padding-inline: 0.46rem;
    --companies-mobile-bottom-nav-btn-min-height: 2.1rem;
    --companies-mobile-bottom-nav-btn-max-width: 2.98rem;
    --companies-mobile-bottom-nav-btn-padding-block: 0.25rem;
    --companies-mobile-bottom-nav-btn-padding-inline: 0.32rem;
    --companies-mobile-bottom-nav-btn-radius: 0.49rem;
    --companies-mobile-bottom-nav-icon-size: 1.35rem;
    --companies-mobile-bottom-nav-map-icon-size: 1.4rem;
    --companies-mobile-bottom-nav-history-icon-size: 1.35rem;
    --companies-mobile-bottom-nav-map-emoji-size: 1.85rem;
    --companies-mobile-bottom-nav-history-font-size: 0.82rem;
}

.companies-page {
    --companies-map-max-height: 700px;
    --companies-map-panel-header-height: 4.75rem;
    --companies-map-viewport-height: min(calc(100vh - 180px), var(--companies-map-max-height));
    --companies-map-panel-height: calc(var(--companies-map-viewport-height) + var(--companies-map-panel-header-height));
    --companies-side-panel-width: clamp(300px, 42%, 520px);
    --companies-mobile-chrome-height: 9.5rem;
    --companies-mobile-find-shell-height: calc(100dvh - var(--companies-mobile-chrome-height));
    --companies-mobile-top-nav-offset: 0px;
    --companies-mobile-impersonation-offset: 0px;
    --companies-mobile-navbar-offset: 0px;
    --companies-mobile-navbar-height: 3.5rem;
    --companies-mobile-bottom-chrome-offset: 0px;
    --companies-mobile-bottom-nav-offset: calc(var(--companies-mobile-bottom-chrome-offset) + env(safe-area-inset-bottom, 0px));
    --companies-quote-emoji-mask: url("../images/quote_emoji_mask.png");
    --companies-quote-emoji-color: #fff;
    --companies-quote-emoji-size: 1.35rem;
}

.companies-page .companies-quote-emoji-graphic {
    display: inline-block;
    flex: 0 0 auto;
    width: var(--companies-quote-emoji-size, 1.35rem);
    height: var(--companies-quote-emoji-size, 1.35rem);
    background-color: var(--companies-quote-emoji-color, #fff);
    /* PNG alpha mask — more reliable than external SVG on Samsung Internet. */
    -webkit-mask-image: url("../images/quote_emoji_mask.png");
    mask-image: url("../images/quote_emoji_mask.png");
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-origin: border-box;
    mask-origin: border-box;
    -webkit-mask-clip: border-box;
    mask-clip: border-box;
}

.companies-page .companies-page-title {
    line-height: 1.35;
}

.companies-page .companies-quote-hint-trigger {
    cursor: help;
}

.companies-page .companies-map-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: var(--companies-map-panel-height);
}

.companies-page .companies-map-layout.is-quote-open {
    align-items: stretch;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.companies-page .companies-map-layout.is-quote-open:has(#companiesPortfolioSection:not(.d-none)) {
    align-items: start;
}

.companies-page .companies-map-layout.is-quote-open .companies-map-panel,
.companies-page .companies-map-layout.is-quote-open .companies-quote-panel {
    border-radius: 0;
    box-shadow: none;
}

.companies-page .companies-map-layout.is-quote-open .companies-quote-panel {
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .companies-map-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.companies-page .companies-map-layout.is-quote-open .companies-map-column {
    flex: 1 1 58%;
}

.companies-page .companies-map-panel {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    height: var(--companies-map-panel-height);
    max-height: var(--companies-map-panel-height);
    min-height: calc(280px + var(--companies-map-panel-header-height));
}

.companies-page .companies-map-panel-header {
    flex: 0 0 auto;
    min-width: 0;
}

.companies-page .companies-map-panel .companies-map-root {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: #1a4d8c;
}

.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)) {
    display: grid;
    align-items: start;
    min-height: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.companies-page .companies-map-layout.is-quote-open:has(#companiesPortfolioSection:not(.d-none)) {
    grid-template-columns: minmax(0, 1fr) var(--companies-side-panel-width);
    grid-template-areas:
        "map-col panel"
        "portfolio portfolio";
}

.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)):not(.is-quote-open) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "map-col"
        "portfolio";
}

.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)) .companies-map-column {
    grid-area: map-col;
    flex: none;
}

.companies-page .companies-map-layout.is-quote-open:has(#companiesPortfolioSection:not(.d-none)) .companies-quote-panel {
    grid-area: panel;
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)) .companies-portfolio-section {
    grid-area: portfolio;
    margin-top: 0;
    min-width: 0;
}

.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)) .companies-map-panel,
.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)) .companies-quote-panel {
    border-radius: 0;
    box-shadow: none;
}

.companies-page .companies-map-layout:has(#companiesPortfolioSection:not(.d-none)) .companies-portfolio-panel {
    border-radius: 0;
    box-shadow: none;
}

.companies-page .companies-quote-panel {
    flex: 0 0 var(--companies-side-panel-width);
    width: var(--companies-side-panel-width);
    max-width: 520px;
    min-width: 300px;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: var(--companies-map-panel-height);
}

.companies-page .companies-quote-panel-inner {
    height: var(--companies-map-panel-height);
    max-height: var(--companies-map-panel-height);
    min-height: calc(280px + var(--companies-map-panel-header-height));
    overflow-y: auto;
    padding: 1rem 1.1rem 1.25rem;
}

.companies-page .companies-quote-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.companies-page .companies-quote-field-emoji {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.companies-page .companies-quote-form .form-control.companies-quote-locality-readonly {
    background-color: var(--bs-secondary-bg, #e9ecef);
    cursor: default;
}

.companies-page .companies-quote-form .companies-quote-message-field {
    resize: none;
    overflow-y: hidden;
}

.companies-page .companies-quote-form .companies-quote-message-field.is-scrollable {
    overflow-y: auto;
}

.companies-page .companies-quote-detail-field label .companies-quote-field-emoji {
    margin-right: 0.2rem;
}

.companies-page .companies-company-logo-header {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.companies-page .companies-mobile-company-top-bar-logo {
    display: none;
}

.companies-page .companies-company-logo-header .company-map-marker,
.companies-page .companies-mobile-company-top-bar-logo .company-map-marker {
    flex-shrink: 0;
}

.companies-page .companies-company-logo-header .company-map-marker {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.companies-page .companies-mobile-company-top-bar-logo .company-map-marker {
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.1);
}

.companies-page .companies-company-name-header {
    font-size: 1.05rem;
    text-align: center;
}

.companies-page .companies-company-view .community-company-contacts.card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.companies-page .companies-company-view .community-company-contacts-inner {
    display: block;
}

.companies-page .companies-company-view .community-company-contacts-body {
    width: 100%;
}

.companies-page .companies-company-view .community-company-contacts-list {
    gap: 0.75rem;
}

.companies-page .companies-company-view .community-company-contacts-social-list.is-icon-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.companies-page .companies-company-view .community-company-contacts-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    color: var(--social-brand-color, #64748b);
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.companies-page .companies-company-view .community-company-contacts-social-link:hover,
.companies-page .companies-company-view .community-company-contacts-social-link:focus-visible {
    color: var(--social-brand-color, #64748b);
    text-decoration: none;
    transform: translateY(-1px);
    opacity: 0.88;
}

.companies-page .companies-company-view .community-company-contacts-social-link--instagram {
    color: #c13584;
}

.companies-page .companies-company-view .community-company-contacts-social-link--facebook {
    color: #1877f2;
}

.companies-page .companies-company-view .community-company-contacts-social-link--youtube {
    color: #ff0000;
}

.companies-page .companies-company-view .community-company-contacts-social-link--linkedin {
    color: #0a66c2;
}


.companies-page .companies-quote-form select optgroup {
    font-weight: 600;
    font-style: normal;
    color: #475569;
}

.companies-page .companies-quote-form select optgroup.is-catalog-product-group {
    color: #0f766e;
}

.companies-page .companies-quote-form select optgroup.is-catalog-service-group {
    color: #1d4ed8;
}

.companies-page .community-company-service-group-heading.is-catalog-product-group {
    color: #0f766e;
}

.companies-page .community-company-service-group-heading.is-catalog-service-group {
    color: #1d4ed8;
}

.companies-page .companies-company-view .community-company-contacts-item-text a,
.companies-page .companies-company-view .community-company-contacts-item-text a:hover {
    text-decoration: none;
}

.companies-page .companies-quote-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.companies-page .companies-quote-panel-header.is-centered-panel-title {
    justify-content: center;
    position: relative;
}

.companies-page .companies-quote-panel-header.is-centered-panel-title #companiesSidePanelTitle {
    flex: 1 1 auto;
    text-align: center;
}

.companies-page .companies-quote-panel-header.is-centered-panel-title .companies-quote-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.companies-page .companies-quote-panel-header.is-company-panel-title {
    justify-content: center;
    position: relative;
}

.companies-page .companies-quote-panel-header.is-company-panel-title #companiesSidePanelTitle {
    flex: 1 1 auto;
    text-align: center;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-quote-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-panel-admin-actions {
    position: absolute;
    left: 0;
    top: 0.65rem;
    transform: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding-top: 0.15rem;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-delete-btn,
.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-website-agent-btn,
.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-impersonate-btn {
    line-height: 1;
    padding: 0.28rem 0.4rem;
    text-decoration: none;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-delete-btn {
    color: #dc3545;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-website-agent-btn {
    color: #0d6efd;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-impersonate-btn {
    color: #6f42c1;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-delete-btn:hover,
.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-delete-btn:focus {
    color: #bb2d3b;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-website-agent-btn:hover,
.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-website-agent-btn:focus {
    color: #0a58ca;
}

.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-impersonate-btn:hover,
.companies-page .companies-quote-panel-header.is-company-panel-title .companies-company-impersonate-btn:focus {
    color: #59359a;
}

.companies-page .companies-company-delete-btn:disabled,
.companies-page .companies-company-website-agent-btn:disabled,
.companies-page .companies-company-impersonate-btn:disabled {
    opacity: 0.55;
    pointer-events: none;
}

.companies-page .companies-company-website-agent-btn.is-running {
    opacity: 1;
    color: #0d6efd;
}

.companies-page .companies-company-website-agent-btn.is-running .fa-robot {
    transform-origin: center center;
}

.companies-page .companies-quote-close {
    color: #64748b;
    text-decoration: none;
    padding: 0.15rem 0.35rem;
}

.companies-page .companies-find-proceed-actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.companies-page .companies-find-proceed-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 50%;
}

.companies-page .companies-quote-geocode-status {
    padding: 0.4rem 0.55rem;
    border-radius: 0.45rem;
    border: 1px solid transparent;
}

.companies-page #companiesQuoteSubmitBtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.companies-page .companies-quote-attention-flash {
    animation: companies-quote-attention-flash 0.5s ease-in-out 2;
}

.companies-page .companies-quote-geocode-status.companies-quote-attention-flash,
.companies-page .companies-confidence-threshold-wrap.companies-quote-attention-flash {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.28);
}

@keyframes companies-quote-attention-flash {
    0%,
    100% {
        background-color: rgba(220, 53, 69, 0.06);
    }

    50% {
        background-color: rgba(220, 53, 69, 0.2);
    }
}

.companies-page .companies-quote-form .form-control.companies-quote-field-error,
.companies-page .companies-quote-form .form-select.companies-quote-field-error,
.companies-page #companiesQuoteStep1View .form-control.companies-quote-field-error,
.companies-page #companiesQuoteStep1View .form-select.companies-quote-field-error,
.companies-page .companies-find-form .form-control.companies-quote-field-error,
.companies-page .companies-find-form .form-select.companies-quote-field-error {
    animation: companies-quote-field-flash 0.5s ease-in-out 2;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.28);
}

@keyframes companies-quote-field-flash {
    0%,
    100% {
        background-color: rgba(220, 53, 69, 0.06);
    }
    50% {
        background-color: rgba(220, 53, 69, 0.2);
    }
}

.companies-page .companies-quote-geocode-status.is-pending {
    color: #475569;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
}

.companies-page .companies-quote-geocode-status.is-ok {
    color: #166534;
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.22);
    padding: 0.55rem 0.65rem;
}

.companies-page .companies-quote-geocode-status.is-ok .companies-quote-companies-logos {
    margin: 0;
}

.companies-page .companies-quote-geocode-status.is-failed {
    color: #991b1b;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

.companies-page .companies-quote-geocode-hint {
    color: inherit;
    opacity: 0.92;
}

.companies-page .companies-quote-history-draft {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b21a8;
}

.companies-page .companies-quote-history-item.is-draft .companies-quote-history-item-title {
    color: #5b21b6;
}

.companies-page .companies-quote-detail-draft-banner {
    font-size: 0.875rem;
}

.companies-page .companies-quote-success-lead {
    font-weight: 600;
    color: #166534;
}

.companies-page .companies-quote-companies-logos,
.companies-page .companies-quote-success-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.companies-page .companies-quote-panel .companies-quote-companies-logos:has(> .companies-quote-company-item) {
    --quote-companies-logos-row-height: calc(52px + 0.2rem + 0.75rem);
    max-height: calc(var(--quote-companies-logos-row-height) * 2 + 0.55rem);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    align-content: flex-start;
}

.companies-page .companies-quote-company-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    max-width: 76px;
}

.companies-page .companies-quote-company-name,
.companies-page .companies-quote-company-distance {
    font-size: 0.62rem;
    line-height: 1.15;
    text-align: center;
    color: #475569;
    font-weight: 600;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.companies-page .companies-quote-company-email-failed {
    font-size: 0.58rem;
    line-height: 1.1;
    text-align: center;
    color: #b45309;
    font-weight: 700;
}

.companies-page .companies-quote-company-logo.is-email-failed {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.companies-page .companies-quote-history-email-pending {
    color: #b45309;
    font-weight: 600;
}

.companies-page .companies-quote-history-item.has-email-pending {
    border-left: 3px solid #f59e0b;
}

.companies-page .companies-quote-email-delivery-modes {
    border-color: rgba(15, 23, 42, 0.12) !important;
}

.companies-page .companies-quote-email-delivery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.35rem;
    border-radius: 0.4rem;
    background: rgba(15, 23, 42, 0.04);
}

.companies-page .companies-quote-email-delivery-row.is-sent {
    background: rgba(25, 135, 84, 0.18);
    border: 1px solid rgba(25, 135, 84, 0.45);
}

.companies-page .companies-quote-email-delivery-row.is-sent .companies-quote-email-delivery-label {
    color: #157347;
}

.companies-page .companies-quote-email-delivery-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.companies-page .companies-quote-email-delivery-indicator {
    min-width: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1;
}

.companies-page .companies-quote-whatsapp-delivery-icon {
    font-size: 1.15rem;
    color: #25d366;
}

.companies-page .companies-confidence-threshold {
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.companies-page .companies-confidence-threshold-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}

.companies-page .companies-confidence-threshold-hint {
    color: #64748b;
    line-height: 1.35;
}

.companies-page .companies-confidence-threshold-slider {
    --confidence-tick-size: 1.28rem;
    padding-top: 0.05rem;
}

.companies-page .companies-confidence-threshold-track-wrap {
    position: relative;
    height: var(--confidence-tick-size);
    margin: 0 0.65rem;
}

.companies-page .companies-confidence-threshold-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0.46rem;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.companies-page .companies-confidence-threshold-exclude {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc((var(--min-score, 0) / var(--confidence-max-score, 9)) * 100%);
    height: 0.46rem;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.82));
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    pointer-events: none;
    z-index: 1;
    transition: width 0.15s ease;
}

.companies-page .companies-confidence-threshold-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.companies-page .companies-confidence-threshold-ticks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.companies-page .companies-confidence-threshold-tick {
    position: absolute;
    top: 50%;
    left: calc((var(--tick-score, 0) / var(--confidence-max-score, 9)) * 100%);
    transform: translate(-50%, -50%);
    width: var(--confidence-tick-size);
    height: var(--confidence-tick-size);
    pointer-events: auto;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--tick-color, #94a3b8);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.companies-page .companies-confidence-threshold-tick-value {
    pointer-events: none;
}

.companies-page .companies-confidence-threshold-tick.is-included {
    opacity: 1;
}

.companies-page .companies-confidence-threshold-tick.is-excluded {
    opacity: 0.38;
}

.companies-page .companies-confidence-threshold-tick.is-active {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
    z-index: 1;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--tick-color, #94a3b8) 32%, transparent),
        0 2px 8px rgba(15, 23, 42, 0.24);
}

.companies-page .companies-confidence-threshold-tick:hover,
.companies-page .companies-confidence-threshold-tick:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    outline: none;
}

.companies-page .companies-confidence-threshold-tick.is-active:hover,
.companies-page .companies-confidence-threshold-tick.is-active:focus-visible {
    transform: translate(-50%, -50%) scale(1.14);
}

.companies-page .companies-distance-threshold-wrap.companies-quote-attention-flash {
    animation: companies-quote-attention-flash 0.85s ease-in-out 2;
}

.companies-page .companies-distance-threshold-collapsible.companies-quote-attention-flash {
    animation: companies-quote-attention-flash 0.85s ease-in-out 2;
}

.companies-page .companies-distance-threshold-collapsible {
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.companies-page .companies-distance-threshold-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 0;
    background: transparent;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
}

.companies-page .companies-distance-threshold-toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.companies-page .companies-distance-threshold-toggle-icon {
    color: #667eea;
    transition: transform 0.2s ease;
}

.companies-page .companies-distance-threshold-toggle.is-expanded .companies-distance-threshold-toggle-icon,
.companies-page .companies-distance-threshold-toggle[aria-expanded="true"] .companies-distance-threshold-toggle-icon {
    transform: rotate(180deg);
}

.companies-page .companies-distance-threshold-toggle:hover,
.companies-page .companies-distance-threshold-toggle:focus-visible {
    color: #667eea;
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(102, 126, 234, 0.18);
}

.companies-page .companies-distance-threshold-collapsible .collapse.show + .companies-distance-threshold-wrap,
.companies-page .companies-distance-threshold-collapsible #companiesFindDistanceThresholdBody.show .companies-distance-threshold-wrap {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.companies-page .companies-distance-threshold-collapsible .companies-distance-threshold {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.35rem 0.8rem 0.75rem;
}

.companies-page .companies-distance-threshold {
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.companies-page .companies-distance-threshold-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}

.companies-page .companies-distance-threshold-hint {
    color: #64748b;
    line-height: 1.35;
}

.companies-page .companies-distance-threshold-slider {
    --distance-tick-size: 1.28rem;
    padding-top: 0.05rem;
}

.companies-page .companies-distance-threshold-track-wrap {
    position: relative;
    height: var(--distance-tick-size);
    margin: 0 0.65rem;
}

.companies-page .companies-distance-threshold-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0.46rem;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.companies-page .companies-distance-threshold-exclude {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc((var(--step-index, 0) / var(--distance-max-step-index, 8)) * 100%);
    height: 0.46rem;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.82));
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    pointer-events: none;
    z-index: 1;
    transition: width 0.15s ease;
}

.companies-page .companies-distance-threshold-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.companies-page .companies-distance-threshold-ticks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.companies-page .companies-distance-threshold-tick {
    position: absolute;
    top: 50%;
    left: calc((var(--tick-index, 0) / var(--distance-max-step-index, 8)) * 100%);
    transform: translate(-50%, -50%);
    width: var(--distance-tick-size);
    height: var(--distance-tick-size);
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: #94a3b8;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
    transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.companies-page .companies-distance-threshold-tick-value {
    display: block;
    transform: scale(0.92);
}

.companies-page .companies-distance-threshold-tick.is-included {
    background: #667eea;
}

.companies-page .companies-distance-threshold-tick.is-excluded {
    background: #94a3b8;
}

.companies-page .companies-distance-threshold-tick.is-active {
    background: #764ba2;
    box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.25), 0 2px 6px rgba(15, 23, 42, 0.2);
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 2;
}

.companies-page .companies-distance-threshold-tick:hover,
.companies-page .companies-distance-threshold-tick:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    outline: none;
}

.companies-page .companies-distance-threshold-tick.is-active:hover,
.companies-page .companies-distance-threshold-tick.is-active:focus-visible {
    transform: translate(-50%, -50%) scale(1.14);
}

.companies-page .companies-quote-company-logo,
.companies-page .companies-quote-success-logo {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 0.55rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.companies-page .companies-quote-company-logo img,
.companies-page .companies-quote-company-logo .company-map-marker-shell img,
.companies-page .companies-quote-success-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.companies-page .companies-quote-company-logo .company-map-marker-shell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companies-page .companies-quote-company-logo.is-portfolio-trigger,
.companies-page .companies-quote-company-logo.is-company-panel-trigger {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.companies-page .companies-quote-company-logo.is-portfolio-trigger:hover,
.companies-page .companies-quote-company-logo.is-portfolio-trigger:focus-visible,
.companies-page .companies-quote-company-logo.is-company-panel-trigger:hover,
.companies-page .companies-quote-company-logo.is-company-panel-trigger:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    outline: none;
}

.companies-page .companies-quote-company-logo.is-portfolio-active {
    box-shadow:
        0 0 0 3px color-mix(in srgb, #2563eb 38%, transparent),
        0 2px 10px rgba(37, 99, 235, 0.22);
}

.companies-page .companies-quote-company-logo-remove {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.58rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    z-index: 2;
}

.companies-page .companies-quote-company-logo-remove:hover {
    background: #bb2d3b;
}

.companies-page .companies-quote-confirm-companies {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
    word-break: break-word;
}

.companies-page .companies-quote-modal-success-lead {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.5;
}

#companiesQuoteConfirmModal .companies-quote-modal-success-logos.is-scrollable {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    align-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
}

#companiesQuoteConfirmModal .companies-quote-modal-success-logos.is-scrollable::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.companies-page .companies-quote-submission-experience {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .companies-quote-submission-experience-label {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.5rem;
}

.companies-page .companies-quote-experience-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

.companies-page .companies-quote-experience-star {
    border: none;
    background: transparent;
    padding: 0.2rem 0.25rem;
    line-height: 1;
    font-size: 1.65rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.12s ease, transform 0.12s ease;
}

.companies-page .companies-quote-experience-star:hover,
.companies-page .companies-quote-experience-star.is-highlighted {
    color: #f59e0b;
}

.companies-page .companies-quote-experience-star:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.companies-page .companies-map-actions-wrap {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.35rem;
    margin-right: 0.35rem;
}

.companies-page .companies-territory-control-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    margin-left: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    min-width: 10.5rem;
    max-width: 14rem;
}

.companies-page .companies-territory-control-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.companies-page .companies-territory-select {
    min-height: 2rem;
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 0.88rem;
}

.companies-page .companies-territory-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.25);
}

.companies-page .leaflet-top.leaflet-right .companies-map-actions-wrap {
    clear: none;
}

.companies-page .companies-recent-quotes-control-wrap {
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    max-width: none;
}

.companies-page .companies-recent-quotes-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.45rem;
    background: rgba(100, 116, 139, 0.82);
    padding: 0.28rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    line-height: 0;
}

.companies-page .companies-recent-quotes-toggle-icon {
    display: block;
    width: 1.65rem;
    height: 1.65rem;
    --companies-quote-emoji-size: 1.65rem;
    --companies-quote-emoji-color: #fff;
    pointer-events: none;
}

.companies-page .companies-recent-quotes-toggle:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(100, 116, 139, 0.95);
}

.companies-page .companies-recent-quotes-toggle.is-active {
    background: rgba(34, 197, 94, 0.88);
    border-color: rgba(255, 255, 255, 0.9);
}

.companies-page .companies-recent-quotes-toggle.is-active:hover {
    background: rgba(34, 197, 94, 0.98);
}

.companies-page .companies-recent-quotes-toggle.is-flash {
    animation: companies-recent-quotes-toggle-flash 2.2s ease-out;
}

@keyframes companies-recent-quotes-toggle-flash {
    0%,
    100% {
        background: rgba(34, 197, 94, 0.88);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    }
    20%,
    60% {
        background: rgba(74, 222, 128, 1);
        box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.55), 0 0 14px rgba(74, 222, 128, 0.75);
    }
    40%,
    80% {
        background: rgba(34, 197, 94, 0.95);
        box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
    }
}

.companies-page .companies-recent-quotes-panel {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0.35rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.62rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0;
    align-self: flex-start;
}

.companies-page .companies-recent-quotes-panel.is-hidden {
    display: none;
}

.companies-page .companies-recent-quotes-days {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.25rem;
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.1rem 0.15rem;
    width: 2.35rem;
    min-width: 0;
    color-scheme: dark;
    cursor: pointer;
}

.companies-page .companies-recent-quotes-days:hover,
.companies-page .companies-recent-quotes-days:focus {
    border-color: #4ade80;
    outline: none;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.companies-page .companies-recent-quotes-days option {
    background-color: #0f172a;
    color: #f8fafc;
}

.companies-page .companies-recent-quotes-count {
    font-weight: 700;
    font-size: 0.62rem;
    color: #bbf7d0;
    white-space: nowrap;
}

.companies-page .company-map-recent-quote-marker-wrap {
    background: transparent;
    border: none;
}

.companies-page .company-map-recent-quote-marker {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #c084fc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.55), 0 2px 6px rgba(15, 23, 42, 0.45);
}

.companies-page .company-map-recent-quote-marker-wrap.is-new .company-map-recent-quote-marker {
    animation: companies-recent-quote-pin-pulse 1.2s ease-out 3;
}

@keyframes companies-recent-quote-pin-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.85);
    }
    70% {
        transform: scale(1.35);
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }
    100% {
        transform: scale(1);
    }
}

.companies-page .company-map-recent-quote-tooltip.leaflet-tooltip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.45rem;
    border-radius: 0.35rem;
}

.companies-page .companies-quote-history-toggle-wrap {
    margin-bottom: 0.35rem;
    margin-right: 0.35rem;
}

.companies-page .companies-quote-history-toggle {
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.7rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.companies-page .companies-quote-history-toggle:hover,
.companies-page .companies-quote-history-toggle.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.companies-page .companies-quote-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.companies-page .companies-quote-history-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.companies-page .companies-quote-history-item:hover {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.12);
}

.companies-page .companies-quote-history-item-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.companies-page .companies-quote-history-item-meta {
    font-size: 0.78rem;
    color: #64748b;
}

.companies-page .companies-quote-history-empty {
    color: #64748b;
    font-size: 0.9rem;
    padding: 1rem 0.25rem;
}

.companies-page .companies-quote-detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.companies-page .companies-quote-detail-field-group {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    text-align: left;
}

.companies-page .companies-quote-detail-field-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.companies-page .companies-quote-client-feedback-panel {
    margin-top: 0.5rem;
    padding: 1rem 0 0;
    border-top: 2px solid rgba(15, 23, 42, 0.12);
}

.companies-page .companies-quote-client-feedback-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.85rem;
}

.companies-page .companies-quote-client-feedback-grid {
    display: grid;
    gap: 0.85rem;
}

.companies-page .companies-quote-client-feedback-followup {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.15rem;
}

.companies-page .companies-quote-client-feedback-chose-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.companies-page .companies-quote-client-feedback-chose-pick {
    flex: 0 1 11rem;
    min-width: min(100%, 9rem);
}

.companies-page .companies-quote-client-feedback-chose-company {
    flex: 1 1 14rem;
    min-width: min(100%, 12rem);
}

.companies-page .companies-quote-client-feedback-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 0.35rem;
}

.companies-page .companies-quote-client-feedback-status {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.companies-page .companies-quote-detail-inline-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.85rem 2rem;
    text-align: left;
}

.companies-page .companies-quote-detail-inline-row .companies-quote-detail-field {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0;
    text-align: left;
}

.companies-page .companies-quote-detail-inline-row .companies-quote-detail-field label,
.companies-page .companies-quote-detail-inline-row .companies-quote-detail-field .form-control-plaintext {
    text-align: left;
}

.companies-page .companies-quote-detail-inline-row--title-service .companies-quote-detail-field {
    min-width: min(100%, 10rem);
}

.companies-page .companies-quote-detail-inline-row--title-service .companies-quote-detail-field:first-child {
    min-width: min(100%, 14rem);
}

.companies-page .companies-quote-detail-inline-row--contact .companies-quote-detail-field {
    min-width: min(100%, 9rem);
}

.companies-page .companies-quote-detail-inline-row--address .companies-quote-detail-field {
    min-width: min(100%, 8rem);
}

.companies-page .companies-quote-detail-inline-row--address .companies-quote-detail-field:first-child {
    min-width: min(100%, 16rem);
}

.companies-page .companies-quote-detail-meta {
    font-size: 0.82rem;
    color: #64748b;
}

.companies-page .companies-quote-detail-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.companies-page .companies-quote-detail-field .form-control-plaintext {
    font-size: 0.92rem;
    color: #0f172a;
    padding: 0;
    min-height: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.companies-page .companies-quote-upload-zone {
    border: 2px dashed rgba(13, 110, 253, 0.35);
    border-radius: 0.65rem;
    background: rgba(13, 110, 253, 0.04);
    padding: 0.85rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.companies-page .companies-quote-upload-zone:hover,
.companies-page .companies-quote-upload-zone.is-dragover {
    border-color: rgba(13, 110, 253, 0.75);
    background: rgba(13, 110, 253, 0.08);
}

.companies-page .companies-quote-upload-icon {
    color: #0d6efd;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.companies-page .companies-quote-upload-text {
    font-size: 0.82rem;
    color: #475569;
}

.companies-page .companies-quote-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.companies-page .companies-quote-image-thumb-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
}

.companies-page .companies-quote-image-thumb-wrap.has-legend {
    height: auto;
    overflow: visible;
    padding-bottom: 0.15rem;
}

.companies-page .companies-quote-image-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0.45rem;
    overflow: hidden;
}

.companies-page .companies-quote-image-legend-input {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.companies-page .companies-quote-image-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.companies-page .companies-quote-file-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.25rem;
    text-align: center;
    color: #475569;
}

.companies-page .companies-quote-file-thumb--pdf {
    color: #b91c1c;
}

.companies-page .companies-quote-file-thumb--pdf .fas {
    font-size: 1.35rem;
}

.companies-page .companies-quote-file-thumb-name {
    font-size: 0.52rem;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.companies-page .companies-quote-image-thumb-link--pdf {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.companies-page .quote-detail-photo-cell--pdf,
.companies-page .quote-detail-pdf-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b91c1c;
    font-size: 2rem;
}

.companies-page .companies-quote-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
    padding: 0;
}

/* Pending moderation: thumb cards + inline upload tile (200px squares) */
.sent-quote-pending-page {
    --quote-pending-thumb-size: 200px;
    --quote-pending-legend-slot-height: 1.65rem;
}

.sent-quote-pending-page .sent-quote-pending-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.sent-quote-pending-page .sent-quote-pending-image-grid .companies-quote-images-preview {
    display: contents;
    margin-top: 0;
}

.sent-quote-pending-page .companies-quote-image-thumb-wrap {
    width: var(--quote-pending-thumb-size);
    height: var(--quote-pending-thumb-size);
}

.companies-quote-images-preview--reorder .companies-quote-image-thumb-wrap[data-quote-reorder-index] {
    cursor: grab;
    touch-action: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.companies-quote-images-preview--reorder.is-pointer-reordering {
    user-select: none;
}

.companies-quote-images-preview--reorder .companies-quote-image-thumb-wrap.is-dragging {
    cursor: grabbing;
    opacity: 1;
    transform: scale(1.04);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
    z-index: 3;
    position: relative;
    pointer-events: none;
}

.sent-quote-pending-page .companies-quote-image-thumb-wrap.has-legend {
    width: var(--quote-pending-thumb-size);
    height: auto;
}

.sent-quote-pending-page .companies-quote-image-thumb-wrap.is-upload-tile {
    border: none;
    background: transparent;
    overflow: visible;
    padding-bottom: 0;
}

.sent-quote-pending-page .companies-quote-image-legend-slot {
    height: var(--quote-pending-legend-slot-height);
    flex-shrink: 0;
}

.sent-quote-pending-page .companies-quote-image-thumb-link {
    width: 100%;
    height: var(--quote-pending-thumb-size);
}

.sent-quote-pending-page .companies-quote-image-thumb-wrap > img {
    width: 100%;
    height: var(--quote-pending-thumb-size);
    object-fit: cover;
}

.sent-quote-pending-page .companies-quote-upload-zone--card {
    width: 100%;
    height: var(--quote-pending-thumb-size);
    margin: 0;
    padding: 0.5rem 0.35rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 1px dashed rgba(15, 23, 42, 0.22);
    border-radius: 0.45rem;
    background: #f8fafc;
}

.sent-quote-pending-page .companies-quote-upload-zone--card:hover,
.sent-quote-pending-page .companies-quote-upload-zone--card.is-dragover {
    border-color: rgba(102, 126, 234, 0.65);
    background: rgba(102, 126, 234, 0.06);
}

.sent-quote-pending-page .companies-quote-upload-zone--card .companies-quote-upload-icon {
    color: #667eea;
    font-size: 1.35rem;
    margin-bottom: 0;
}

.sent-quote-pending-page .companies-quote-upload-zone--card .companies-quote-upload-text {
    font-size: 0.68rem;
    line-height: 1.25;
    color: #64748b;
    padding: 0 0.15rem;
}

.sent-quote-pending-page .companies-quote-image-legend-input,
.sent-quote-pending-page .companies-quote-image-legend-input.form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
    padding: 0.2rem 0.1rem 0;
    color: #334155;
}

.sent-quote-pending-page .companies-quote-image-legend-input:focus,
.sent-quote-pending-page .companies-quote-image-legend-input.form-control:focus {
    outline: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.55);
}

.sent-quote-pending-page .companies-quote-image-legend-input::placeholder {
    color: #94a3b8;
}

.companies-page .companies-quote-history-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.companies-page .companies-quote-history-thumb {
    width: 42px;
    height: 42px;
    border-radius: 0.35rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    flex-shrink: 0;
}

.companies-page .companies-quote-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.companies-page .companies-quote-detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.companies-page .companies-quote-detail-image {
    width: 72px;
    height: 72px;
    border-radius: 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
}

.companies-page .companies-quote-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Company quote detail — chat thread */
.companies-page .quote-detail-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.companies-page .quote-detail-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.companies-page .quote-chat-bubble {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    max-width: 100%;
}

.companies-page .quote-chat-bubble--client {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    align-self: flex-end;
    width: min(100%, 38rem);
}

.companies-page .quote-chat-bubble--company {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    align-self: flex-start;
    width: min(100%, 38rem);
}

.companies-page .quote-chat-bubble--system-admin {
    background: #fff8db;
    border: 1px solid #f0d878;
    align-self: flex-start;
    width: min(100%, 38rem);
}

.companies-page .quote-chat-bubble--system-admin .badge-admin {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #7c5b00;
    background: #ffefb0;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.companies-page .quote-chat-bubble--system-admin .quote-chat-bubble-message {
    color: #5c4a12;
}

.companies-page .quote-chat-system-admin-actions {
    margin-top: 0.65rem;
}

.companies-page .quote-chat-bubble-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .quote-chat-bubble-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.companies-page .quote-chat-bubble-time {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
}

.companies-page .quote-chat-bubble-message {
    font-size: 0.9rem;
    color: #0f172a;
    white-space: pre-wrap;
}

.companies-page .quote-chat-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #334155;
    margin: 0 0 0.5rem;
}

.companies-page .quote-chat-common-data,
.companies-page .quote-chat-notified-companies {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
}

.companies-page .quote-chat-common-thread {
    max-height: 14rem;
    overflow: auto;
    margin-bottom: 0.65rem;
}

.companies-page .quote-chat-company-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.companies-page .quote-chat-company-tab,
.companies-page .quote-chat-unread-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.8rem;
    color: #0f172a;
}

.companies-page .quote-chat-company-tab.is-selected {
    border-color: #0f766e;
    background: #ecfdf5;
}

.companies-page .quote-chat-company-tab.has-unread,
.companies-page .quote-chat-unread-chip.has-unread,
.companies-page .quote-chat-company-select.has-unread {
    border-color: #16a34a;
    background: #f0fdf4;
}

.companies-page .quote-chat-company-tab-logo {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    object-fit: cover;
}

.companies-page .quote-chat-unread-badge {
    min-width: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

.companies-page .quote-chat-unread-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

@keyframes quote-unread-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
    50% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.35); }
}

.companies-page .is-unread-pulse {
    animation: quote-unread-pulse 0.7s ease-in-out 2;
}

.companies-page .quote-chat-broadcast-badge,
.companies-page .quote-chat-formal-proposal-badge,
.quote-detail-dashboard .quote-chat-formal-proposal-badge,
.quote-chat-page-root .quote-chat-formal-proposal-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.companies-page .quote-chat-broadcast-badge {
    background: #e0f2fe;
    color: #0369a1;
}

.companies-page .quote-chat-formal-proposal-badge,
.quote-detail-dashboard .quote-chat-formal-proposal-badge,
.quote-chat-page-root .quote-chat-formal-proposal-badge {
    margin-left: 0.35rem;
    background: #ede9fe;
    color: #5b21b6;
}

.companies-page .quote-chat-via-email-emoji {
    display: inline;
    margin-left: 0.25rem;
    font-size: 0.9em;
    cursor: help;
    vertical-align: middle;
}

.companies-page .quote-chat-bubble-segment {
    margin: 0 -0.35rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.55rem;
}

.companies-page .quote-chat-bubble-segment + .quote-chat-bubble-segment {
    margin-top: 0.35rem;
}

.companies-page .quote-chat-bubble-segment--odd {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.035) 0%,
        rgba(15, 23, 42, 0.012) 100%
    );
}

.companies-page .quote-chat-bubble-segment--even {
    background: linear-gradient(
        180deg,
        rgba(14, 165, 233, 0.07) 0%,
        rgba(14, 165, 233, 0.02) 100%
    );
}

.companies-page .quote-chat-bubble--company .quote-chat-bubble-segment--odd {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.045) 0%,
        rgba(15, 23, 42, 0.015) 100%
    );
}

.companies-page .quote-chat-bubble--company .quote-chat-bubble-segment--even {
    background: linear-gradient(
        180deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(99, 102, 241, 0.025) 100%
    );
}

.companies-page .quote-chat-bubble-segment-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.companies-page .quote-chat-bubble-segment .quote-chat-bubble-time {
    margin: 0;
}

.companies-page .quote-chat-receipt {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #64748b;
    text-align: right;
}

.companies-page .quote-chat-receipt.is-read {
    color: #0284c7;
}

.companies-page .companies-quote-detail-initial-request .companies-quote-detail-field-group {
    padding: 0.55rem 0;
}

.companies-page .companies-quote-detail-initial-request .companies-quote-detail-field-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.companies-page .quote-chat-composer {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.companies-page .quote-chat-composer-upload-zone {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
}

.companies-page .quote-chat-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.companies-page .quote-chat-composer-input {
    flex: 1 1 auto;
    min-width: 0;
    resize: none;
    overflow-y: hidden;
    line-height: 1.5;
}

.companies-page .quote-chat-composer-input.is-scrollable {
    overflow-y: auto;
}

.companies-page .quote-chat-composer-send {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.companies-page .quote-chat-composer-attach {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.05rem;
    line-height: 1;
}

.companies-page .quote-chat-broadcast-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
}

.companies-page .quote-chat-attach-preview:empty {
    display: none;
}

.companies-page .quote-chat-composer-status {
    margin-top: 0.45rem;
}

#adminSentQuoteDetailModal .modal-title .quote-detail-modal-ref {
    font-weight: 600;
    opacity: 0.92;
}

#companyQuoteResponseModal .modal-title .quote-detail-modal-ref {
    font-weight: 600;
    opacity: 0.92;
}

.companies-page .quote-chat-bubble-identity {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.companies-page .quote-chat-bubble-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    object-fit: contain;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    flex: 0 0 auto;
}

.companies-page .quote-chat-bubble-logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

.companies-page .quote-chat-bubble--followup {
    max-width: min(100%, 28rem);
}

.companies-page .quote-chat-bubble--followup .quote-chat-bubble-header {
    margin-bottom: 0.45rem;
    padding-bottom: 0.4rem;
}

.companies-page .quote-detail-chat--company-view .quote-chat-bubble--client,
.companies-page .quote-detail-chat--company-view .quote-chat-bubble--followup.quote-chat-bubble--client {
    align-self: flex-end;
}

.companies-page .quote-detail-chat--company-view .quote-chat-bubble--company,
.companies-page .quote-detail-chat--company-view .quote-chat-bubble--followup.quote-chat-bubble--company {
    align-self: flex-start;
}

.companies-page .quote-detail-chat--client-view .quote-chat-bubble--client,
.companies-page .quote-detail-chat--client-view .quote-chat-bubble--followup.quote-chat-bubble--client {
    align-self: flex-start;
}

.companies-page .quote-detail-chat--client-view .quote-chat-bubble--company,
.companies-page .quote-detail-chat--client-view .quote-chat-bubble--followup.quote-chat-bubble--company {
    align-self: flex-end;
}

.companies-page .quote-chat-driving-distance {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f766e;
    margin: 0 0 0.65rem;
}

.companies-page .quote-chat-composer--text {
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.companies-page .quote-chat-bubble-proposal-id {
    line-height: 1.2;
}

#adminSentQuoteDetailModal .modal-footer .quote-proposal-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 0.85rem;
}

#adminSentQuoteDetailModal .modal-footer .quote-proposal-panel .company-quote-response-files--preview {
    margin-top: 0.55rem;
}

#adminSentQuoteDetailModal .modal-footer {
    flex-direction: column;
    align-items: stretch;
}

.companies-page .quote-chat-bubble-actions {
    display: flex;
    justify-content: flex-end;
}

.companies-page .companies-quote-map-toggle {
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.companies-page .companies-quote-map-toggle:hover,
.companies-page .companies-quote-map-toggle.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.companies-page .leaflet-container {
    background: #1a4d8c;
    font-family: inherit;
}

.companies-page .companies-quote-connection-line {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 14 10;
    animation:
        companies-quote-line-flow 1.1s linear infinite,
        companies-quote-line-pulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.55));
}

@keyframes companies-quote-line-flow {
    to {
        stroke-dashoffset: -48;
    }
}

@keyframes companies-quote-line-pulse {
    0%,
    100% {
        stroke-opacity: 0.72;
    }
    50% {
        stroke-opacity: 1;
    }
}

.companies-page .companies-district-label {
    background: transparent;
    border: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    pointer-events: none;
}

.companies-page .companies-district-label::before {
    display: none;
}

.companies-page .company-map-marker.is-root-company {
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.45);
    border-radius: 8px;
}

.companies-page .company-map-marker.is-root-company.is-circle {
    border-radius: 50%;
}

.companies-page .company-map-marker.is-pending-approval {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.75);
}

.companies-page .company-map-tooltip-root {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.companies-page .company-map-marker.is-pulsating {
    animation: company-map-marker-pulse 1.15s ease-in-out infinite;
    z-index: 2;
}

@keyframes company-map-marker-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    }
    50% {
        transform: scale(1.14);
        box-shadow:
            0 0 0 4px rgba(26, 77, 140, 0.35),
            0 4px 14px rgba(0, 0, 0, 0.38);
    }
}

.companies-page .company-map-client-marker-wrap {
    background: transparent;
    border: none;
}

.companies-page .company-map-client-marker {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.companies-page .company-map-client-pin {
    flex: 0 0 auto;
    line-height: 0;
    filter: drop-shadow(0 2px 3px rgba(60, 64, 67, 0.35));
}

.companies-page .company-map-client-pin-shape {
    fill: #ea4335;
}

.companies-page .company-map-client-pin-dot {
    fill: #ffffff;
}

.companies-page .company-map-client-label {
    flex: 0 0 auto;
    max-width: 5.5rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #ea4335;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow:
        0 0 4px #ffffff,
        0 0 8px #ffffff,
        0 1px 2px rgba(255, 255, 255, 0.95);
}

.companies-page .company-map-tooltip.leaflet-tooltip {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    color: #212529;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.companies-page .company-map-tooltip .company-map-tooltip-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.companies-page .company-map-tooltip .company-map-tooltip-name {
    font-weight: 700;
    margin-bottom: 0;
}

.companies-page .company-map-tooltip-confidence-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--confidence-color, #94a3b8);
    color: #fff;
    font-size: 0.62rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.companies-page .company-map-tooltip-services {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    max-height: 11rem;
    overflow-y: auto;
}

.companies-page .company-map-tooltip-service {
    white-space: nowrap;
}

.companies-page .company-map-tooltip-empty {
    font-size: 0.8rem;
}

.companies-page .company-map-tooltip a {
    color: #0d6efd;
    text-decoration: none;
}

.companies-page .company-map-tooltip a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .companies-page .companies-map-layout {
        flex-direction: column;
        min-height: 0;
    }

    .companies-page .companies-map-layout.is-quote-open .companies-map-column,
    .companies-page .companies-quote-panel {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }

    .companies-page .companies-map-panel,
    .companies-page .companies-quote-panel-inner {
        height: min(calc(52vh + var(--companies-map-panel-header-height)), var(--companies-map-panel-height));
        max-height: var(--companies-map-panel-height);
        min-height: calc(280px + var(--companies-map-panel-header-height));
    }

    .companies-page .companies-map-layout.is-quote-open .companies-map-panel {
        height: min(calc(42vh + var(--companies-map-panel-header-height)), calc(360px + var(--companies-map-panel-header-height)));
        max-height: calc(360px + var(--companies-map-panel-header-height));
    }

    .companies-page .companies-map-layout.is-quote-open:has(#companiesPortfolioSection:not(.d-none)) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "map-col"
            "panel"
            "portfolio";
    }

    .companies-page .companies-map-layout.is-quote-open:has(#companiesPortfolioSection:not(.d-none)) .companies-quote-panel {
        width: 100%;
    }

    .companies-page .companies-map-layout.is-quote-open .companies-quote-panel {
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 767.98px) {
    .companies-page .companies-map-panel,
    .companies-page .companies-quote-panel-inner {
        height: min(calc(100vh - 220px + var(--companies-map-panel-header-height)), var(--companies-map-panel-height));
        max-height: var(--companies-map-panel-height);
        min-height: calc(280px + var(--companies-map-panel-header-height));
    }

    .companies-page .companies-map-layout.is-quote-open .companies-map-panel {
        height: min(calc(38vh + var(--companies-map-panel-header-height)), calc(320px + var(--companies-map-panel-header-height)));
        max-height: calc(320px + var(--companies-map-panel-header-height));
    }
}

.companies-page .companies-projects-gallery-section {
    margin-top: 1rem;
}

.companies-statistics-page .companies-statistics-header {
    margin-top: 0.25rem;
}

.companies-statistics-page .companies-statistics-charts-section {
    margin-top: 1rem;
}

.companies-statistics-page .companies-statistics-charts-panel {
    overflow: hidden;
}

.companies-statistics-page .companies-statistics-chart-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0.85rem 1.1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-statistics-page .companies-statistics-chart-tabs li {
    margin: 0;
}

.companies-statistics-page .companies-statistics-chart-tab {
    appearance: none;
    display: inline-block;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.35rem 0;
    margin-right: 1.25rem;
    margin-bottom: -1px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.companies-statistics-page .companies-statistics-chart-tab:hover {
    color: #764ba2;
    background: none;
}

.companies-statistics-page .companies-statistics-chart-tab.is-active {
    color: #1e293b;
    border-bottom-color: #764ba2;
    font-weight: 600;
}

.companies-statistics-page .companies-statistics-chart-panes {
    padding: 0;
}

.companies-statistics-page .companies-statistics-chart-pane {
    margin-top: 0;
}

.companies-statistics-page .companies-statistics-chart-pane.companies-installed-kw-section {
    margin-top: 0;
}

.companies-page .companies-installed-kw-section,
.companies-statistics-page .companies-installed-kw-section {
    margin-top: 1rem;
}

.companies-page .companies-installed-kw-panel,
.companies-statistics-page .companies-installed-kw-panel {
    background: #fff;
}

.companies-page .companies-installed-kw-panel-header,
.companies-statistics-page .companies-installed-kw-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.companies-page .companies-installed-kw-panel-header-text,
.companies-statistics-page .companies-installed-kw-panel-header-text {
    min-width: 0;
    flex: 1 1 auto;
}

.companies-page .companies-installed-kw-screenshot-wrap,
.companies-statistics-page .companies-installed-kw-screenshot-wrap {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.companies-page .companies-installed-kw-chart-root,
.companies-statistics-page .companies-installed-kw-chart-root {
    padding: 0 1.1rem 1.1rem;
}

.companies-page .companies-installed-kw-chart-total,
.companies-statistics-page .companies-installed-kw-chart-total {
    font-weight: 500;
}

.companies-page .companies-installed-kw-chart-status,
.companies-statistics-page .companies-installed-kw-chart-status {
    padding: 0.85rem 0 0.35rem;
    color: #64748b;
    font-size: 0.875rem;
}

.companies-page .companies-installed-kw-chart-status.is-error,
.companies-statistics-page .companies-installed-kw-chart-status.is-error {
    color: #b91c1c;
}

.companies-page .companies-installed-kw-chart-canvas-wrap,
.companies-statistics-page .companies-installed-kw-chart-canvas-wrap {
    position: relative;
    height: 320px;
    margin-top: 0.35rem;
}

.companies-page .companies-installed-kw-chart-logos,
.companies-statistics-page .companies-installed-kw-chart-logos {
    position: relative;
    height: 84px;
    margin-top: 0.15rem;
}

.companies-page .companies-installed-kw-chart-logos:not(.is-logos-ready) .companies-installed-kw-chart-logo-slot,
.companies-statistics-page .companies-installed-kw-chart-logos:not(.is-logos-ready) .companies-installed-kw-chart-logo-slot {
    visibility: hidden;
}

.companies-page .companies-installed-kw-chart-logo-slot,
.companies-statistics-page .companies-installed-kw-chart-logo-slot {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: inherit;
    text-decoration: none;
}

.companies-page .companies-installed-kw-chart-logo-slot:hover,
.companies-page .companies-installed-kw-chart-logo-slot:focus-visible,
.companies-statistics-page .companies-installed-kw-chart-logo-slot:hover,
.companies-statistics-page .companies-installed-kw-chart-logo-slot:focus-visible {
    color: inherit;
    text-decoration: none;
}

.companies-page .companies-installed-kw-chart-logo-slot .companies-quote-company-item,
.companies-statistics-page .companies-installed-kw-chart-logo-slot .companies-quote-company-item {
    max-width: 76px;
}

.companies-page .companies-projects-gallery-panel {
    background: #fff;
}

.companies-page .companies-projects-gallery-status {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 1.25rem 1.1rem 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.companies-page .companies-projects-gallery-grid {
    --gallery-gap: 10px;
    --gallery-row-height: calc((600px - var(--gallery-gap)) / 2);

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, var(--gallery-row-height));
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 0.55rem 0.65rem;
    background: #fff;
}

.companies-page .companies-projects-gallery-cell {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.companies-page .companies-projects-gallery-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.companies-page .companies-projects-gallery-item-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.companies-page .companies-projects-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.companies-page .companies-projects-gallery-item:hover::after,
.companies-page .companies-projects-gallery-item:focus-within::after {
    animation: companies-portfolio-flash 1s ease-out;
}

.companies-page .companies-projects-gallery-item-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    vertical-align: top;
}

.companies-page .companies-projects-gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
}

.companies-page .companies-projects-gallery-item-caption {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.65rem;
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.companies-page .companies-projects-gallery-item-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.companies-page .companies-projects-gallery-item-description {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.74rem;
    opacity: 0.95;
}

.companies-page .companies-projects-gallery-item-power {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    padding: 0.28rem 0.45rem;
    border-radius: 0.3rem;
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.2;
    pointer-events: none;
}

.companies-page .companies-projects-gallery-item-logo {
    position: absolute;
    top: 6px;
    left: 6px;
    right: auto;
    bottom: auto;
    z-index: 4;
    display: block;
    width: auto;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.companies-page .companies-projects-gallery-item:hover .companies-projects-gallery-item-logo,
.companies-page .companies-projects-gallery-item:focus-within .companies-projects-gallery-item-logo {
    opacity: 1;
    pointer-events: auto;
}

.companies-page .companies-projects-gallery-item-logo .company-map-marker-shell {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.companies-page .companies-projects-gallery-item-logo .company-map-marker {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
}

.companies-page .companies-projects-gallery-item-logo .company-map-marker-confidence {
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.15rem;
    border-width: 1.5px;
    font-size: 0.52rem;
}

.companies-page .companies-projects-gallery-item-logo .company-map-marker-confidence--bottom-right {
    right: -4px;
    bottom: -4px;
}

.companies-page .companies-projects-gallery-item:hover .companies-projects-gallery-item-caption,
.companies-page .companies-projects-gallery-item:focus-within .companies-projects-gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .companies-page .companies-projects-gallery-item:hover::after,
    .companies-page .companies-projects-gallery-item:focus-within::after {
        animation: none;
    }

    .companies-page .companies-projects-gallery-item-caption,
    .companies-page .companies-projects-gallery-item-logo {
        transition: none;
    }
}

.companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-metrics {
    gap: clamp(1rem, 3vw, 2.5rem);
}

.companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-metric {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .companies-page .companies-portfolio-activity-bar.has-three-metrics {
        padding: 0.85rem clamp(0.65rem, 3vw, 1rem);
        gap: 0.75rem;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-metrics {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-evenly;
        gap: clamp(0.35rem, 2vw, 0.75rem);
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-metric {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
        max-width: none;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-copy {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.65rem;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-icon-img,
    .companies-page .companies-portfolio-activity-bar.has-three-metrics.is-simple-metrics .companies-portfolio-activity-icon-img {
        width: 1.65rem;
        height: 1.65rem;
        padding: 0.15rem;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics.is-simple-metrics .companies-portfolio-activity-quote-icon {
        width: 1.65rem;
        height: 1.65rem;
        --companies-quote-emoji-size: 1.65rem;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-value {
        font-size: clamp(1.15rem, 4.2vw, 1.5rem);
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-label {
        margin-top: 0.2rem;
        font-size: clamp(0.48rem, 2.2vw, 0.58rem);
        letter-spacing: 0.06em;
        line-height: 1.15;
        text-wrap: balance;
    }
}

/* Sticky portfolio activity bar — docks to bottom of main content when logo scrolls away */
body.companies-page {
    --companies-sticky-activity-bottom: 0px;
    --companies-sticky-activity-left: 0px;
    --companies-sticky-activity-width: 100%;
}

.companies-portfolio-sticky-activity-bar-wrap {
    position: fixed;
    bottom: var(--companies-sticky-activity-bottom, 0px);
    left: var(--companies-sticky-activity-left, 0px);
    width: var(--companies-sticky-activity-width, 100%);
    right: auto;
    top: auto;
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.14);
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.companies-portfolio-sticky-activity-bar-wrap.is-visible {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


.companies-page .companies-portfolio-activity-bar {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 1.35rem clamp(1rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 45%, #a855f7 100%);
    color: #fff;
}

.companies-page .companies-portfolio-activity-company {
    flex: 0 0 auto;
    align-self: center;
}

.companies-page .companies-portfolio-activity-company .companies-quote-company-logo {
    width: 64px;
    height: 64px;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.companies-page .companies-portfolio-activity-company .companies-quote-company-logo img,
.companies-page .companies-portfolio-activity-company .companies-quote-company-logo .company-map-marker-shell img {
    border-radius: 0.5rem;
}

.companies-page .companies-portfolio-activity-company .company-map-marker-shell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companies-page .companies-portfolio-activity-metrics {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(1.5rem, 6vw, 4rem);
}

.companies-page .companies-portfolio-activity-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
}

.companies-page .companies-portfolio-activity-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: #7dd3fc;
    font-size: 2.35rem;
    line-height: 1;
}

.companies-page .companies-portfolio-activity-icon-img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    display: block;
}

.companies-page .companies-portfolio-activity-bar.is-simple-metrics .companies-portfolio-activity-icon-img:not(.companies-portfolio-activity-quote-icon) {
    width: 2.15rem;
    height: 2.15rem;
    padding: 0.2rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.companies-page .companies-portfolio-activity-bar.is-simple-metrics .companies-portfolio-activity-quote-icon,
.companies-page .companies-portfolio-activity-quote-icon {
    width: 2.35rem;
    height: 2.35rem;
    --companies-quote-emoji-size: 2.35rem;
    --companies-quote-emoji-color: #7dd3fc;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.companies-page .companies-map-panel .companies-portfolio-activity-bar {
    border-radius: 0;
}

.companies-page .companies-portfolio-activity-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.companies-page .companies-portfolio-activity-value {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.companies-page .companies-portfolio-activity-value-suffix {
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: -0.01em;
    opacity: 0.92;
}

.companies-page .companies-portfolio-activity-label {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.95;
}

@media (max-width: 575.98px) {
    .companies-page .companies-portfolio-activity-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.85rem 0.75rem;
    }

    .companies-page .companies-portfolio-activity-company {
        flex: 0 0 auto;
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-metrics {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-evenly;
        gap: clamp(0.5rem, 3vw, 1rem);
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-metric {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
        justify-content: flex-start;
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-copy {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.65rem;
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-icon-img,
    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics).is-simple-metrics .companies-portfolio-activity-icon-img {
        width: 1.65rem;
        height: 1.65rem;
        padding: 0.15rem;
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-value {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
    }

    .companies-page .companies-portfolio-activity-bar:not(.has-three-metrics) .companies-portfolio-activity-label {
        margin-top: 0.2rem;
        font-size: clamp(0.5rem, 2.4vw, 0.62rem);
        letter-spacing: 0.06em;
        line-height: 1.15;
        text-wrap: balance;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-metrics {
        gap: clamp(0.25rem, 1.5vw, 0.5rem);
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.45rem;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-icon-img,
    .companies-page .companies-portfolio-activity-bar.has-three-metrics.is-simple-metrics .companies-portfolio-activity-icon-img {
        width: 1.45rem;
        height: 1.45rem;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics.is-simple-metrics .companies-portfolio-activity-quote-icon {
        width: 1.45rem;
        height: 1.45rem;
        --companies-quote-emoji-size: 1.45rem;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-value {
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    .companies-page .companies-portfolio-activity-bar.has-three-metrics .companies-portfolio-activity-label {
        font-size: clamp(0.44rem, 2vw, 0.52rem);
        letter-spacing: 0.04em;
    }
}

/* Bottom sticky company portfolio bar — 80% scale of standard activity bar (must follow generic rules) */
.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-bar {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    flex-wrap: nowrap;
    gap: clamp(0.8rem, 2.4vw, 1.6rem);
    padding: 1.08rem clamp(0.8rem, 3.2vw, 2rem);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 45%, #a855f7 100%);
    color: #fff;
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-metrics {
    gap: clamp(1.2rem, 4.8vw, 3.2rem);
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-metric {
    gap: 0.8rem;
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-company .companies-quote-company-logo {
    width: 51px;
    height: 51px;
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-value {
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    line-height: 1;
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-label {
    margin-top: 0.28rem;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-icon {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.88rem;
}

.companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-icon-img {
    width: 1.88rem;
    height: 1.88rem;
}

@media (max-width: 575.98px) {
    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-bar {
        flex-wrap: nowrap;
        gap: 0.6rem;
        padding: 0.68rem 0.6rem;
    }

    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-metrics {
        gap: clamp(0.4rem, 2.4vw, 0.8rem);
    }

    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-metric {
        flex-direction: row;
        gap: 0.28rem;
    }

    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 1.32rem;
    }

    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-icon-img {
        width: 1.32rem;
        height: 1.32rem;
    }

    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-value {
        font-size: clamp(0.96rem, 4vw, 1.24rem);
    }

    .companies-page .companies-portfolio-sticky-activity-bar-wrap .companies-portfolio-activity-label {
        margin-top: 0.16rem;
        font-size: clamp(0.4rem, 1.92vw, 0.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .companies-page .companies-portfolio-activity-value {
        transition: none;
    }
}

.companies-page .companies-portfolio-panel,
.companies-statistics-page .companies-portfolio-panel {
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.companies-page .companies-portfolio-panel-header,
.companies-statistics-page .companies-portfolio-panel-header {
    padding: 1rem 1.1rem 0.85rem;
}

.companies-page .companies-portfolio-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.companies-page .companies-portfolio-restore-link {
    margin-left: auto;
    padding-left: 0;
    padding-right: 0;
    text-decoration: none;
}

.companies-page .companies-portfolio-restore-link:hover,
.companies-page .companies-portfolio-restore-link:focus {
    text-decoration: underline;
}

.companies-page .companies-portfolio-item.is-selected {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.companies-page .companies-portfolio-item-select {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 3;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
}

.company-admin-root-ref-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 0.35rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .companies-portfolio-panel-header .companies-portfolio-group-tabs {
    margin-top: 0.75rem;
    padding: 0;
    border-bottom: none;
}

.companies-page .companies-portfolio-group-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0 1.1rem 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .companies-portfolio-group-tabs li {
    margin: 0;
}

.companies-page .companies-portfolio-group-tab {
    appearance: none;
    display: inline-block;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.35rem 0;
    margin-right: 1.25rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.companies-page .companies-portfolio-group-tab:hover {
    color: #764ba2;
    background: none;
}

.companies-page .companies-portfolio-group-tab.is-active {
    color: #1e293b;
    border-bottom-color: #764ba2;
    font-weight: 600;
}

.companies-page .companies-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    line-height: 0;
}

.companies-page .companies-portfolio-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e2e8f0;
    contain: layout paint style;
}

.companies-page .companies-portfolio-item-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.companies-page .companies-portfolio-item-admin-bar {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    pointer-events: none;
}

.companies-page .companies-portfolio-item-edit,
.companies-page .companies-portfolio-item-delete {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.88;
    transition: background 0.15s ease, opacity 0.15s ease;
    pointer-events: auto;
}

.companies-page .companies-portfolio-item-edit:hover {
    opacity: 1;
    background: rgba(13, 110, 253, 0.92);
}

.companies-page .companies-portfolio-item-delete:hover {
    opacity: 1;
    background: rgba(220, 53, 69, 0.92);
}

.companies-page .companies-portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.companies-page .companies-portfolio-item:hover::after,
.companies-page .companies-portfolio-item:focus-within::after {
    animation: companies-portfolio-flash 1s ease-out;
}

@keyframes companies-portfolio-flash {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

.companies-page .companies-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.companies-page .companies-portfolio-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    background: rgba(100, 116, 139, 0.92);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.25;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 2;
}

.companies-page .companies-portfolio-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.companies-page .companies-portfolio-item-power {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.companies-page .companies-portfolio-item:hover .companies-portfolio-item-caption,
.companies-page .companies-portfolio-item:focus-within .companies-portfolio-item-caption {
    opacity: 1;
}

.companies-page .companies-portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem 1rem;
}

.companies-page .companies-portfolio-page-status {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
}

.companies-page .companies-portfolio-page-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 9.5rem;
}

.companies-page .companies-portfolio-page-nav-number {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.companies-page .companies-portfolio-mobile-fab {
    position: fixed;
    left: 50%;
    z-index: 1061;
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.44rem;
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.36rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateX(-50%);
    bottom: calc(var(--companies-mobile-bottom-chrome-offset, 0px) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    transition: bottom 0.24s ease;
}

body.companies-page.modal-open .companies-page .companies-portfolio-mobile-fab {
    opacity: 0;
    pointer-events: none;
}

.companies-page .companies-portfolio-mobile-fab-btn {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 999px !important;
    font-weight: 600;
    white-space: nowrap;
}

.companies-page .companies-portfolio-mobile-fab-btn:only-child {
    flex: 1 1 auto;
    max-width: 11rem;
    margin: 0 auto;
}

.companies-page .companies-portfolio-import-section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1rem;
}

.companies-page .companies-portfolio-import-zone {
    border: 2px dashed rgba(100, 116, 139, 0.45);
    border-radius: 0.65rem;
    background: rgba(100, 116, 139, 0.05);
    padding: 0.85rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.companies-page .companies-portfolio-import-zone:hover,
.companies-page .companies-portfolio-import-zone.is-dragover {
    border-color: rgba(100, 116, 139, 0.85);
    background: rgba(100, 116, 139, 0.1);
}

.companies-page .companies-portfolio-import-icon {
    color: #64748b;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.companies-page .companies-portfolio-import-text {
    font-size: 0.82rem;
    color: #475569;
}

.companies-page .companies-portfolio-import-status.is-error {
    color: #dc3545;
}

.companies-page .companies-portfolio-import-status.is-success {
    color: #198754;
}

.base-modal-header .modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .companies-page .companies-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .companies-page .companies-portfolio-item:hover::after,
    .companies-page .companies-portfolio-item:focus-within::after {
        animation: none;
    }
}

.companies-page .companies-search-map-toggle-wrap {
    margin-bottom: 0.35rem;
    margin-left: 0.35rem;
}

.companies-page .companies-search-map-toggle {
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.675rem;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    font-size: 1.725rem;
    line-height: 1;
    padding: 0.63rem 0.825rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.companies-page .companies-search-map-toggle:hover,
.companies-page .companies-search-map-toggle.is-active {
    background: rgba(255, 255, 255, 0.18);
}

.companies-page .companies-find-share-map-toggle-wrap {
    margin-bottom: 0.35rem;
    margin-left: 0.35rem;
}

.companies-page .companies-find-share-map-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.675rem;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.companies-page .companies-find-share-map-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.companies-page .companies-find-screenshot-toggle-wrap {
    margin-bottom: 0.35rem;
    margin-left: 0.35rem;
}

.companies-page .companies-find-screenshot-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.675rem;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.companies-page .companies-find-screenshot-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.companies-page .companies-find-screenshot-toggle:disabled {
    opacity: 0.65;
    cursor: wait;
}

.companies-page .companies-find-screenshot-toggle .screenshot-spinner {
    width: 1.1rem;
    height: 1.1rem;
}

.companies-page .companies-screenshot-field-snapshot {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.companies-page .companies-search-modal-dialog {
    max-width: 42.75rem;
    max-height: min(94vh, 55rem);
}

.companies-page .companies-search-modal-dialog .modal-content {
    max-height: min(94vh, 55rem);
    display: flex;
    flex-direction: column;
}

.companies-page #companiesSearchModal .modal-header,
.companies-page #companiesSearchModal .modal-footer {
    flex-shrink: 0;
}

.companies-page #companiesSearchModal .modal-body {
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.companies-page .companies-search-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.companies-page .companies-search-filters-panel {
    flex: 0 0 auto;
    padding: 1rem 1.15rem 1.1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.companies-page .companies-search-results-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding: 0.9rem 1.15rem 1.75rem;
    background: #fff;
}

.companies-page .companies-search-field-label,
.companies-page .companies-search-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.companies-page .companies-search-name-field,
.companies-page .companies-search-district-field,
.companies-page .companies-search-letter-field {
    margin-bottom: 0;
}

.companies-page .companies-search-name-field {
    min-width: 0;
}

.companies-page .companies-search-district-field {
    min-width: 0;
}

.companies-page .companies-search-letter-field {
    margin-bottom: 0.85rem;
}

.companies-page .companies-search-mobile-select-wrap {
    width: 100%;
}

@media (min-width: 768px) {
    .companies-page .companies-search-filters-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 11.5rem;
        column-gap: 0.75rem;
        row-gap: 0.85rem;
        align-items: end;
    }

    .companies-page .companies-search-name-field {
        grid-column: 1;
        grid-row: 1;
    }

    .companies-page .companies-search-district-field {
        grid-column: 2;
        grid-row: 1;
    }

    .companies-page .companies-search-alphabet-wrap,
    .companies-page .companies-search-admin-filters {
        grid-column: 1 / -1;
    }
}

.companies-page .companies-search-input {
    font-size: 0.95rem;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    margin-bottom: 0;
}

.companies-page .companies-search-input:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.companies-page .companies-search-filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.companies-page .companies-search-alphabet-wrap {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .companies-search-admin-filters {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.companies-page .companies-search-admin-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.companies-page .companies-search-admin-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
}

.companies-page .companies-search-admin-filter:has(input:checked) {
    border-color: rgba(234, 88, 12, 0.45);
    background: rgba(255, 237, 213, 0.85);
    color: #9a3412;
}

.companies-page .companies-search-admin-filter input {
    margin: 0;
}

.companies-page .companies-search-district-select {
    width: 100%;
    border-color: rgba(15, 23, 42, 0.14);
    background-color: #fff;
    font-size: 0.88rem;
}

.companies-page .companies-search-alphabet-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    line-height: 1.4;
    color: #334155;
}

.companies-page .companies-search-letter-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    border: none;
    background: transparent;
    padding: 0.12rem 0.2rem;
    margin: 0;
    font: inherit;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.companies-page .companies-search-letter-char {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
}

.companies-page .companies-search-letter-count {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.companies-page .companies-search-letter-item:hover {
    background: rgba(13, 110, 253, 0.08);
}

.companies-page .companies-search-letter-item:hover .companies-search-letter-char {
    color: #0d6efd;
}

.companies-page .companies-search-letter-item.is-active {
    background: rgba(13, 110, 253, 0.12);
}

.companies-page .companies-search-letter-item.is-active .companies-search-letter-char {
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.companies-page .companies-search-letter-item.is-active .companies-search-letter-count {
    color: #3b82f6;
    font-weight: 600;
}

.companies-page .companies-search-alphabet-empty {
    font-size: 0.85rem;
    color: #94a3b8;
}

.companies-page .companies-search-empty {
    font-size: 0.88rem;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0.5rem;
    margin: 0;
}

.companies-page .companies-search-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.companies-page .companies-search-results .companies-quote-companies-logos {
    --search-logo-size: 78px;
    --search-logo-row-extra: 1.35rem;
    --search-logo-row-gap: 0.75rem;
    --search-logo-row-height: calc(var(--search-logo-size) + var(--search-logo-row-extra));
    justify-content: flex-start;
    gap: var(--search-logo-row-gap);
    align-content: flex-start;
    padding-bottom: 0.5rem;
}

.companies-page .companies-search-results .companies-quote-companies-logos.is-scrollable {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: auto;
    scrollbar-color: #94a3b8 #eef2f7;
}

.companies-page .companies-search-results .companies-quote-companies-logos.is-scrollable::-webkit-scrollbar {
    width: 10px;
}

.companies-page .companies-search-results .companies-quote-companies-logos.is-scrollable::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 5px;
}

.companies-page .companies-search-results .companies-quote-companies-logos.is-scrollable::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
    border: 2px solid #eef2f7;
}

.companies-page .companies-search-results .companies-quote-companies-logos.is-scrollable::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.companies-page .companies-search-results .companies-quote-company-item {
    cursor: pointer;
    max-width: 114px;
}

.companies-page .companies-search-results .companies-quote-company-logo {
    width: 78px;
    height: 78px;
    border-radius: 0.65rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.companies-page .companies-search-results .companies-quote-company-item:hover .companies-quote-company-logo,
.companies-page .companies-search-results .companies-quote-company-item:focus-within .companies-quote-company-logo {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.companies-page .company-confidence-badge {
    --confidence-color: #94a3b8;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--confidence-color) 45%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--confidence-color) 12%, #fff);
    color: #0f172a;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: left;
}

.companies-page .company-confidence-badge.is-clickable {
    cursor: pointer;
}

.companies-page .company-confidence-badge.is-clickable:hover {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--confidence-color) 25%, transparent);
}

.companies-page .company-confidence-badge--lg {
    font-size: 0.86rem;
    padding: 0.35rem 0.7rem;
}

.companies-page .company-confidence-badge--md {
    font-size: 0.78rem;
}

.companies-page .company-confidence-badge--sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
}

.companies-page .company-confidence-badge--xs {
    font-size: 0.64rem;
    padding: 0.1rem 0.35rem;
    gap: 0.2rem 0.35rem;
}

.companies-page .company-confidence-stars {
    color: var(--confidence-color);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.companies-page .company-confidence-score strong {
    font-size: 1.15em;
    color: var(--confidence-color);
}

.companies-page .company-confidence-level {
    font-weight: 600;
    color: color-mix(in srgb, var(--confidence-color) 80%, #0f172a);
}

.companies-page .company-map-marker-shell {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.companies-page .company-map-marker-confidence {
    position: absolute;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.2rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--confidence-color, #94a3b8);
    color: #fff;
    font-size: 0.62rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

/* Map markers: pill is display-only; clicks go to the company logo/marker. */
.companies-page .leaflet-marker-icon .company-map-marker-confidence,
.companies-page .company-map-marker-confidence--static {
    cursor: default;
    pointer-events: none;
}

.companies-page .company-map-marker-confidence--bottom-right {
    right: -4px;
    bottom: -4px;
    left: auto;
    top: auto;
}

.companies-page .company-map-marker-confidence--bottom-left {
    left: -4px;
    bottom: -4px;
    right: auto;
    top: auto;
}

.companies-page .company-map-marker-confidence strong {
    font-weight: 800;
}

.companies-page .company-map-marker-star {
    position: absolute;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #667eea;
    color: #fff;
    font-size: 0.52rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    pointer-events: none;
}

.companies-page .company-map-marker-star--top-left {
    left: -4px;
    top: -4px;
    right: auto;
    bottom: auto;
}

.companies-page .companies-company-name-row {
    line-height: 1.25;
}

.companies-page .companies-company-confidence-row {
    margin-top: 0.45rem;
}

.companies-page .company-confidence-modal-summary {
    margin-bottom: 1rem;
}

.companies-page .company-confidence-table th,
.companies-page .company-confidence-table td {
    vertical-align: top;
}

.companies-page .company-confidence-table tr.has-row-tooltip {
    cursor: help;
}

.companies-page .company-confidence-table tr.has-row-tooltip:hover {
    background: rgba(15, 23, 42, 0.04);
}

.companies-page .company-confidence-table tr.is-cae-proof-clickable {
    cursor: pointer;
}

.companies-page .company-confidence-table tr.is-cae-proof-clickable:hover {
    background: rgba(37, 99, 235, 0.08);
}

.companies-page .company-confidence-table .company-confidence-points {
    font-weight: 700;
    white-space: nowrap;
}

.companies-page .company-confidence-table .company-confidence-status {
    text-align: center;
    font-size: 1rem;
    line-height: 1;
    width: 2.5rem;
}

.companies-page .company-confidence-table tr.is-met .company-confidence-points {
    color: #10b981;
}

.companies-page .company-confidence-table tr.is-not-met .company-confidence-points {
    color: #94a3b8;
}

.companies-page .company-confidence-table .company-confidence-detail {
    color: #64748b;
    font-size: 0.82rem;
}

/* Mobile find-services flow (/orçamentos/serviços and find panel on phones) */
.companies-page .companies-find-service-mobile-summary {
    width: 100%;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.companies-page .companies-find-service-mobile-wrap.is-picker-open {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.companies-page .companies-find-service-mobile-picker {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0.1rem 0.25rem;
}

.companies-page .companies-find-service-mobile-picker-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 0.35rem;
}

.companies-page .companies-find-service-mobile-picker-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.55rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.35;
    padding: 0.65rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.companies-page .companies-find-service-mobile-picker-option:hover,
.companies-page .companies-find-service-mobile-picker-option:focus-visible {
    border-color: rgba(118, 75, 162, 0.55);
    background: rgba(118, 75, 162, 0.06);
    outline: none;
}

.companies-page .companies-find-service-mobile-picker-option.is-selected {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.12);
    box-shadow: 0 0 0 1px rgba(118, 75, 162, 0.25);
    font-weight: 600;
}

.companies-page .companies-find-mobile-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    width: 3.25rem;
    height: 3.25rem;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.companies-page .companies-find-mobile-fab:hover,
.companies-page .companies-find-mobile-fab:focus-visible {
    background: rgba(30, 41, 59, 0.95);
    outline: none;
}

.companies-page .companies-find-mobile-fab-map-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.companies-page .companies-find-mobile-fab-emoji {
    width: 1.85rem;
    height: 1.85rem;
    --companies-quote-emoji-size: 1.85rem;
    --companies-quote-emoji-color: #fff;
    display: block;
}

.companies-page .companies-find-mobile-fab.is-map-return .companies-find-mobile-fab-emoji {
    --companies-quote-emoji-color: #fff;
}

.companies-page .companies-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -4px 22px rgba(15, 23, 42, 0.28);
    transform: translateY(0);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.companies-page .companies-mobile-bottom-nav.is-scroll-hidden,
body.companies-page.modal-open .companies-page .companies-mobile-bottom-nav {
    transform: translateY(100%);
    pointer-events: none;
}

.companies-page .companies-mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    column-gap: 0.18rem;
    min-height: var(--companies-mobile-bottom-nav-inner-min-height, 2.35rem);
    padding: var(--companies-mobile-bottom-nav-inner-padding-block, 0.21rem)
        var(--companies-mobile-bottom-nav-inner-padding-inline, 0.46rem)
        calc(var(--companies-mobile-bottom-nav-inner-padding-block, 0.21rem) + env(safe-area-inset-bottom, 0px));
}

.companies-page .companies-mobile-bottom-nav-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: var(--companies-mobile-bottom-nav-btn-max-width, 2.98rem);
    min-height: var(--companies-mobile-bottom-nav-btn-min-height, 2.1rem);
    padding: var(--companies-mobile-bottom-nav-btn-padding-block, 0.25rem)
        var(--companies-mobile-bottom-nav-btn-padding-inline, 0.32rem);
    border-radius: var(--companies-mobile-bottom-nav-btn-radius, 0.49rem);
    line-height: 1;
    cursor: pointer;
    justify-self: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.companies-page .companies-mobile-bottom-nav-btn--slot-1 {
    grid-column: 1;
}

.companies-page .companies-mobile-bottom-nav-btn--slot-2 {
    grid-column: 2;
}

.companies-page .companies-mobile-bottom-nav-btn--slot-3 {
    grid-column: 3;
}

.companies-page .companies-mobile-bottom-nav-btn--slot-4 {
    grid-column: 4;
}

.companies-page .companies-mobile-bottom-nav-btn--slot-5 {
    grid-column: 5;
}

.companies-page .companies-mobile-bottom-nav-btn i {
    font-size: var(--companies-mobile-bottom-nav-icon-size, 1.35rem);
    font-weight: 700;
}

.companies-page .companies-mobile-bottom-nav-btn:hover,
.companies-page .companies-mobile-bottom-nav-btn:focus-visible,
.companies-page .companies-mobile-bottom-nav-btn.is-active {
    background: rgba(255, 255, 255, 0.18);
    outline: none;
}

.companies-page .companies-mobile-bottom-nav-btn--search {
    flex: 0 0 auto;
}

.companies-page .companies-mobile-bottom-nav-btn--history {
    gap: 0.21rem;
    min-width: 0;
    padding: var(--companies-mobile-bottom-nav-btn-padding-block, 0.25rem) 0.35rem;
    font-weight: 800;
    font-size: var(--companies-mobile-bottom-nav-history-font-size, 0.82rem);
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.companies-page .companies-mobile-bottom-nav-history-icon {
    width: var(--companies-mobile-bottom-nav-history-icon-size, 1.35rem);
    height: var(--companies-mobile-bottom-nav-history-icon-size, 1.35rem);
    --companies-quote-emoji-size: var(--companies-mobile-bottom-nav-history-icon-size, 1.35rem);
    --companies-quote-emoji-color: #fff;
    flex: 0 0 auto;
}

.companies-page .companies-mobile-bottom-nav-history-count {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.companies-page .companies-mobile-bottom-nav-btn--map {
    flex: 0 0 auto;
}

body.companies-page .companies-mobile-quote-fab,
body.companies-page #companiesMobileQuoteFab {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--companies-mobile-bottom-chrome-offset, 0px) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    z-index: 1061;
    width: 3.5rem;
    height: 2.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    max-width: 3.5rem;
    max-height: 3.5rem;
    border: none;
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 18px rgba(29, 155, 240, 0.42);
    cursor: pointer;
    transform: scale(1);
    opacity: 1;
    transform-origin: center center;
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease, background-color 0.2s ease;
}

body.companies-page .companies-find-share-mobile-fab,
body.companies-page #companiesFindShareMobileFab {
    position: fixed;
    left: 1rem;
    bottom: calc(var(--companies-mobile-bottom-chrome-offset, 0px) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    z-index: 1061;
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 18px rgba(29, 155, 240, 0.42);
    cursor: pointer;
    transform: scale(1);
    opacity: 1;
    transform-origin: center center;
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease, background-color 0.2s ease;
}

.companies-page .companies-find-share-mobile-fab.is-scroll-hidden,
body.companies-page.modal-open .companies-find-share-mobile-fab,
body.companies-page.modal-open #companiesFindShareMobileFab {
    transform: scale(0.06);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

body.companies-page .companies-find-share-mobile-fab:hover,
body.companies-page .companies-find-share-mobile-fab:focus-visible,
body.companies-page #companiesFindShareMobileFab:hover,
body.companies-page #companiesFindShareMobileFab:focus-visible {
    background: #1a8cd8;
    outline: none;
    box-shadow: 0 6px 22px rgba(29, 155, 240, 0.5);
}

body.companies-page .companies-find-share-mobile-fab i,
body.companies-page #companiesFindShareMobileFab i {
    font-size: 1.2rem;
    line-height: 1;
}

.companies-page .companies-mobile-quote-fab.is-scroll-hidden,
body.companies-page.modal-open .companies-mobile-quote-fab,
body.companies-page.modal-open #companiesMobileQuoteFab {
    transform: scale(0.06);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

body.companies-page .companies-mobile-quote-fab:hover,
body.companies-page .companies-mobile-quote-fab:focus-visible,
body.companies-page #companiesMobileQuoteFab:hover,
body.companies-page #companiesMobileQuoteFab:focus-visible {
    background: #1a8cd8;
    outline: none;
    box-shadow: 0 6px 22px rgba(29, 155, 240, 0.5);
}

body.companies-page .companies-mobile-quote-fab.is-active,
body.companies-page #companiesMobileQuoteFab.is-active {
    background: #0f7bc2;
}

body.companies-page .companies-mobile-quote-fab-icon,
body.companies-page #companiesMobileQuoteFab .companies-mobile-quote-fab-icon {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.companies-page .companies-mobile-bottom-nav-map-icon {
    font-size: var(--companies-mobile-bottom-nav-map-icon-size, 1.4rem);
}

.companies-page .companies-mobile-bottom-nav-map-emoji {
    width: var(--companies-mobile-bottom-nav-map-emoji-size, 1.85rem);
    height: var(--companies-mobile-bottom-nav-map-emoji-size, 1.85rem);
    --companies-quote-emoji-size: var(--companies-mobile-bottom-nav-map-emoji-size, 1.85rem);
    --companies-quote-emoji-color: #fff;
    display: block;
}

.companies-page .companies-mobile-bottom-nav-btn--map.is-map-return .companies-mobile-bottom-nav-map-emoji {
    --companies-quote-emoji-color: #fff;
}

@media (max-width: 767.98px) {
    body.companies-page.companies-mobile-orcamentos-active nav.navbar.navbar-expand-lg.navbar-dark.bg-primary,
    body.companies-page.companies-mobile-bottom-chrome-active nav.navbar.navbar-expand-lg.navbar-dark.bg-primary,
    body.companies-page.companies-mobile-company-view-active nav.navbar.navbar-expand-lg.navbar-dark.bg-primary {
        position: sticky;
        top: 0;
        z-index: 1070;
        transform: translateY(0);
        transition: transform 0.24s ease;
    }

    body.companies-page.companies-mobile-orcamentos-active nav.navbar.navbar-expand-lg.navbar-dark.bg-primary.is-scroll-hidden,
    body.companies-page.companies-mobile-bottom-chrome-active nav.navbar.navbar-expand-lg.navbar-dark.bg-primary.is-scroll-hidden,
    body.companies-page.companies-mobile-company-view-active nav.navbar.navbar-expand-lg.navbar-dark.bg-primary.is-scroll-hidden {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(-100%);
        pointer-events: none;
    }

    body.companies-page.companies-mobile-orcamentos-active.modal-open nav.navbar.navbar-expand-lg.navbar-dark.bg-primary,
    body.companies-page.companies-mobile-bottom-chrome-active.modal-open nav.navbar.navbar-expand-lg.navbar-dark.bg-primary,
    body.companies-page.companies-mobile-company-view-active.modal-open nav.navbar.navbar-expand-lg.navbar-dark.bg-primary {
        transform: translateY(-100%);
        pointer-events: none;
    }

    .companies-page #companiesFindService {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        overflow: hidden;
        white-space: nowrap;
    }

    body.companies-page.companies-mobile-find-form-active .companies-quote-panel-inner {
        padding-bottom: calc(
            var(--companies-mobile-bottom-nav-offset)
            + var(--companies-mobile-quote-fab-clearance)
            + 0.75rem
        );
    }

    body.companies-page.companies-mobile-find-form-active .companies-quote-panel-inner:has(.is-mobile-service-expanded) {
        padding-bottom: calc(var(--companies-mobile-bottom-nav-offset) + 0.75rem);
    }

    body.companies-page.companies-mobile-orcamentos-active.companies-mobile-bottom-nav-hidden .companies-quote-panel-inner {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.companies-page.companies-mobile-orcamentos-active .leaflet-bottom.leaflet-left .companies-search-map-toggle-wrap,
    body.companies-page.companies-mobile-orcamentos-active .leaflet-bottom.leaflet-left .companies-find-share-map-toggle-wrap {
        display: none !important;
    }

    body.companies-page.companies-mobile-orcamentos-active .leaflet-bottom.leaflet-right .companies-quote-history-toggle-wrap {
        display: none !important;
    }

    body.companies-page.companies-mobile-orcamentos-active .leaflet-top.leaflet-right .companies-map-actions-wrap {
        display: none !important;
    }

    body.companies-page.companies-mobile-find-form-active {
        overflow: hidden;
    }

    body.companies-page.companies-mobile-find-form-active .companies-projects-gallery-section {
        display: none !important;
    }

    body.companies-page.companies-mobile-find-form-active .app-content > main.container-fluid {
        padding-top: 0.5rem;
        padding-bottom: 0.25rem;
    }

    body.companies-page.companies-mobile-find-form-active {
        overflow: hidden;
    }

    body.companies-page.companies-mobile-find-map-view .companies-projects-gallery-section,
    body.companies-page.companies-mobile-find-form-active .companies-projects-gallery-section {
        display: none;
    }

    body.companies-page.companies-company-panel-active .companies-projects-gallery-section {
        display: none !important;
    }

    body.companies-page.companies-mobile-orcamentos-active:not(.companies-mobile-bottom-nav-hidden):not(.companies-mobile-find-form-active) main.container-fluid {
        padding-bottom: var(--companies-mobile-bottom-nav-offset);
    }

    .companies-page .companies-map-layout:not(.is-mobile-map-view) {
        --companies-map-mobile-bleed: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .companies-page .companies-map-layout:not(.is-mobile-map-view) .companies-map-column {
        margin-left: calc(-1 * var(--companies-map-mobile-bleed));
        margin-right: calc(-1 * var(--companies-map-mobile-bleed));
    }

    .companies-page .companies-map-layout:not(.is-mobile-map-view) .companies-map-panel {
        border-radius: 0;
        box-shadow: none;
    }

    .companies-page .companies-map-layout:not(.is-mobile-map-view) .companies-map-panel .companies-portfolio-activity-bar {
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        gap: 0.65rem;
    }

    .companies-page .companies-map-layout.is-mobile-map-locked .companies-map-root {
        touch-action: pan-y;
    }

    .companies-page .companies-map-layout.is-mobile-map-locked .leaflet-control-zoom {
        display: none;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) .companies-quote-panel {
        position: fixed;
        top: var(--companies-mobile-top-nav-offset, 3.5rem);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1045;
        width: 100%;
        max-width: none;
        margin: 0;
        height: auto;
        max-height: none;
        min-height: 0;
        border-left: none;
        border-top: none;
        border-radius: 0;
        display: flex !important;
        flex-direction: column;
        background: #fff;
        transition: top 0.24s ease;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) .companies-map-column {
        visibility: hidden;
        pointer-events: none;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesPortfolioSection {
        display: none !important;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) .companies-quote-panel-inner {
        flex: 1 1 auto;
        min-height: 0 !important;
        height: auto !important;
        max-height: 100% !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        display: flex;
        flex-direction: column;
        padding-bottom: calc(
            var(--companies-mobile-bottom-nav-offset)
            + var(--companies-mobile-quote-fab-clearance)
            + 0.75rem
        );
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) .companies-quote-panel-header {
        flex-shrink: 0;
    }

    body.companies-page.companies-mobile-orcamentos-active.companies-mobile-bottom-nav-hidden
    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view)
    .companies-quote-panel-inner {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) .companies-quote-panel-inner:has(.is-mobile-service-expanded) {
        overflow: hidden;
        padding-bottom: calc(var(--companies-mobile-bottom-nav-offset) + 0.75rem);
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteRequestView:not(.d-none):not(:has(.is-mobile-service-expanded)) {
        flex: 0 0 auto;
        display: block;
        min-height: auto;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesFindView:not(.d-none) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesFindForm {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesFindView:not(.d-none):not(:has(.is-mobile-service-expanded)),
    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesFindForm:not(:has(.is-mobile-service-expanded)) {
        flex: 0 0 auto;
        display: block;
        min-height: auto;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteRequestView:not(.d-none) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteForm {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteStep1View:not(.d-none),
    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteStep2View:not(.d-none),
    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteHistoryView:not(.d-none),
    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteDetailView:not(.d-none) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteStep1View:not(.d-none):not(:has(.is-mobile-service-expanded)) {
        flex: 0 0 auto;
        display: block;
        min-height: auto;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteStep1View:not(.d-none):has(.is-mobile-service-expanded) {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteStep1View:not(.d-none):has(.is-mobile-service-expanded) > :not(#companiesQuoteServiceField) {
        display: none !important;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteHistoryList {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .companies-page .companies-map-layout.is-mobile-form-view:not(.is-mobile-map-view) #companiesQuoteDetailBody {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view) {
        display: block !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        grid-template-areas: unset !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.companies-page.companies-mobile-company-view-active.companies-mobile-find-form-active .app-content > main.container-fluid {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view) .companies-map-column {
        display: none !important;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view) .companies-quote-panel {
        position: fixed;
        top: var(--companies-mobile-impersonation-offset, 0px);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1045;
        width: 100%;
        max-width: none;
        margin: 0;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        flex: none !important;
        border-left: none;
        border-top: none;
        border-radius: 0;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        background: #fff;
        grid-area: unset;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr) auto 3.35rem;
        grid-template-rows: auto minmax(2.75rem, auto);
        align-items: center;
        column-gap: 0.2rem;
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 0 1.15rem 0.7rem 0.6rem;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
        box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
        z-index: 2;
        transition: grid-template-rows 0.24s ease;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar::before {
        content: "";
        display: block;
        grid-column: 1 / -1;
        grid-row: 1;
        height: var(--companies-mobile-navbar-offset, 0px);
        transition: height 0.24s ease;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-mobile-chrome-collapsed::before {
        height: env(safe-area-inset-top, 0px);
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title {
        justify-content: unset;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-company-panel-admin-actions {
        grid-column: 1;
        grid-row: 2;
        position: static;
        transform: none;
        align-self: start;
        justify-self: start;
        flex-direction: column;
        gap: 0.45rem;
        padding-top: 0.35rem;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-company-delete-btn,
    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-company-website-agent-btn,
    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-company-impersonate-btn {
        position: static;
        transform: none;
        font-size: 1.15rem;
        padding: 0.35rem 0.45rem;
        min-width: 2.35rem;
        min-height: 2.35rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    #companiesSidePanelTitle {
        grid-column: 2;
        grid-row: 2;
        flex: unset;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
        justify-self: center;
        align-self: center;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-quote-close {
        grid-column: 4;
        grid-row: 2;
        position: static;
        right: auto;
        top: auto;
        transform: none;
        justify-self: end;
        align-self: center;
        font-size: 1.5rem;
        line-height: 1;
        padding: 0.5rem 0.6rem 0.5rem 0.45rem;
        margin-right: 0.1rem;
        min-width: 2.9rem;
        min-height: 2.9rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-quote-close i {
        font-size: 1em;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title
    .companies-mobile-company-top-bar-logo {
        display: block;
        grid-column: 3;
        grid-row: 2;
        flex: unset;
        margin-left: 0.35rem;
        max-width: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        align-self: center;
        justify-self: start;
        transition: max-width 0.22s ease, max-height 0.22s ease, opacity 0.22s ease, margin 0.22s ease;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title.is-top-bar-logo-visible {
        grid-template-rows: auto minmax(4.125rem, auto);
        padding-bottom: 1.05rem;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title.is-top-bar-logo-visible
    .companies-mobile-company-top-bar-logo {
        max-width: 3.25rem;
        max-height: 3.25rem;
        opacity: 1;
        margin-left: 0.5rem;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel > .companies-quote-panel-header.is-mobile-company-top-bar.is-company-panel-title.is-top-bar-logo-visible
    #companiesSidePanelTitle {
        max-width: 100%;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-portfolio-pagination {
        display: none !important;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    #companiesPortfolioStickyActivityBar .companies-portfolio-activity-company {
        display: none !important;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view) .companies-quote-panel-inner {
        flex: 1 1 auto;
        min-height: 0 !important;
        height: auto !important;
        max-height: 100% !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        display: flex;
        flex-direction: column;
        padding-bottom: calc(var(--companies-mobile-bottom-nav-offset) + 0.75rem);
    }

    body.companies-page.companies-mobile-bottom-chrome-active.companies-mobile-bottom-nav-hidden
    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel-inner {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.companies-page.companies-portfolio-mobile-fab-active
    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel-inner {
        padding-bottom: calc(
            var(--companies-mobile-bottom-chrome-offset, 0px)
            + env(safe-area-inset-bottom, 0px)
            + 4.75rem
        );
    }

    body.companies-page.companies-portfolio-mobile-fab-active.companies-mobile-bottom-nav-hidden
    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view)
    .companies-quote-panel-inner {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.75rem);
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view) #companiesCompanyView:not(.d-none) {
        flex: 0 0 auto;
        min-height: 0;
        display: block;
    }

    .companies-page .companies-map-layout.is-mobile-company-view:not(.is-mobile-map-view) #companiesPortfolioSection:not(.d-none) {
        display: block !important;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 0.75rem;
        grid-area: unset;
    }

    .companies-page .companies-find-service-field.is-mobile-service-expanded,
    .companies-page .companies-quote-service-field.is-mobile-service-expanded {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        margin-bottom: 0 !important;
    }

    .companies-page .companies-find-service-field.is-mobile-service-expanded .companies-find-service-mobile-wrap.is-picker-open,
    .companies-page .companies-quote-service-field.is-mobile-service-expanded .companies-find-service-mobile-wrap.is-picker-open {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .companies-page .companies-find-service-field.is-mobile-service-expanded .companies-find-service-mobile-picker,
    .companies-page .companies-quote-service-field.is-mobile-service-expanded .companies-find-service-mobile-picker {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .companies-page .companies-map-layout.is-mobile-form-view.is-mobile-map-view .companies-quote-panel {
        display: none !important;
    }

    .companies-page .companies-map-layout.is-mobile-map-view .companies-map-column {
        position: fixed;
        inset: 0;
        z-index: 1045;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .companies-page .companies-map-layout.is-mobile-map-view .companies-map-panel {
        height: 100dvh;
        max-height: none;
        min-height: 100dvh;
        border-radius: 0;
    }

    .companies-page .companies-map-layout.is-mobile-map-view #companiesPageScreenshotHeader {
        display: none;
    }

    .companies-page .companies-map-layout.is-mobile-map-view .companies-map-root {
        min-height: 0;
        flex: 1 1 auto;
    }

    .companies-page .companies-map-layout.is-mobile-map-view #companiesPortfolioSection,
    .companies-page .companies-map-layout.is-mobile-map-view .companies-quote-panel {
        display: none !important;
    }

    .companies-page .companies-projects-gallery-section {
        --companies-gallery-mobile-bleed: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        margin-left: calc(-1 * var(--companies-gallery-mobile-bleed));
        margin-right: calc(-1 * var(--companies-gallery-mobile-bleed));
        margin-top: 0.75rem;
    }

    .companies-page .companies-projects-gallery-panel {
        border-radius: 0;
        box-shadow: none;
    }

    .companies-page .companies-projects-gallery-section .companies-portfolio-activity-bar {
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        gap: 0.65rem;
    }

    .companies-page .companies-projects-gallery-status {
        padding-left: 0;
        padding-right: 0;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(4, auto);
        padding: 0;
        gap: 6px;
        margin: 0;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-cell {
        aspect-ratio: 2 / 1;
        min-height: 0;
        width: 100%;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item {
        border-radius: 0;
        box-shadow: none;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item-caption {
        padding: 0.45rem 0.55rem;
        font-size: 0.75rem;
        gap: 0.15rem;
        opacity: 1;
        transform: translateY(0);
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item-title {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item-description {
        display: none;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item-logo {
        top: 0.35rem;
        left: 0.35rem;
        opacity: 1;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item-power {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
        top: 0.35rem;
        right: 0.35rem;
    }

    .companies-page .companies-projects-gallery-grid.is-mobile-stack .companies-projects-gallery-item-logo .company-map-marker {
        width: 28px;
        height: 28px;
    }

    .companies-page .companies-quote-form .companies-quote-step2-optional-field {
        display: none;
    }

    .companies-page.companies-mobile-find-map-view {
        overflow: hidden;
    }

    body.companies-page.modal-open {
        padding-right: 0 !important;
    }

    #companiesQuoteConfirmModal.modal {
        --bs-modal-margin: 0.75rem;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    #companiesQuoteConfirmModal .modal-dialog {
        margin-left: auto !important;
        margin-right: auto !important;
        width: calc(100% - (var(--bs-modal-margin) * 2));
        max-width: 28rem;
    }

    #companiesQuoteConfirmModal .modal-dialog .modal-content.base-modal-content {
        margin: 0 !important;
        width: 100%;
    }

    #companiesQuoteConfirmModal .base-modal-footer {
        display: flex;
        width: 100%;
    }

    #companiesQuoteConfirmModal #companiesQuoteConfirmFooter {
        width: 100%;
    }

    .companies-quote-action-btn {
        --companies-quote-action-btn-scale: 1.6;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: calc(0.25rem * var(--companies-quote-action-btn-scale)) calc(0.5rem * var(--companies-quote-action-btn-scale));
        font-size: calc(0.875rem * 1.12);
        line-height: 1.45;
        min-height: calc(1.875rem * var(--companies-quote-action-btn-scale));
    }

    .companies-page #companiesQuoteSubmitBtn,
    .companies-page #companiesQuoteSaveDraftBtn,
    .companies-page #companiesQuoteContinueBtn,
    .companies-page #companiesQuoteBackToStep1Btn {
        display: inline-flex;
        width: 100%;
    }

    body.companies-page.companies-mobile-search-modal-open {
        overflow: hidden;
    }

    body.companies-page #companiesSearchModal {
        --bs-modal-zindex: 1075;
    }

    body.companies-page #companiesSearchModal .companies-search-modal-dialog {
        margin: 0;
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: none;
    }

    body.companies-page #companiesSearchModal .modal-content {
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    body.companies-page #companiesSearchModal .modal-header {
        padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    body.companies-page #companiesSearchModal .modal-body {
        min-height: 0;
        overflow: hidden;
    }

    body.companies-page #companiesSearchModal .modal-footer {
        display: none;
    }

    body.companies-page #companiesSearchModal .companies-search-modal-body {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.companies-page #companiesSearchModal .companies-search-name-field,
    body.companies-page #companiesSearchModal .companies-search-district-field {
        width: 100%;
        margin-bottom: 0.85rem;
    }

    body.companies-page #companiesSearchModal .companies-search-filters-panel {
        padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    }

    body.companies-page #companiesSearchModal .companies-search-results-panel {
        padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    body.companies-page #companiesSearchModal .companies-search-modal-body:has(.is-mobile-service-expanded) .companies-search-results-panel {
        display: none;
    }

    body.companies-page #companiesSearchModal .companies-search-filters-panel:has(.is-mobile-service-expanded) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-bottom: 0;
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    }

    body.companies-page #companiesSearchModal .companies-search-filters-panel:has(.is-mobile-service-expanded) > :not(.is-mobile-service-expanded) {
        display: none !important;
    }

    body.companies-page #companiesSearchModal .companies-search-mobile-select-field.is-mobile-service-expanded {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        margin-bottom: 0 !important;
    }

    body.companies-page #companiesSearchModal .companies-search-mobile-select-field.is-mobile-service-expanded .companies-search-mobile-select-wrap.is-picker-open {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    body.companies-page #companiesSearchModal .companies-search-mobile-select-field.is-mobile-service-expanded .companies-find-service-mobile-picker {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
