.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: calc(100vh - 180px);
}

.companies-page .companies-map-pane {
    flex: 1 1 auto;
    min-width: 0;
}

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

.companies-page .companies-map-root {
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 420px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #1a4d8c;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.companies-page .companies-quote-panel {
    flex: 0 0 42%;
    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;
}

.companies-page .companies-quote-panel-inner {
    height: calc(100vh - 180px);
    min-height: 420px;
    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-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-company-panel-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 0.65rem;
    background: #f8fafc;
    padding: 0.35rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.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-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-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-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%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.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-form .form-control.companies-quote-field-error,
.companies-page .companies-quote-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-company-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    max-width: 76px;
}

.companies-page .companies-quote-company-distance {
    font-size: 0.62rem;
    line-height: 1.15;
    text-align: center;
    color: #475569;
    font-weight: 600;
}

.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-quote-live-approval-admin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
}

.companies-page .companies-quote-live-approval-admin .btn-check:checked + .btn {
    background-color: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.65);
    color: #157347;
}

.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-success-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.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-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 .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.35rem;
    max-width: 11rem;
}

.companies-page .companies-recent-quotes-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.72rem;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.6rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    line-height: 1.2;
    text-align: left;
}

.companies-page .companies-recent-quotes-toggle:hover,
.companies-page .companies-recent-quotes-toggle.is-active {
    background: rgba(168, 85, 247, 0.45);
    color: #fff;
}

.companies-page .companies-recent-quotes-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.4rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 0.68rem;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.companies-page .companies-recent-quotes-filter {
    margin: 0;
    font-weight: 600;
    color: #e2e8f0;
}

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

.companies-page .companies-recent-quotes-days:hover,
.companies-page .companies-recent-quotes-days:focus {
    border-color: #c084fc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
}

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

.companies-page .companies-recent-quotes-count {
    font-weight: 700;
    color: #e9d5ff;
}

.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;
}

.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-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;
}

.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 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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;
}

.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;
}

.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,
.companies-page .companies-find-map-toggle:hover,
.companies-page .companies-find-map-toggle.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.companies-page .companies-find-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-size: 1.15rem;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    min-width: 2.5rem;
}

.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-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 1 auto;
    max-width: 200px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #ea4335;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
    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 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.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;
    }

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

    .companies-page .companies-map-root,
    .companies-page .companies-quote-panel-inner {
        height: min(52vh, 420px);
        min-height: 280px;
    }

    .companies-page .companies-map-layout.is-quote-open .companies-map-root {
        height: min(42vh, 360px);
    }
}

@media (max-width: 767.98px) {
    .companies-page .companies-map-root {
        height: calc(100vh - 220px);
        min-height: 360px;
    }
}
