/*
 * Seletor de canal do Board (modal com avatares, escolha única).
 * O antigo seletor Unidade/Canal/Formulário do navbar deixa de ser exibido.
 */
.desktop-formfilter {
    display: none !important;
}

/* Selo no ícone da barra lateral: há canal filtrado */
.ef-board-channel-icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #223447;
    border-radius: 999px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
}

.ef-board-channel-icon-badge[hidden] {
    display: none !important;
}

/* Modal */
.ef-channel-picker .modal-header {
    align-items: flex-start;
}

.ef-channel-picker-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid #e5edf4;
    background: #f8fafc;
}

.ef-channel-picker-search {
    position: relative;
}

.ef-channel-picker-search > i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.ef-channel-picker-search .form-control {
    padding-left: 34px;
    border-radius: 10px;
}

.ef-channel-picker .modal-body {
    padding: 16px;
    min-height: 260px;
}

.ef-channel-picker.is-submitting {
    pointer-events: none;
    opacity: 0.6;
}

.ef-channel-picker-section {
    margin-top: 20px;
}

.ef-channel-picker-section-title {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ef-channel-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 10px;
}

.ef-channel-picker [hidden] {
    display: none !important;
}

/* Card do canal */
.ef-channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #1e293b;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ef-channel-card:hover,
.ef-channel-card:focus {
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.ef-channel-card.is-active {
    border-color: #0d6efd;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.ef-channel-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.ef-channel-avatar-all {
    background: #475569;
    font-size: 1.3rem;
}

.ef-channel-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.ef-channel-unit {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ef-channel-unit:empty {
    display: none;
}

.ef-channel-picker-empty {
    padding: 32px 0;
    color: #64748b;
    text-align: center;
}

@media (max-width: 575.98px) {
    .ef-channel-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }
}
