/* /MainPage/Modules/Organization/Tasks/CardsView/CardsView.css */

.CardsViewContentArea {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    .CardsViewGrid {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 14px;
        padding: 20px;
        flex: 1;
        overflow-y: auto;

        .CardsViewEmpty {
            color: #94a3b8;
            font-size: 13px;
            text-align: center;
            padding: 20px;
            margin: 0;
        }

        .CardsViewActiveFilterBar {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 10px;
            background: rgba(99, 102, 241, 0.06);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 6px;
            font-size: 12px;
            color: #6366f1;

            .CardsViewClearFiltersBtn {
                margin-left: auto;
                background: none;
                border: none;
                cursor: pointer;
                font-size: 12px;
                color: #6366f1;
                padding: 2px 6px;
                border-radius: 4px;

                &:hover { background: rgba(99, 102, 241, 0.1); }
            }
        }

        .CardsViewCard {
            position: relative;
            background: var(--mainPageCardBgColor);
            border: 1px solid var(--mainPageBorderColor);
            border-radius: 8px;
            padding: 16px;
            width: 300px;
            overflow: hidden;
            cursor: pointer;
            transition: box-shadow 0.15s, transform 0.15s;
            display: flex;
            flex-direction: column;
            gap: 6px;

            .CardsViewCardActions {
                display: flex;
                gap: 2px;
                margin-left: 2px;
                flex-shrink: 0;
            }

            .CardsViewCardTitleRow {
                display: flex;
                align-items: center;
                gap: 6px;
            }

            .CardsViewCardTitle {
                flex: 1;
                font-weight: 600;
                font-size: 13px;
                line-height: 1.4;
            }

            .CardsViewCardDesc {
                font-size: 14px;
                color: var(--paraphColor);
                line-height: 1.4;
                display: -webkit-box;
                -webkit-line-clamp: 5;
                line-clamp: 5;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .CardsViewCardDesc .CardsViewDescriptionParagraph + .CardsViewDescriptionParagraph {
                margin-top: 0.7em;
            }

            .CardsViewCardTags {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 4px;
                min-height: 18px;

                .CardsViewCardTagsLeft {
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    gap: 4px;
                    flex: 1;
                    min-width: 0;
                }
            }

            .CardsViewCardTag {
                font-size: 10px;
                padding: 1px 7px;
                border-radius: 10px;
                font-weight: 500;
                flex-shrink: 0;
            }

            .CardsViewCardStatus {
                font-size: 10px;
                padding: 2px 7px;
                border-radius: 10px;
                flex-shrink: 0;
                align-self: center;
            }

            .CardsViewCardProgressRow {
                display: flex;
                align-items: center;
                gap: 8px;
                margin-top: auto;

                .CardsViewCardProgressBar {
                    flex: 1;
                    height: 3px;
                    background: var(--mainPageBorderColor);
                    border-radius: 2px;
                    overflow: hidden;

                    .CardsViewCardProgressFill {
                        height: 100%;
                        background: #6366f1;
                        border-radius: 2px;
                        transition: width 0.3s ease;
                    }
                }

                .CardsViewCardProgressPct {
                    font-size: 11px;
                    color: #94a3b8;
                    flex-shrink: 0;
                    font-variant-numeric: tabular-nums;
                }
            }

            &:hover {
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                transform: translateY(-2px);
            }

            &--dragging {
                opacity: 0.4;
                transform: scale(0.97);
            }

            &--drag-over {
                border-color: #6366f1;
                box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
                transform: translateY(-2px);
            }

            &.CardsViewAddCard {
                border-style: dashed;
                color: #94a3b8;
                font-size: 13px;
                justify-content: center;
                align-items: center;

                &:hover {
                    color: #6366f1;
                    border-color: #6366f1;
                    transform: none;
                    box-shadow: none;
                }
            }
        }
    }

    .CardsViewPanel {
        position: absolute;
        top: 0;
        right: 0;
        width: 320px;
        height: 100%;
        background: var(--mainPageModuleBarBgColor);
        border-left: 1px solid var(--mainPageBorderColor);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        display: flex;
        flex-direction: column;
        z-index: 10;

        &.open {
            transform: translateX(0);
        }

        .CardsViewPanelHeader {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid var(--mainPageBorderColor);
            flex-shrink: 0;

            .CardsViewPanelTitle {
                font-weight: 600;
                font-size: 15px;
            }

            .CardsViewPanelClose {
                background: none;
                border: none;
                cursor: pointer;
                font-size: 14px;
                color: #94a3b8;
                padding: 4px 7px;
                border-radius: 4px;
                line-height: 1;

                &:hover {
                    background: var(--mainPageBgColor);
                    color: #334155;
                }
            }
        }

        .CardsViewPanelSteps {
            flex: 1;
            overflow-y: auto;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;

            .CardsViewStep {
                border: 1px solid var(--mainPageBorderColor);
                border-radius: 6px;
                overflow: hidden;
                flex-shrink: 0;

                .CardsViewStepHeader {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    padding: 9px 12px;
                    cursor: pointer;
                    background: var(--mainPageBgColor);
                    user-select: none;

                    .CardsViewStepArrow {
                        font-size: 9px;
                        color: #94a3b8;
                        flex-shrink: 0;
                        width: 10px;
                    }

                    .CardsViewStepTitle {
                        flex: 1;
                        font-size: 13px;
                        font-weight: 500;
                    }

                    .CardsViewStepStatus {
                        font-size: 10px;
                        padding: 2px 7px;
                        border-radius: 10px;
                    }

                    .CardsViewStepProgress {
                        font-size: 11px;
                        color: #94a3b8;
                        flex-shrink: 0;
                        font-variant-numeric: tabular-nums;
                    }

                    .CardsViewStepActions {
                        display: flex;
                        gap: 2px;
                        margin-left: auto;
                        flex-shrink: 0;
                    }

                    &:hover {
                        filter: brightness(0.97);
                    }
                }

                .CardsViewStepBody {
                    display: none;
                    padding: 10px 12px;
                    border-top: 1px solid var(--mainPageBorderColor);
                    background: var(--mainPageModuleBarBgColor);

                    &.open {
                        display: block;
                    }

                    .CardsViewDetailEmpty {
                        color: #94a3b8;
                        font-size: 13px;
                        text-align: center;
                        padding: 20px;
                        margin: 0;
                    }

                    .CardsViewDetail {
                        padding: 7px 0;
                        border-bottom: 1px solid var(--mainPageBorderColor);

                        &:last-child {
                            border-bottom: none;
                            padding-bottom: 0;
                        }

                        &.CardsViewDetail--done .CardsViewDetailTitle {
                            text-decoration: line-through;
                            opacity: 0.45;
                        }

                        .CardsViewDetailTitleRow {
                            display: flex;
                            align-items: center;
                            gap: 6px;

                            &.CardsViewDetailTitleRow--toggle {
                                cursor: pointer;
                            }

                            .CardsViewDetailArrow {
                                font-size: 8px;
                                color: #94a3b8;
                                flex-shrink: 0;
                                width: 10px;
                            }

                            .CardsViewDetailCheck {
                                flex-shrink: 0;
                                width: 13px;
                                height: 13px;
                                margin: 0;
                                cursor: pointer;
                                accent-color: #6366f1;
                            }

                            .CardsViewDetailTitle {
                                flex: 1;
                                font-size: 13px;
                                font-weight: 500;
                            }

                            .CardsViewDetailActions {
                                display: flex;
                                gap: 2px;
                                margin-left: auto;
                                flex-shrink: 0;
                            }
                        }

                        .CardsViewDetailDesc {
                            font-size: 12px;
                            color: #64748b;
                            margin-top: 3px;
                            line-height: 1.4;
                            white-space: pre-wrap;

                            .CardsViewDescriptionParagraph + .CardsViewDescriptionParagraph {
                                margin-top: 0.75em;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* Status colors — appliqués sur .CardsViewCardStatus et .CardsViewStepStatus */
.CardsViewStatus-todo        { background: #f0f0f0; color: #555; }
.CardsViewStatus-in_progress,
.CardsViewStatus-in-progress { background: #dbeafe; color: #2563eb; }
.CardsViewStatus-done        { background: #dcfce7; color: #16a34a; }
.CardsViewStatus-normal      { background: #f0f0f0; color: #555; }

.CardsViewDescriptionParagraph {
    margin: 0;
}

.CardsViewDescriptionContent--preserveBreaks {
    white-space: pre-wrap;
}

.CardsViewDescriptionTooltip {
    position: fixed;
    z-index: 1000;
    width: max-content;
    max-width: min(520px, 80vw);
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 10px 24px rgb(15 23 42 / 22%);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
    pointer-events: none;
    white-space: pre-wrap;
}

/* Bouton action générique (✎ / ×) — réutilisé dans CardActions, StepActions, DetailActions */
.CardsViewActionBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    padding: 0;
    flex-shrink: 0;

    &:hover {
        background: var(--mainPageBorderColor);
        color: #334155;
    }

    &--delete:hover {
        background: #fee2e2;
        color: #ef4444;
    }
}

/* Input inline — réutilisé dans Card, StepHeader, DetailTitleRow */
.CardsViewInlineInput {
    flex: 1;
    min-width: 0;
    height: 24px;
    border: 1px solid #6366f1;
    border-radius: 4px;
    background: var(--mainPageModuleBarBgColor, #fff);
    color: var(--textColor);
    padding: 0 6px;
    font-size: 13px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    width: 100%;
    box-sizing: border-box;

    &--title {
        font-weight: 600;
        font-size: 14px;
        height: 28px;
    }

    &--desc {
        font-size: 12px;
        height: 22px;
        color: #64748b;
        border-color: #94a3b8;
        box-shadow: none;

        &:focus {
            border-color: #6366f1;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
        }
    }
}

.CardsViewCreationForm {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.CardsViewAttachmentsSection {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--mainPageBorderColor);
}

.CardsViewAttachmentHeading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--textColor);
    font-size: 13px;
}

.CardsViewAttachmentCount {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--mainPageBorderColor);
    color: #64748b;
    text-align: center;
    font-size: 11px;
}

.CardsViewAttachmentList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.CardsViewAttachment {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 7px;
    background: var(--mainPageBgColor);
}

.CardsViewAttachmentPreviewFrame {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 6px;
    background: #e2e8f0;
}

.CardsViewAttachmentPreviewLink {
    display: block;
    width: 100%;
    height: 100%;
}

.CardsViewAttachmentPreview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #e2e8f0;
}

.CardsViewAttachmentTextPreview {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px;
    overflow: hidden;
    background: #fff;
    color: #334155;
    font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.CardsViewAttachmentDocumentPreview {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4f46e5;
    font-size: 12px;
    text-decoration: none;
}

.CardsViewAttachmentDocumentPreview span {
    font-size: 34px;
}

.CardsViewAttachmentInfo {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.CardsViewAttachmentFileRow {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
}

.CardsViewAttachmentName {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.CardsViewAttachmentMeta {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 10px;
}

.CardsViewAttachmentDescription {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.CardsViewAttachmentActions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
    padding: 2px;
    border-radius: 5px;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 1px 5px rgb(15 23 42 / 15%);
}

.CardsViewAttachmentError {
    min-height: 16px;
    margin: 0;
    color: #dc2626;
    font-size: 12px;
}

.CardsViewAttachmentAdd {
    margin-top: 8px;
}

/* Bouton "+ Étape" / "+ Détail" — réutilisé dans PanelSteps et StepBody */
.CardsViewAddBtn {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: 1px dashed var(--mainPageBorderColor);
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    margin-top: 6px;
    flex-shrink: 0;

    &:hover {
        color: #6366f1;
        border-color: #6366f1;
    }

    &--small {
        padding: 4px 8px;
        font-size: 12px;
        margin-top: 4px;
    }
}

/* Tag colors */
.CardsViewTag-custom            { background: #f3f4f6; color: #374151; }
.CardsViewTag-priority-low      { background: #f1f5f9; color: #64748b; }
.CardsViewTag-priority-normal   { background: #eff6ff; color: #3b82f6; }
.CardsViewTag-priority-high     { background: #fff7ed; color: #ea580c; }
.CardsViewTag-priority-urgent   { background: #fef2f2; color: #dc2626; }

/* Modal overlay */
.CardsViewModalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.CardsViewModal {
    background: var(--mainPageModuleBarBgColor);
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 360px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    &--filter { width: 300px; }

    .CardsViewModalHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid var(--mainPageBorderColor);

        .CardsViewModalTitle {
            font-weight: 600;
            font-size: 14px;
            color: var(--textColor);
        }

        .CardsViewModalClose {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 13px;
            color: #94a3b8;
            padding: 4px 7px;
            border-radius: 4px;

            &:hover { background: var(--mainPageBgColor); color: #334155; }
        }
    }

    .CardsViewModalBody {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;

        .CardsViewModalField {
            display: flex;
            flex-direction: column;
            gap: 4px;

            .CardsViewModalLabel {
                font-size: 11px;
                font-weight: 600;
                color: #64748b;
                text-transform: uppercase;
                letter-spacing: 0.04em;
            }
        }

        .CardsViewModalInput,
        .CardsViewModalTextarea,
        .CardsViewModalSelect {
            width: 100%;
            box-sizing: border-box;
            border: 1px solid var(--mainPageBorderColor);
            border-radius: 6px;
            background: var(--mainPageBgColor);
            color: var(--textColor);
            font-size: 13px;
            padding: 7px 10px;
            outline: none;
            font-family: inherit;

            &:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18); }
        }

        .CardsViewModalTextarea { resize: vertical; min-height: 64px; }

        /* Rich text editor */
        .CardsViewRichWrap {
            width: 100%;
            box-sizing: border-box;
            border: 1px solid var(--mainPageBorderColor);
            border-radius: 6px;
            background: var(--mainPageBgColor);
            overflow: hidden;

            &:focus-within { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18); }

            .CardsViewRichToolbar {
                display: flex;
                align-items: center;
                gap: 2px;
                padding: 4px 6px;
                border-bottom: 1px solid var(--mainPageBorderColor);
                background: rgba(0, 0, 0, 0.03);
            }

            .CardsViewRichBtn {
                background: none;
                border: 1px solid transparent;
                border-radius: 4px;
                cursor: pointer;
                padding: 2px 7px;
                font-size: 13px;
                color: var(--textColor);
                font-family: inherit;
                line-height: 1.5;

                &:hover { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }

                &--color {
                    font-weight: 700;
                    font-size: 14px;
                    border-bottom: 3px solid var(--rich-color, #ef4444);
                    border-radius: 4px 4px 2px 2px;
                    padding-bottom: 1px;
                }

                &--reset-color {
                    font-weight: 700;
                    font-size: 14px;
                    border-bottom: 3px dashed #94a3b8;
                    border-radius: 4px 4px 2px 2px;
                    padding-bottom: 1px;
                    color: #94a3b8;
                }
            }

            .CardsViewRichColorInput { display: none; }

            .CardsViewRichEditor {
                padding: 7px 10px;
                min-height: 64px;
                font-size: 13px;
                color: var(--textColor);
                outline: none;
                white-space: pre-wrap;
                line-height: 1.5;
                font-family: inherit;

                &:empty::before {
                    content: attr(data-placeholder);
                    color: #94a3b8;
                    pointer-events: none;
                }

                .CardsViewDescriptionParagraph + .CardsViewDescriptionParagraph {
                    margin-top: 0.75em;
                }
            }
        }

        /* Tags editor */
        .CardsViewModalTagsWrap {
            display: flex;
            flex-direction: column;
            gap: 6px;

            .CardsViewModalTagChips {
                display: flex;
                flex-wrap: wrap;
                gap: 5px;
                min-height: 20px;

                .CardsViewModalTagChip {
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                    background: #f3f4f6;
                    color: #374151;
                    border-radius: 10px;
                    padding: 2px 8px 2px 10px;
                    font-size: 12px;
                    font-weight: 500;

                    .CardsViewModalTagChipRemove {
                        background: none;
                        border: none;
                        cursor: pointer;
                        font-size: 13px;
                        color: #9ca3af;
                        padding: 0;
                        line-height: 1;
                        display: flex;
                        align-items: center;

                        &:hover { color: #ef4444; }
                    }
                }
            }

            .CardsViewModalTagInput {
                width: 100%;
                box-sizing: border-box;
                border: 1px dashed var(--mainPageBorderColor);
                border-radius: 6px;
                background: transparent;
                color: var(--textColor);
                font-size: 12px;
                padding: 5px 10px;
                outline: none;
                font-family: inherit;

                &:focus { border-color: #6366f1; border-style: solid; box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
                &::placeholder { color: #9ca3af; }
            }
        }

        /* Filter sections */
        .CardsViewFilterSection {
            display: flex;
            flex-direction: column;
            gap: 6px;

            .CardsViewFilterSectionTitle {
                font-size: 11px;
                font-weight: 600;
                color: #64748b;
                text-transform: uppercase;
                letter-spacing: 0.04em;
            }

            .CardsViewFilterRow {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 13px;
                color: var(--textColor);
                cursor: pointer;
                user-select: none;

                .CardsViewFilterCheck { accent-color: #6366f1; cursor: pointer; }
            }
        }
    }

    .CardsViewModalFooter {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 12px 16px;
        border-top: 1px solid var(--mainPageBorderColor);

        .CardsViewModalCancelBtn,
        .CardsViewModalSaveBtn {
            height: 30px;
            padding: 0 14px;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
        }

        .CardsViewModalCancelBtn {
            background: transparent;
            border: 1px solid var(--mainPageBorderColor);
            color: var(--textColor);

            &:hover { background: var(--activeElementHoverColor); }
        }

        .CardsViewModalSaveBtn {
            background: #6366f1;
            border: none;
            color: #fff;
            font-weight: 500;

            &:hover:not(:disabled) { background: #4f46e5; }
            &:disabled { opacity: 0.5; cursor: default; }
        }
    }
}

.CardsViewShareAdd,
.CardsViewShareRow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--mainPageBorderColor);
}

.CardsViewShareBody {
    max-height: 440px;
    overflow-y: auto;
}

.CardsViewShareOverlay .CardsViewModal { width: min(860px, 96vw); }
.CardsViewShareUser { padding: 12px 16px; border-bottom: 1px solid var(--mainPageBorderColor); }
.CardsViewShareUserHeader { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.CardsViewSharePermissionHeader,
.CardsViewShareNodeRow { display:grid; grid-template-columns:minmax(180px,1fr) repeat(4,72px); align-items:center; gap:6px; min-height:34px; }
.CardsViewSharePermissionHeader { font-size:11px; opacity:.7; border-bottom:1px solid var(--mainPageBorderColor); }
.CardsViewSharePermissionHeader span:not(:first-child),
.CardsViewShareNodeRow label { text-align:center; }
.CardsViewShareNodeLabel { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 620px) {
    .CardsViewSharePermissionHeader,
    .CardsViewShareNodeRow { grid-template-columns:minmax(120px,1fr) repeat(4,48px); font-size:11px; }
}

.CardsViewShareRow {
    border-top: none;
    border-bottom: 1px solid var(--mainPageBorderColor);
    font-size: 13px;
}

.CardsViewShareLabel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.CardsViewShareAdd .CardsViewShareTarget {
    flex: 1;
}

.CardsViewShareInlineBtn {
    width: 100%;
    justify-content: center;
}

.CardsViewLeaveInlineBtn {
    width: 100%;
    justify-content: center;
}

.CardsViewLeaveInlineBtn:hover {
    color: #f59e0b;
}

/* Smartphones */
@media (max-width: 767px) { }

/* Tablettes */
@media (min-width: 768px) and (max-width: 1024px) { }

/* Petits laptops */
@media (min-width: 1025px) and (max-width: 1919px) { }

/* Desktop */
@media (min-width: 1920px) { }
.CardsViewNested--drag-over {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}
