/* /MainPage/Modules/Organization/Activity/Activity.css */

.ActivityContentArea{
    width: 100%;
    height: 100%;
    
    .ActivityContent{
        display: flex;
        flex-direction: row;

        height: 100%;

        .ActivityContentControlPanel{
            min-width: 250px;
            height: 100%;
            display: flex;
            flex-direction: column;

            justify-content: space-between;

            .ActivityContentProfiles {
                display: flex;
                flex-direction: column;
                gap: 6px;
                padding: 10px;
            }

            .ActivityProfileEntry {
                display: flex;
                gap: 4px;
            }

            .ActivityProfileButton {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                padding: 6px 9px;
                border: 1px solid var(--mainPageBorderColor);
                border-radius: 999px;
                background: transparent;
                color: var(--textColor);
                cursor: pointer;
            }

            .ActivityProfileEntry .ActivityProfileButton {
                flex: 1;
            }

            .ActivityProfileButton small {
                margin-left: auto;
                opacity: .65;
            }

            .ActivityProfileDot {
                width: 9px;
                height: 9px;
                flex: 0 0 9px;
                border-radius: 50%;
                background: var(--profile-color);
            }

            .ActivityProfileDelete {
                width: 28px;
                border: 1px solid var(--mainPageBorderColor);
                border-radius: 6px;
                background: transparent;
                color: var(--textColor);
                cursor: pointer;
            }

            .ActivityProfileDelete:hover { color: #ef4444; }

            .ActivityProfileCreateForm {
                display: grid;
                grid-template-columns: 1fr 32px 30px;
                gap: 5px;
                margin-top: 4px;
            }

            .ActivityProfileCreateForm input,
            .ActivityProfileCreateForm button {
                min-width: 0;
                height: 30px;
                box-sizing: border-box;
                border: 1px solid var(--mainPageBorderColor);
                border-radius: 5px;
                background: var(--mainPageBgColor);
                color: var(--textColor);
            }

            .ActivityProfileName { padding: 0 8px; }
            .ActivityProfileColor { padding: 2px; cursor: pointer; }

            .ActivityProfileButton.active {
                border-color: #6366f1;
                background: #6366f1;
                color: #fff;
            }

            .ActivityContentSearchActivity {
                display: block;
                padding: 0 10px 8px;
            }

            .ActivityContentSearchActivity input {
                width: 100%;
                box-sizing: border-box;
                padding: 8px 10px;
                border: 1px solid var(--mainPageBorderColor);
                border-radius: 6px;
                background: var(--mainPageBgColor);
                color: var(--textColor);
            }

            .ActivityContentAddActivityWrapper {
                position: relative;

                .ActivityContentAddActivity {
                    cursor: pointer;
                    padding: 8px 12px;
                    background-color: var(--mainPageButtonBgColor);
                    color: var(--textColor);
                    border: 1px solid var(--mainPageBorderColor);
                    user-select: none;
                }

                .ActivityAddDropdown {
                    display: none;
                    position: absolute;
                    bottom: calc(100% + 4px);
                    left: 0;
                    right: 0;
                    background-color: var(--mainPageModuleBarBgColor);
                    border: 1px solid var(--mainPageBorderColor);
                    padding: 12px;
                    z-index: 100;
                    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);

                    &.open {
                        display: block;
                    }

                    .ActivityAddDropdownInput {
                        width: 100%;
                        box-sizing: border-box;
                        padding: 8px 10px;
                        background-color: var(--mainPageBgColor);
                        color: var(--textColor);
                        border: 1px solid var(--mainPageBorderColor);
                        font-size: 14px;
                        outline: none;

                        &::placeholder {
                            color: var(--textColor);
                            opacity: 0.5;
                        }

                        &:focus {
                            border-color: var(--textColor);
                        }
                    }
                }
            }
        }
        .ActivityContentBody{

        }
    }
}

.ActivityVisuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ActivityItemEmpty {
    padding: 16px 10px;
    opacity: .65;
    font-size: 13px;
}

.ActivityCrudProfiles {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 6px;
}

.ActivityCrudProfiles legend { font-size: 12px; }

.ActivityCrudProfileChoice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

.ActivityProfileEmpty { font-size: 12px; opacity: .65; }

.ActivityItem {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
}

.ActivityItemTitle {
    flex: 1;
}

.ActivityItemIcon,
.ActivityCrudPreviewImage {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.ActivityCrudIconRow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ActivityCrudIconPreview { display: flex; }
.ActivityCrudIcon { flex: 1; min-width: 70px; }

.ActivityCrudSvgButton {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.ActivityCrudSvgInput { display: none; }

.ActivityCrudSvgValue {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 6px;
    background: var(--mainPageBgColor);
    color: var(--textColor);
    padding: 8px 10px;
    font: 12px/1.4 monospace;
}

.ActivityCrudSvgValue.invalid { border-color: #ef4444; }

.ActivityCrudIconHelp {
    color: var(--textColor);
    font-size: 11px;
    opacity: 0.65;
}

.ActivityItemEdit,
.ActivityItemLeave,
.ActivityItemDelete {
    min-width: 24px;
    height: 24px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 5px;
    background: transparent;
    color: var(--textColor);
    cursor: pointer;
}

.ActivityModalBody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
}

.ActivityModalOverlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.ActivityModal {
    width: 520px;
    max-width: 94vw;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--mainPageModuleBarBgColor);
    color: var(--textColor);
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.ActivityModalHeader,
.ActivityModalFooter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}

.ActivityModalHeader {
    justify-content: space-between;
    border-bottom: 1px solid var(--mainPageBorderColor);
}

.ActivityModalFooter {
    justify-content: flex-end;
    border-top: 1px solid var(--mainPageBorderColor);
}

.ActivityModal button {
    height: 28px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 5px;
    background: transparent;
    color: var(--textColor);
    cursor: pointer;
}

.ActivityModalSave {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}

.ActivityModalClose {
    width: 28px;
    padding: 0;
}

.TaskCrudField {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--textColor);
}

.TaskCrudInput {
    width: 100%;
    box-sizing: border-box;
    height: 32px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 6px;
    background: var(--mainPageBgColor);
    color: var(--textColor);
    padding: 0 10px;
}

.TaskShareSectionTitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--textColor);
}

.ActivityItemDelete:hover {
    color: #ef4444;
}

.ActivityItemLeave:hover {
    color: #f59e0b;
}

.TaskShareOverlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.TaskShareModal {
    width: 440px;
    max-width: 94vw;
    background: var(--mainPageModuleBarBgColor);
    color: var(--textColor);
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.TaskShareHeader,
.TaskShareFooter,
.TaskShareAdd,
.TaskShareRow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--mainPageBorderColor);
}

.TaskShareHeader {
    justify-content: space-between;
}

.TaskShareBody {
    max-height: 260px;
    overflow-y: auto;
}

.TaskShareRow {
    font-size: 13px;
}

.TaskShareLabel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.TaskShareAdd input {
    flex: 1;
    min-width: 0;
    height: 28px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 5px;
    background: var(--mainPageBgColor);
    color: var(--textColor);
    padding: 0 8px;
}

.TaskShareModal button {
    height: 28px;
    border: 1px solid var(--mainPageBorderColor);
    border-radius: 5px;
    background: transparent;
    color: var(--textColor);
    cursor: pointer;
}

.TaskShareSave {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}

.TaskShareClose,
.TaskShareRemove {
    width: 28px;
    padding: 0;
}

.TaskShareEmpty {
    margin: 0;
    padding: 18px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.TaskShareFooter {
    justify-content: flex-end;
    border-bottom: none;
}

/* 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) { }
