.content-manager-page-content {
    max-width: calc(1280px - 30px);
    width: 100%;
    margin: 0 auto 100px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.content-manager-page {

    &--dashboard,
    &--settings {
        padding: 24px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 4px;
        gap: 24px;
        background: #ffffff;
    }
}

.ecm-content-wrap {
    width: 100%;
    padding: 24px;
    background: var(--ecm-background);
    border: 1px solid var(--ecm-border-color);
    border-radius: 4px;

    &__left {
        width: 70%;
    }

    &__right {
        width: 30%;
    }
}

.ecm-subtitle-link {
    color: var(--ecm-primary) !important;
    text-decoration: underline;
    font-size: 12px;
    margin-left: 4px;
}

// Heading
.ecm-heading {
    &-label {
        color: var(--ecm-font-color);
        font-size: 18px;
        font-weight: 500;
        line-height: 28px;
        margin: 0;
        font-family: var(--ecm-font);
    }

    &-border {
        width: 100%;
        margin: 0 0 24px 0;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--ecm-border-color);
    }
}

// Title & Subtitle
.content-manager {
    &-title-subtitle {
        color: var(--ecm-font-color);
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        margin: 0;
    }

    &-title {
        color: var(--ecm-font-color);
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        margin: 0;
    }

    &-sub-title {
        color: var(--ecm-font-color);
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
        margin: 0;
    }
}

// width
.ecm-width {
    &--320 {
        width: 320px;
    }

    &--200 {
        width: 200px;
    }

    &-25 {
        width: 25%;
    }

    &-50 {
        width: 50%;
    }

    &-75 {
        width: 75%;
    }

    &-full {
        width: 100%;
    }

    &-custom-32 {
        width: calc(100% - 32px);
    }
}

.ecm-min-w {

    // Mainly for table column custom width
    &--240 {
        min-width: 240px;
    }
}

// margin
.content-manager {
    &-mb-6 {
        margin-bottom: 24px;
    }

    &-m-0 {
        margin: 0;
    }

    &-mb-2 {
        margin-bottom: 8px;
    }

    &-mb-1 {
        margin-bottom: 4px;
    }

    &-mt-1 {
        margin-top: 4px;
    }

    &-mt-6 {
        margin-top: 24px;
    }

    &-mt-2 {
        margin-top: 8px;
    }

    &-mb-0 {
        margin-bottom: 0;
    }

    &-mr-12 {
        margin-right: 32px;
    }
}

// padding
.content-manager {
    &-pt-1 {
        padding-top: 4px;
    }

    &-pt-3 {
        padding-top: 12px;
    }

    &-pt-4 {
        padding-top: 16px;
    }

    &-pt-6 {
        padding-top: 24px;
    }

    &-pb-6 {
        padding-top: 24px;
    }

    &-pb-4 {
        padding-bottom: 1rem;
    }

    &-pb-1 {
        padding-bottom: 4px;
    }

    &-ptb-3 {
        padding: 12px 12px;
    }

    &-p-0 {
        padding: 0;
    }

    &-p-02 {
        padding: 8px 12px;
    }

    &-p-04 {
        padding: 12px 16px;
    }

    &-p-06 {
        padding: 12px 24px;
    }
}

// Cursor
.ecm {
    &--pointer {
        cursor: pointer;
    }
    &--hidden {
        display: none;
    }
}

.content-manager-separator {
    border-bottom: 1px solid var(--ecm-border-color);
    margin: 24px 0;
    width: 100%;
}

.content-manager-heading {
    color: var(--ecm-font-color);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 24px;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ecm-border-color);
    width: 100%;
}

.content-manager-required {
    color: #FF4D4D;
    padding: 0 8px;
}

.content-manager-warning {
    color: #FF4D4D;
    font-size: 14px;
    font-weight: 600;
}

.content-manager-border {
    border: 1px solid var(--ecm-border-color);
}

// flex
.content-manager-item-center {
    display: flex;
    justify-content: center;
}

.content-manager-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.content-manager-flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.content-manager-flex-24 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-manager-flex-16 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-manager-flex-12 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-manager-flex-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.content-manager-column-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 100%;
}

.content-manager-row-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
}

// Input & Textarea
.content-manager {

    // Will remove the important
    &-input {
        border: 1px solid var(--ecm-border-color) !important;
        height: 36px;
        width: 100%;
        padding: 0 12px;
        border-radius: 4px;
        margin: 0;
        background: transparent !important;
        color: var(--ecm-font-color) !important;
        font-size: 0.9rem;

        &:hover,
        &:focus,
        &:focus-within,
        &:focus-visible,
        &:active {
            border: 1px solid var(--ecm-gray) !important;
            box-shadow: none !important;
            outline: none !important;
        }

        &-320 {
            max-width: 320px;
        }

        // &--error { // Will work on this later
        //     border-color: rgb(255, 0, 0) !important;
        // }

        &--disabled {

            &:focus,
            &:focus-within,
            &:focus-visible,
            &:active,
            &:hover {
                border: 1px solid var(--ecm-border-color);
            }
        }

        &::placeholder {
            color: var(--ecm-placeholder) !important;
            opacity: 1;
            font-size: 0.875rem;
            /* Firefox */
        }

        &--gray {
            background: var(--ecm-secondary) !important;
            border: none !important;

            &:hover,
            &:focus,
            &:focus-within,
            &:focus-visible,
            &:active {
                background: var(--ecm-secondary) !important;
                border: none !important;
                box-shadow: none !important;
                outline: none !important;
            }
        }
    }

    &-textarea {
        border: 1px solid var(--ecm-border-color);
        height: 100px;
        width: 100%;
        padding: 12px;
        border-radius: 4px;
        margin: 0;
        background: transparent !important;
        color: var(--ecm-font-color) !important;

        &:hover,
        &:focus {
            border: 1px solid var(--ecm-gray) !important;
            box-shadow: none !important;
            outline: none;
        }

        &::placeholder {
            color: var(--ecm-placeholder) !important;
            opacity: 1;
            /* Firefox */
        }

        &--gray {
            background: var(--ecm-secondary) !important;
            border: none !important;

            &:hover,
            &:focus {
                background: var(--ecm-secondary) !important;
                border: none !important;
                box-shadow: none !important;
                outline: none;
            }
        }

        // &--error { // Will work on this later
        //     border-color: rgb(255, 0, 0) !important;
        // }
    }
}

.content-manager-select {
    &--w-40 {
        width: 40%;
    }

    .content-manager-select {
        &__control {
            border: 1px solid var(--ecm-border-color);
            background: var(--ecm-background);
            border-radius: 5px;
            box-shadow: none;

            .content-manager-select__input-container {
                .content-manager-select__input {
                    box-shadow: none;
                    height: 100%;
                    min-height: unset;
                }
            }
        }

        &__menu {
            background: var(--ecm-background);
        }

        &__option {
            color: var(--ecm-font-color);

            &:hover,
            &:active {
                background: var(--ecm-primary) !important;
                -webkit-tap-highlight-color: none !important;
            }
        }

        &__option--is-focused {
            background: var(--ecm-primary) !important;
            color: #fff !important;

            svg {
                fill: #fff !important;
                stroke: #fff !important;

                path {
                    fill: #fff !important;
                    stroke: #fff !important;
                }
            }

            .easy-content-manager-icon {
                &::before {
                    color: #fff !important;
                }
            }
        }

        &__option--is-disabled:hover {
            background: transparent !important;
            color: var(--ecm-text-muted) !important;
        }

        &__option--is-disabled {
            color: var(--ecm-text-muted) !important;

            .easy-content-manager-icon {
                &::before {
                    color: var(--ecm-text-muted) !important;
                }
            }
        }

        &__option--is-selected {
            background: var(--ecm-primary) !important;
            color: #fff !important;

            svg {
                fill: #fff !important;
                stroke: #fff !important;

                path {
                    fill: #fff !important;
                    stroke: #fff !important;
                }
            }

            .easy-content-manager-icon {
                &::before {
                    color: #fff !important;
                }
            }
        }

        &__multi-value__remove {
            color: var(--ecm-warning);
        }

        &__single-value {
            color: var(--ecm-font-color);
        }

        &__group {
            padding: 0 !important;
        }

        &__group-heading {
            padding: 6px 12px !important;
            margin: 0 !important;
            border-top: 1px solid var(--ecm-border-color) !important;
            border-bottom: 1px solid var(--ecm-border-color) !important;
            background: var(--ecm-body-background) !important;
        }
    }
}

.ecm-animate {
    animation: ecmFadeInUp 0.4s cubic-bezier(.4, 0, .2, 1);
}

@keyframes ecmFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media all and (max-width: 1500px) {
    .content-manager-page-content {
        max-width: calc(1200px - 30px);
        padding: 0;
    }
}

@media all and (max-width: 1300px) {
    .content-manager-page-content {
        max-width: calc(1120px - 30px);
        padding: 0 15px;
    }
}