.indicator-select-field,
.indicator-select-field .select2-container {
    min-width: 0;
    max-width: 100%;
}

.indicator-select-field > .select2-container {
    width: 100% !important;
}

.indicator-select-field > .select2-container .select2-selection--single {
    position: relative;
    height: 50px;
    min-height: 50px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #a9c2d1;
    border-radius: 7px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
    box-shadow: 0 1px 2px rgba(11, 59, 96, .05);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.indicator-select-field > .select2-container.select2-container--focus .select2-selection--single,
.indicator-select-field > .select2-container.select2-container--open .select2-selection--single {
    border-color: #1cabe2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(28, 171, 226, .16);
}

.indicator-select-field > .select2-container .select2-selection__rendered {
    padding: 0 46px 0 14px;
    color: #183447;
    font-size: 15px;
    font-weight: 700;
    line-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.indicator-select-field > .select2-container .select2-selection__placeholder {
    color: #718492;
    font-weight: 600;
}

.indicator-select-field > .select2-container .select2-selection__arrow {
    top: 0;
    right: 8px;
    width: 34px;
    height: 100%;
}

.indicator-select-field > .select2-container .select2-selection__arrow b {
    border-color: #31566d transparent transparent;
    border-width: 6px 5px 0;
}

.indicator-select-field > .select2-container.select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent #1677a5;
    border-width: 0 5px 6px;
}

.indicator-select-help {
    display: block;
    margin-top: 2px;
    color: #6b7f8d;
    font-size: 12px;
    font-weight: 400;
}

.selected-indicator-summary {
    display: block;
    margin-top: 6px;
    padding: 7px 10px;
    border-left: 3px solid #9bcfe4;
    border-radius: 3px;
    background: #f6fafc;
    color: #617484;
}

.selected-indicator-code,
.selected-indicator-description {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.selected-indicator-code {
    margin-bottom: 3px;
    color: #123d59;
    font-weight: 700;
}

.selected-indicator-description {
    font-weight: 400;
}

.selected-indicator-summary[hidden] {
    display: none;
}

.beneficiary-age-range {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e4f5fc;
    color: #09648d;
    font-size: 12px;
    font-weight: 700;
}

.beneficiary-age-range[hidden] {
    display: none;
}

.indicator-select2-dropdown {
    width: min(900px, calc(100vw - 32px)) !important;
}

.indicator-select2-dropdown .select2-results__options {
    max-height: 420px;
}

.indicator-select2-dropdown .select2-search--dropdown {
    padding: 10px;
    border-bottom: 1px solid #e3ebef;
}

.indicator-select2-dropdown .select2-search__field {
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #9fc3d5 !important;
    border-radius: 6px;
    outline: 0;
}

.indicator-select2-dropdown .select2-search__field:focus {
    border-color: #1cabe2 !important;
    box-shadow: 0 0 0 3px rgba(28, 171, 226, .13);
}

.indicator-select2-dropdown .select2-results__option {
    padding: 11px 13px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Catálogo visual de indicadores del formulario de actividad. */
.indicator-select-field {
    position: relative;
}

.indicator-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.indicator-picker-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.indicator-picker-heading label,
.indicator-picker-heading small {
    display: block;
}

.indicator-picker-heading small {
    margin-top: 3px;
    font-weight: 400;
}

.indicator-card-count {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f5fb;
    color: #09648d;
    font-size: 12px;
    font-weight: 700;
}

.indicator-search-wrap {
    position: relative;
    margin-bottom: 14px;
}

.indicator-search-wrap i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #6b7f8d;
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.indicator-search-wrap input {
    height: 44px;
    padding-left: 40px;
    border-color: #bdd0da;
    background: #fbfdfe;
}

.indicator-card-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.indicator-group-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    background: #f4f7fb;
    box-shadow: 0 3px 12px rgba(23, 57, 77, .07);
}

.indicator-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.indicator-group-header strong {
    color: #17384f;
    font-size: 16px;
    line-height: 1.35;
}

.indicator-group-total {
    color: #9aa9b5;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.indicator-group-description {
    margin: 6px 0 14px;
    color: #718392;
    font-size: 11px;
    line-height: 1.4;
}

.indicator-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: 8px;
}

.indicator-card {
    display: flex;
    min-width: 0;
    min-height: 112px;
    flex-direction: column;
    gap: 9px;
    padding: 13px;
    border: 1px solid #d8e2e8;
    border-radius: 9px;
    background: #fff;
    color: #183447;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(23, 57, 77, .05);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.indicator-card:hover {
    border-color: #79bfdc;
    background: #fff;
    box-shadow: 0 7px 18px rgba(23, 57, 77, .10);
    transform: translateY(-1px);
}

.indicator-card:focus-visible {
    outline: 3px solid rgba(28, 171, 226, .22);
    outline-offset: 2px;
}

.indicator-card.is-selected {
    border-color: #1cabe2;
    background: #eefaff;
    box-shadow: 0 0 0 2px rgba(28, 171, 226, .18), 0 7px 18px rgba(23, 57, 77, .08);
}

.indicator-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.indicator-card-top strong {
    overflow-wrap: anywhere;
    color: #0b3b60;
    font-size: 14px;
}

.indicator-coordination {
    display: inline-flex;
    justify-content: center;
    min-width: 48px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.indicator-coordination.is-nna { background: #087f8c; }
.indicator-coordination.is-vbg { background: #b02a60; }
.indicator-coordination.is-mixed { background: #6559cc; }

.indicator-card-check {
    color: #1cabe2;
    font-size: 21px;
    opacity: 0;
}

.indicator-card.is-selected .indicator-card-check {
    opacity: 1;
}

.indicator-card-description {
    flex: 1;
    font-size: 13px;
    line-height: 1.45;
}

.indicator-card-meta {
    padding-top: 9px;
    border-top: 1px solid #e1e9ed;
    color: #617484;
    font-size: 11px;
    font-weight: 600;
}

.indicator-card-empty {
    margin: 0;
    padding: 20px;
    border: 1px dashed #b9cad4;
    border-radius: 8px;
    background: #f8fbfc;
    color: #617484;
    text-align: center;
}

.indicator-card-empty[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .indicator-picker-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .indicator-card-grid {
        display: flex;
    }

    .indicator-group-panel {
        padding: 14px;
    }

    .indicator-group-items {
        grid-template-columns: 1fr;
    }
}
