/* Анализ конкурентов — AdminLTE 4 / BS5 */

.cabinet-competitor-analysis-page {
    --cabinet-ca-highlight: #dbeafe;
    --cabinet-ca-highlight-border: #93c5fd;
    --cabinet-ca-protected-bg: #fff7ed;
    --cabinet-ca-protected-border: #fdba74;
    --cabinet-ca-rank-bg: #f1f5f9;
    --cabinet-ca-card-radius: 0.5rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-nav-card > .card-header {
    background-color: var(--bs-body-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-nav-card .cabinet-ca-module-nav .nav-link {
    font-weight: 500;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .cabinet-ca-settings-card.card-outline {
    border-top-width: 3px;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .form-label {
    line-height: 1.35;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .info-box {
    min-height: 5.5rem;
    margin-bottom: 0;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .info-box-number {
    font-size: 1.75rem;
    font-weight: 700;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .cabinet-ca-users-stats-card .card-title {
    font-size: 1rem;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .cabinet-ca-users-stat-value {
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
}

.cabinet-competitor-analysis-page.cabinet-ca-config-page .cabinet-ca-users-stats-card .list-group-item {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-region-field .select2-container {
    width: 100% !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-region-tabs .nav-link {
    border-radius: 2rem;
    font-weight: 500;
}

.cabinet-competitor-analysis-page .cabinet-ca-region-tabs .nav-link.active {
    font-weight: 600;
}

.cabinet-competitor-analysis-page .cabinet-ca-region-field .select2-selection--single {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.cabinet-competitor-analysis-page .cabinet-ca-region-field .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-form-row .form-control.phrases {
    min-height: 10rem;
    resize: vertical;
    font-family: var(--bs-font-monospace);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cabinet-competitor-analysis-page .cabinet-ca-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-progress .progress {
    height: 1.35rem;
    background-color: var(--bs-secondary-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-progress #cabinet-ca-progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35rem;
}

/* —— Результаты —— */

.cabinet-competitor-analysis-page .cabinet-ca-results-section {
    scroll-margin-top: 1rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-results-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-results-section__head--actions {
    margin-bottom: 0.75rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--bs-heading-color);
}

.cabinet-competitor-analysis-page .cabinet-ca-results-card {
    border-radius: var(--cabinet-ca-card-radius);
    overflow: hidden;
}

.cabinet-competitor-analysis-page .cabinet-ca-toolbar .btn-group {
    gap: 0.25rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-toolbar .colored-button.btn-primary {
    box-shadow: none;
}

/* SERP grid */

.cabinet-competitor-analysis-page .cabinet-ca-results-section__head--serp {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-compare-bar {
    background: var(--bs-info-bg-subtle, #cff4fc) !important;
    border-color: var(--bs-info, #0dcaf0) !important;
    box-shadow: 0 0 0 1px rgba(13, 202, 240, 0.25);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-compare-bar .cabinet-ca-serp-compare-btn.btn-primary {
    pointer-events: none;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
    gap: 1rem;
    width: 100%;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-grid:has(.cabinet-ca-phrase-card--compare) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
}

.cabinet-competitor-analysis-page .cabinet-ca-phrase-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--cabinet-ca-card-radius);
    /* visible: иначе Bootstrap dropdown у строки (ссылки) обрезается —
       особенно заметно при фильтре по домену, когда в карточке одна строка */
    overflow: visible;
    background: var(--bs-body-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.cabinet-competitor-analysis-page .cabinet-ca-phrase-card__header {
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, var(--bs-tertiary-bg) 0%, var(--bs-body-bg) 100%);
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: var(--cabinet-ca-card-radius) var(--cabinet-ca-card-radius) 0 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-phrase-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.cabinet-competitor-analysis-page .cabinet-ca-phrase-card__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-region-col {
    min-width: 0;
    border-right: 1px solid var(--bs-border-color-translucent);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-region-col:last-child {
    border-right: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-region-label {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color-translucent);
    line-height: 1.3;
}

.cabinet-competitor-analysis-page .cabinet-ca-phrase-card__cols {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.35rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row:last-child {
    border-bottom: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row:hover:not(.is-highlighted) {
    background-color: var(--bs-tertiary-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row.is-highlighted {
    background-color: var(--cabinet-ca-row-highlight-bg, var(--cabinet-ca-highlight)) !important;
    box-shadow: inset 3px 0 0 var(--cabinet-ca-row-highlight-border, var(--cabinet-ca-highlight-border)) !important;
    transition: opacity 0.15s ease, filter 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row.is-highlighted.cabinet-ca-serp-row--dimmed {
    opacity: 0.32;
    filter: saturate(0.35) brightness(0.92);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row.is-highlighted.cabinet-ca-serp-row--focus {
    opacity: 1;
    filter: none;
    position: relative;
    z-index: 1;
    box-shadow:
        inset 3px 0 0 var(--cabinet-ca-row-highlight-border, var(--cabinet-ca-highlight-border)),
        0 0 0 1px var(--cabinet-ca-row-highlight-border, var(--cabinet-ca-highlight-border)) !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row.is-highlighted[data-highlight-group="aggregator"] {
    background-color: #fce7f3 !important;
    box-shadow: inset 3px 0 0 #f472b6 !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bs-secondary-color);
    background: var(--cabinet-ca-rank-bg);
    border-radius: 0.35rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-url {
    min-width: 0;
    line-height: 1.3;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-domain {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bs-primary);
    word-break: break-word;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-path {
    display: block;
    font-size: 0.6875rem;
    color: var(--bs-secondary-color);
    word-break: break-all;
    margin-top: 0.1rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row .btn-tool {
    color: var(--bs-secondary-color);
    opacity: 0.85;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row:hover .btn-tool {
    opacity: 1;
    color: var(--bs-primary);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row-actions .dropdown-menu {
    z-index: 1080;
    min-width: 12rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-filter-btn {
    opacity: 0.35;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row:hover .cabinet-ca-serp-filter-btn,
.cabinet-competitor-analysis-page .cabinet-ca-serp-filter-btn.is-active {
    opacity: 1;
    color: var(--bs-primary);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-filter-btn.is-active {
    color: var(--bs-primary);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row--filter-match {
    background-color: #ecfdf5 !important;
    box-shadow: inset 3px 0 0 #34d399 !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row--missing {
    cursor: default;
    opacity: 0.72;
    background: var(--bs-tertiary-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-row--missing .cabinet-ca-serp-domain {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-host-filter-bar {
    background: #f8fafc;
}

.cabinet-competitor-analysis-page .cabinet-ca-serp-host-filter-bar code {
    font-size: 0.875rem;
}

/* Meta table (title/H1…) */

.cabinet-competitor-analysis-page .cabinet-ca-meta-table thead th {
    font-size: 0.75rem;
    white-space: nowrap;
    vertical-align: middle;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-table tbody td:first-child {
    font-weight: 600;
    background: var(--bs-tertiary-bg);
    vertical-align: top;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-table .cabinet-ca-protected-cell {
    background: var(--cabinet-ca-protected-bg) !important;
    border-left: 3px solid var(--cabinet-ca-protected-border) !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-table .cabinet-ca-meta-empty-cell {
    background: #fffbeb !important;
    border-left: 3px solid #fbbf24 !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-table .cabinet-ca-fetch-failed-cell {
    background: #fffbeb !important;
    border-left: 3px solid #fbbf24 !important;
}

.cabinet-competitor-analysis-page .cabinet-ca-status-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-status-notice--blocked {
    color: #9a3412;
}

.cabinet-competitor-analysis-page .cabinet-ca-status-notice--empty {
    color: #92400e;
}

.cabinet-competitor-analysis-page .cabinet-ca-status-notice--fetch {
    color: #92400e;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-domain {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bs-primary);
    word-break: break-word;
}

.cabinet-competitor-analysis-page .cabinet-ca-protected-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #9a3412;
    margin-top: 0.35rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-protected-notice i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-tag-block {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--bs-border-color-translucent);
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-tag-block:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-tag-block__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--bs-primary);
}

.cabinet-competitor-analysis-page .cabinet-ca-meta-tag-block__text {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--bs-body-color);
    word-break: break-word;
}

/* Nesting stats */

.cabinet-competitor-analysis-page .cabinet-ca-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--cabinet-ca-card-radius);
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-stat-pill--accent {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.cabinet-competitor-analysis-page .cabinet-ca-stat-pill__label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
}

.cabinet-competitor-analysis-page .cabinet-ca-stat-pill__value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cabinet-competitor-analysis-page .cabinet-ca-stat-pill__pct {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

/* URLs table */

.cabinet-competitor-analysis-page .cabinet-ca-urls-table td:first-child a,
.cabinet-competitor-analysis-page .cabinet-ca-urls-table td:first-child {
    font-size: 0.8125rem;
    word-break: break-all;
}

.cabinet-competitor-analysis-page .cabinet-ca-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.5rem;
    align-items: start;
}

.cabinet-competitor-analysis-page .cabinet-ca-url-analyze {
    margin-top: 0.1rem;
    padding: 0.15rem 0.3rem;
    color: var(--bs-secondary-color);
    opacity: 0.65;
    line-height: 1;
    border-radius: 0.25rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-url-analyze:hover,
.cabinet-competitor-analysis-page tr:hover .cabinet-ca-url-analyze {
    opacity: 1;
    color: var(--bs-primary);
    background: var(--bs-tertiary-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-url-link {
    color: var(--bs-primary);
    text-decoration: none;
}

.cabinet-competitor-analysis-page .cabinet-ca-url-link:hover {
    text-decoration: underline;
}

.cabinet-competitor-analysis-page .cabinet-ca-urls-table thead th {
    vertical-align: middle;
    white-space: nowrap;
}

.cabinet-competitor-analysis-page .cabinet-ca-urls-table tbody td {
    vertical-align: top;
}

.cabinet-competitor-analysis-page .cabinet-ca-urls-col-link {
    min-width: 16rem;
    max-width: 36rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-urls-col-phrases {
    width: 16rem;
    min-width: 14rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-urls-col-count {
    width: 6.5rem;
}

.cabinet-competitor-analysis-page #urls-table td.cabinet-ca-url-phrases-cell,
.cabinet-competitor-analysis-page .cabinet-ca-url-phrases-cell {
    min-width: 14rem;
    max-width: 22rem;
    text-align: left;
    vertical-align: top;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-phrases-field {
    display: block;
    width: 100%;
    min-height: 2rem;
    max-height: 6.5rem;
    resize: vertical;
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 0.35rem 0.5rem;
    background: var(--bs-body-bg);
    cursor: text;
}

.cabinet-competitor-analysis-page .cabinet-ca-phrases-field:focus {
    background: #fff;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.cabinet-competitor-analysis-page .cabinet-ca-urls-table .cabinet-ca-url-count-cell {
    text-align: center;
    vertical-align: top;
    padding-top: 0.55rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-repeat-badge {
    display: inline-flex;
    min-width: 1.75rem;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-radius: 2rem;
    background: var(--bs-primary);
    color: #fff;
}

/* Tag chips */

.cabinet-competitor-analysis-page .cabinet-ca-tags-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
    background: var(--bs-tertiary-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-tags-table tbody td:first-child {
    font-weight: 600;
    vertical-align: top;
    background: var(--bs-tertiary-bg);
    max-width: 11rem;
    word-break: break-word;
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-cell {
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-content: flex-start;
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    line-height: 1.25;
    border-radius: 0.35rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-chip[data-count="5"],
.cabinet-competitor-analysis-page .cabinet-ca-tag-chip[data-count="6"],
.cabinet-competitor-analysis-page .cabinet-ca-tag-chip[data-count="7"] {
    border-color: #93c5fd;
    background: #eff6ff;
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-chip[data-count="8"],
.cabinet-competitor-analysis-page .cabinet-ca-tag-chip[data-count="9"],
.cabinet-competitor-analysis-page .cabinet-ca-tag-chip[data-count="10"] {
    border-color: #60a5fa;
    background: #dbeafe;
    font-weight: 500;
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-chip__word {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-competitor-analysis-page .cabinet-ca-tag-chip__count {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bs-secondary-color);
}

/* Legacy / shared */

.cabinet-competitor-analysis-page .site-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cabinet-competitor-analysis-page .row-width {
    min-width: 200px;
    max-width: 220px;
}

.cabinet-competitor-analysis-page .CompetitorAnalysisPhrases,
#header-nav-bar .cabinet-header-limits-menu tr.CompetitorAnalysisPhrases {
    background: oldlace;
}

.cabinet-competitor-analysis-page .cabinet-ca-limit-banner {
    font-size: 0.9375rem;
}

.cabinet-competitor-analysis-page .danger:not(.cabinet-ca-protected-cell) {
    background: rgb(255, 193, 7);
}

.cabinet-competitor-analysis-page .fixed-lines {
    word-wrap: break-word;
}

.cabinet-competitor-analysis-page .select-text {
    color: white;
    text-shadow: 1px 1px 3px black;
}

.cabinet-competitor-analysis-page #recommendationModal > div > div > div.modal-body {
    height: 450px;
}

.cabinet-competitor-analysis-page #bootstrap-duallistbox-nonselected-list_duallistbox_phrases,
.cabinet-competitor-analysis-page #bootstrap-duallistbox-selected-list_duallistbox_phrases,
.cabinet-competitor-analysis-page #bootstrap-duallistbox-nonselected-list_duallistbox_tags,
.cabinet-competitor-analysis-page #bootstrap-duallistbox-selected-list_duallistbox_tags {
    height: 250px !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.cabinet-competitor-analysis-page .separate-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cabinet-competitor-analysis-page .separate-header {
    height: auto;
    min-height: 2.5rem;
    cursor: default;
}

.cabinet-competitor-analysis-page .await-color {
    word-break: break-word;
}

.cabinet-competitor-analysis-page .cabinet-ca-dt-toolbar,
.cabinet-competitor-analysis-page .cabinet-ca-dt-footer {
    margin: 0.5rem 0.75rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-dt-footer .dataTables_info {
    float: none;
    padding-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.cabinet-competitor-analysis-page .cabinet-ca-dt-footer .dataTables_paginate {
    float: none;
    padding-top: 0;
    text-align: right;
}

.cabinet-competitor-analysis-page .cabinet-ca-dt-toolbar .dt-buttons {
    display: inline-flex;
    gap: 0.35rem;
}

.cabinet-competitor-analysis-page #recommendations-table_length > label,
.cabinet-competitor-analysis-page #urls-table_length > label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cabinet-competitor-analysis-page .form-select.form-select-sm.form-control.form-control-sm {
    margin: 0 5px;
}

.cabinet-competitor-analysis-page #sites-tables {
    width: 100%;
}

.cabinet-competitor-analysis-page .top-sites-table {
    display: table;
    width: 100%;
}

.cabinet-competitor-analysis-page .cabinet-ca-settings-card .card-header .card-title {
    font-size: 1rem;
}

.cabinet-competitor-analysis-page #tab_1 > div.d-flex.flex-column > div:nth-child(3) > button.btn.btn-secondary.col-2 > span > span > span,
.cabinet-competitor-analysis-page #tab_1 > div.d-flex.flex-column > div:nth-child(2) > button.btn.btn-secondary.col-2 > span > span > span,
.cabinet-competitor-analysis-page #tab_1 > div.d-flex.flex-column > div:nth-child(1) > button.btn.btn-secondary.col-2 > span > span > span {
    width: 400px;
}

.cabinet-ca-admin-debug-log {
    max-height: 280px;
    overflow: auto;
    font-size: 11px;
    line-height: 1.35;
    padding: 0.75rem 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 0;
}

/* Recommendations by SERP clusters */

.cabinet-competitor-analysis-page .cabinet-ca-rec-hint {
    max-width: 42rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-tags-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-cluster__head {
    background: var(--bs-tertiary-bg);
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-cluster__phrases {
    font-weight: 600;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-shared-list {
    padding-left: 1.1rem;
    columns: 2;
    column-gap: 1.5rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-tag-block__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-primary);
    margin-bottom: 0.35rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.35rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    cursor: help;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-chip--query {
    border-color: #86efac;
    background: #f0fdf4;
}

.cabinet-competitor-analysis-page .cabinet-ca-rec-chip__score {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
    .cabinet-competitor-analysis-page .cabinet-ca-rec-shared-list {
        columns: 1;
    }
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-verdict-stack .cabinet-ca-geo-verdict--engine + .cabinet-ca-geo-verdict--engine {
    margin-top: 1.25rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-engine-title {
    letter-spacing: 0.04em;
    font-weight: 700;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-verdict__alert {
    margin-bottom: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-table th,
.cabinet-competitor-analysis-page .cabinet-ca-geo-table td {
    vertical-align: top;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-table__phrase {
    min-width: 8rem;
    white-space: nowrap;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-table__avg {
    width: 5.5rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-table__pair {
    min-width: 14rem;
    max-width: 22rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-table__verdict {
    width: 7rem;
    white-space: nowrap;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-pair-head {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 600;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-pair-cell__pct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-shared-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-shared-list li + li {
    margin-top: 0.2rem;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-shared-url {
    text-decoration: none;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-shared-url:hover code {
    text-decoration: underline;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-shared-url code {
    color: var(--bs-link-color, #0d6efd);
    word-break: break-all;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-excluded__summary {
    cursor: pointer;
    user-select: none;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-excluded__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-height: 9rem;
    overflow-y: auto;
    padding: 0.15rem 0;
}

.cabinet-competitor-analysis-page .cabinet-ca-geo-excluded__chip {
    font-weight: 500;
    font-family: var(--bs-font-monospace, ui-monospace, monospace);
}

.cabinet-competitor-analysis-page .cabinet-ca-region-tabs {
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .cabinet-competitor-analysis-page .cabinet-ca-phrase-card__compare {
        grid-template-columns: 1fr;
    }

    .cabinet-competitor-analysis-page .cabinet-ca-serp-region-col {
        border-right: 0;
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    .cabinet-competitor-analysis-page .cabinet-ca-serp-region-col:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .cabinet-competitor-analysis-page .cabinet-ca-toolbar .btn-group {
        width: 100%;
    }

    .cabinet-competitor-analysis-page .cabinet-ca-toolbar .btn-group .btn {
        flex: 1 1 auto;
    }
}
