/* Include/Exclude filter component (cfd-*) – shared across Dashboard, Winning Products, Lotgenoten */

.cfd-container { position: relative; width: 100%; min-width: 270px; }
.cfd-trigger {
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
    min-height: 33px; padding: 4px 28px 4px 7px;
    border: 1px solid #e9e9e9 !important;
    border-radius: 11px !important;
    box-shadow: 0 1px 1px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
    cursor: pointer; background: #fff !important;
    color: #555; font-size: 13px; font-weight: 400;
    -webkit-appearance: none; appearance: none;
    position: relative;
}
.cfd-trigger::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 8px;
    width: 12px;
    height: 12px;
    border: 3px solid #225AEA;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(-45deg);
    transition: 0.5s;
    background-color: #fff;
    border-radius: 30%;
    pointer-events: none;
}
.cfd-container.open .cfd-trigger::before {
    transform: rotate(-225deg);
    top: 12px;
}
.cfd-tag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 6px; border-radius: 4px;
    height: 23px !important; line-height: 23px !important; margin-top: 2px !important;
    font-size: 12px; font-weight: 400; white-space: nowrap;
    border: none !important;
}
.cfd-tag-include { background: #dcfce7; color: #166534; }
.cfd-tag-exclude { background: #fee2e2; color: #991b1b; }
.cfd-tag-more { background: #f1f5f9; color: #64748b; cursor: default; }
.cfd-tag img { width: 14px; height: 10px; border-radius: 1px; object-fit: cover; }
.cfd-tag-remove { cursor: pointer; font-size: 13px; line-height: 1; color: #6451ff !important; margin-left: 1px; }
.cfd-tag-remove:hover { opacity: 0.9; }
.cfd-search-input {
    border: none; outline: none; flex: 1; min-width: 60px;
    font-size: 13px !important; color: #555 !important; background: transparent;
    padding: 0; height: 23px; margin-top: 2px;
}
.cfd-panel {
    display: none; position: absolute; top: calc(100% + 3px); left: 0; right: 0;
    min-width: 280px; width: max-content; max-width: 360px;
    background: #fff; border: 1px solid #e9e9e9;
    border-radius: 6px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
    z-index: 1000;
    max-height: 260px; overflow-y: auto; overflow-x: hidden;
}
.cfd-panel.open { display: block; }
.cfd-item {
    display: flex; align-items: center; padding: 5px 8px; gap: 6px;
    font-size: 12px; transition: background .1s; user-select: none;
}
.cfd-item:hover { background: #f8fafc; }
.cfd-item.cfd-included { background: #f0fdf4; }
.cfd-item.cfd-excluded { background: #fef2f2; }
.cfd-item-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.cfd-item-name { flex: 1; }
.cfd-item-actions { display: flex; gap: 3px; }
.cfd-btn {
    width: 22px; height: 22px; border: 1px solid #e2e8f0; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1;
    background: #fff; transition: all .12s; color: #94a3b8;
}
.cfd-btn:hover { transform: scale(1.1); }
.cfd-btn-inc:hover, .cfd-btn-inc.active { background: #dcfce7; border-color: #86efac; color: #16a34a; }
.cfd-btn-exc:hover, .cfd-btn-exc.active { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.cfd-empty { padding: 12px; text-align: center; color: #94a3b8; font-size: 12px; }
.cfd-toolbar {
    display: flex; gap: 4px; padding: 5px 8px;
    border-bottom: 1px solid #f1f5f9; position: sticky; top: 0; background: #fff; z-index: 1;
}
.cfd-bulk {
    flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid #e2e8f0; border-radius: 4px;
    font-size: 11px; font-weight: 600; cursor: pointer; background: #fff;
    color: #64748b; transition: all .12s; line-height: 1.3; white-space: nowrap;
}
.cfd-bulk:hover { background: #f8fafc; }
.cfd-bulk-inc:hover { background: #f0fdf4; border-color: #86efac; color: #16a34a; }
.cfd-bulk-exc:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.cfd-bulk-clear:hover { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
