@import "../../../Shared/assets/css/index.scss";
@import "../../../Shared/assets/css/colors.scss";


.anacom-arm-clear-button::before {

    display: inline-block;
    width: 16px;
    height: 16px;
}

.anacom-arm-clear-button {
    background: none;
    border: none;
    cursor: pointer;
}


.screen-landing {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #2B363C;

    .header {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        align-items: start;
        margin-bottom: 3rem;

        .img-background {
            width: 100%;
            max-height: 481px;
            object-fit: cover;
            object-position: center;
            width: 65%;
        }

        .title-description-container {
            margin: 0;
            background: #F1F3F8;
            position: absolute;
            right: 0;
            bottom: -3rem;
            text-align: left;
            padding: 4.5rem 4rem 4rem 4rem;
            left: 60%;

            p,
            a {
                margin: 0;
            }

            a {

                color: #2B363C;
                display: flex;
                flex-direction: row;
                align-items: center;
                margin-bottom: .5rem;
                font-size: 1rem;
                line-height: 1.75rem;
                gap: .5rem;
            }

            .title {
                font-weight: 700;
                font-size: 1.5rem;
                line-height: 2.25rem;
                margin-bottom: .5rem;
            }

            .description {
                font-weight: 400;
                font-size: 1rem;
                line-height: 1.75rem;
                margin-bottom: .5rem;
            }
        }
    }

    .body {
        margin-top: 4.25rem;
        width: 100%;

        .container {
            .row {
                margin: 0 auto !important;
                width: 100%;

                .body-header {
                    width: 100%;
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 4.3125rem;

                    h3 {
                        text-align: start;
                        font-weight: 600;
                        font-size: 1.5rem;
                        line-height: 2.25rem;
                    }

                    .filters {
                        display: flex;
                        flex-direction: row;
                        gap: 1.25rem;

                        .date-container,
                        .input-container {
                            height: 3.75rem;
                            border: 0.063rem solid #E1E4EA;
                            background-color: #fff;
                            border-radius: 8px;
                            display: flex;
                            align-items: center;
                            display: flex;
                            flex-direction: row;
                            gap: 1rem;
                            padding: 0 1rem;
                            color: $text-and-input-medium;

                            .react-datepicker-wrapper {
                                width: 100%;


                            }

                            .react-datepicker__close-icon::after {
                                background-color: #64718B;
                            }

                            .react-datepicker-popper {
                                left: 3.125rem;
                                top: 3.4375rem;
                            }

                            .react-datepicker__year-read-view--selected-year,
                            .react-datepicker__month-read-view {
                                visibility: visible !important;
                            }

                            .react-datepicker__year-dropdown-container--select,
                            .react-datepicker__month-dropdown-container--select,
                            .react-datepicker__month-year-dropdown-container--select,
                            .react-datepicker__year-dropdown-container--scroll,
                            .react-datepicker__month-dropdown-container--scroll,
                            .react-datepicker__month-year-dropdown-container--scroll {
                                align-content: center;
                            }

                            .react-datepicker-popper {
                                left: 50px !important;
                                top: 50px !important;
                            }

                            .react-datepicker__month-dropdown {
                                background-color: #f0f0f0;
                                position: absolute;
                                width: 50%;
                                left: 0px;
                                top: 60px;
                                z-index: 1;
                                text-align: center;
                                border-radius: .3rem;
                                border: 1px solid #aeaeae;
                            }

                            .react-datepicker__year-dropdown {
                                background-color: #f0f0f0;
                                position: absolute;
                                width: 50%;
                                left: 120px;
                                top: 60px;
                                z-index: 1;
                                text-align: center;
                                border-radius: .3rem;
                                border: 1px solid #aeaeae;
                            }


                            input {
                                border: none;
                                outline: none;
                                height: 100%;
                                display: flex;
                                flex: 1;
                                font-weight: 400;
                                font-size: 1rem;
                                line-height: 1.75rem;
                                color: #333333;

                                &:active {
                                    border: none;
                                    outline: none;
                                }

                                &::-webkit-input-placeholder {
                                    /* WebKit, Blink, Edge */
                                    color: #64718B !important;
                                }

                                &:-moz-placeholder {
                                    /* Mozilla Firefox 4 to 18 */
                                    color: #64718B !important;
                                    opacity: 1;
                                }

                                &::-moz-placeholder {
                                    /* Mozilla Firefox 19+ */
                                    color: #64718B !important;
                                    opacity: 1;
                                }

                                &:-ms-input-placeholder {
                                    /* Internet Explorer 10-11 */
                                    color: #64718B !important;
                                }

                                &::-ms-input-placeholder {
                                    /* Microsoft Edge */
                                    color: #64718B !important;
                                }

                                &::placeholder {
                                    /* Most modern browsers support this now. */
                                    color: #64718B !important;
                                }
                            }

                            .search-date,
                            .search-text {
                                padding: 0;
                                height: 100%;
                            }

                            .search-date {
                                display: block;
                                width: 13.375rem;
                                position: relative;

                                &::-webkit-calendar-picker-indicator {
                                    position: absolute;
                                    left: 0;
                                    color: $text-and-input-medium !important;
                                }

                                &::-webkit-datetime-edit {
                                    margin-left: 2em;
                                }

                                &::-webkit-datetime-edit-year-field,
                                &::-webkit-datetime-edit-day-field,
                                &::-webkit-datetime-edit-month-field,
                                &::-webkit-datetime-edit-text {
                                    color: $text-and-input-medium;
                                }
                            }

                        }

                        .input-container {
                            max-width: 20.4375rem;
                            width: 20.4375rem;
                        }

                        .date-container {
                            max-width: 18.625rem;
                            width: 18.625rem;
                            gap: 0;

                            .react-datepicker__header__dropdown--scroll {
                                display: flex;
                                flex-direction: row;
                                justify-content: space-around;

                            }

                            .react-datepicker__month-dropdown-container--scroll {
                                margin: .5rem 0;
                                padding: .3125rem 0;
                                border-radius: .5rem;
                                border-color: #E1E4EA;
                            }

                            .anacom-arm-date-picker-wrapper {
                                width: 100%;

                                .react-datepicker__input-container {
                                    display: flex;
                                    flex-direction: row;
                                    align-items: center;

                                    .anacom-arm-calendar-icon {
                                        padding: 0;
                                        width: 1.25rem;
                                        height: 1.25rem;
                                    }

                                    .anacom-arm-date-picker {
                                        padding-left: 2rem;
                                        color: #6c757d;

                                        &::-webkit-input-placeholder {
                                            /* WebKit, Blink, Edge */
                                            color: #64718B !important;
                                        }

                                        &:-moz-placeholder {
                                            /* Mozilla Firefox 4 to 18 */
                                            color: #64718B !important;
                                            opacity: 1;
                                        }

                                        &::-moz-placeholder {
                                            /* Mozilla Firefox 19+ */
                                            color: #64718B !important;
                                            opacity: 1;
                                        }

                                        &:-ms-input-placeholder {
                                            /* Internet Explorer 10-11 */
                                            color: #64718B !important;
                                        }

                                        &::-ms-input-placeholder {
                                            /* Microsoft Edge */
                                            color: #64718B !important;
                                        }

                                        &::placeholder {
                                            /* Most modern browsers support this now. */
                                            color: #64718B !important;
                                        }
                                    }

                                    .anacom-arm-clear-button {
                                        padding: 0;

                                        &::after {
                                            background-color: $text-and-input-medium;
                                        }
                                    }
                                }
                            }

                            .anacom-arm-date-picker-popper {

                                .react-datepicker__day--today,
                                .react-datepicker__day--selected {
                                    background-color: #FFCC00;
                                }

                                .react-datepicker__day,
                                .react-datepicker__day-name,
                                .react-datepicker__current-month {
                                    color: #23282E;
                                    font-size: 1rem;
                                    font-family: 'Noto Sans';
                                }

                                select.react-datepicker__month-select,
                                select.react-datepicker__year-select {
                                    margin: .5rem 0;
                                    padding: .3125rem 0;
                                    border-radius: .5rem;
                                    border-color: #E1E4EA;
                                }
                            }

                            // &:first-child {
                            //     width: 100%;
                            // }
                        }
                    }
                }

                .content-historyline {
                    position: relative;
                    margin-bottom: 3rem;

                    .contents-container {
                        display: flex;
                        flex-direction: column;
                        gap: 4rem;
                        flex: 1;

                        .no-results {
                            font-size: 1rem;
                            color: var(--neutral-500, #6b7280);
                        }

                        .content-item {
                            position: relative;
                            display: grid;
                            grid-template-columns: 3.8125rem auto;
                            flex-direction: row;
                            gap: 2.375rem;
                            align-items: start;
                            text-align: start;

                            .storyline {
                                height: 100%;

                                .content-date {
                                    width: 3.8125rem;
                                    height: 3.8125rem;
                                    border-radius: 100%;
                                    background: #CDD2DC;
                                    display: flex;
                                    justify-content: center;
                                    align-items: center;

                                    div {
                                        margin: 0;
                                        display: flex;
                                        flex-direction: column;
                                        justify-content: center;
                                        align-items: center;
                                        width: 2.8125rem;
                                        height: 2.8125rem;
                                        background: #475164;
                                        border-radius: 100%;

                                        p {
                                            margin: 0;
                                            color: white;

                                            &:nth-child(1) {
                                                font-weight: 600;
                                                font-size: 1.125rem;
                                            }

                                            &:nth-child(2) {
                                                font-weight: 700;
                                                font-size: .625rem;
                                            }
                                        }
                                    }
                                }

                                .vertical-bar {
                                    width: .1875rem;
                                    height: 105%;
                                    background-color: #CDD2DC;
                                    margin: 0 auto;
                                }
                            }

                            &:nth-last-child(1) {
                                .storyline {
                                    .vertical-bar {
                                        display: none;
                                    }
                                }
                            }

                            .content {
                                padding: 2rem;
                                border: 1px solid #E1E4EA;
                                border-radius: .5rem;
                                flex: 1;
                                display: flex;
                                flex-direction: column;
                                transition: all 0.3s ease-in-out;
                                cursor: pointer;

                                &:hover {
                                    box-shadow: 0px 30px 60px 0px #00000012;
                                    transform: translateY(-16px);
                                }

                                h3,
                                p,
                                span {
                                    margin: 0;
                                    padding: 0;
                                }

                                h3 {
                                    font-weight: 600;
                                    font-size: 1.5rem;
                                    color: #23282E;
                                    line-height: 1.5;
                                    margin-bottom: 1rem;
                                    height: auto;
                                }

                                p * {
                                    font-weight: 400;
                                    font-size: 1rem;
                                    line-height: 1.75rem;
                                    color: #2B363C;
                                }

                                span {
                                    font-weight: 300;
                                    font-size: .75rem;
                                    line-height: 1.75rem;
                                }

                                .description * {
                                    width: 100% !important;
                                    font-weight: 400;
                                    font-size: 1rem;
                                    line-height: 1.75rem;
                                    color: #2B363C;
                                }

                                .description {
                                    width: 85%;
                                    margin: 0 0 .5rem 0;
                                }

                                .stat-anacom-icon-link {
                                    margin-top: 2rem;

                                    .stat-anacom-img {
                                        display: block;
                                        width: 1.5rem;
                                        height: 1.5rem;
                                    }

                                    .stat-anacom-img-hover {
                                        display: none;
                                        width: 1.5rem;
                                        height: 1.5rem;
                                    }

                                    &:hover {
                                        .stat-anacom-img {
                                            display: none;
                                        }

                                        .stat-anacom-img-hover {
                                            display: block;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

                .stat-anacom-link-button {
                    justify-content: center;

                    img {
                        transform: rotate(90deg);
                    }
                }
            }
        }
    }
}

.container-button-hightlight,
.container-button {
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    margin-left: .3125rem;
}


.title-description-container-date {
    font-size: 12px;
    font-weight: 300;
    line-height: 28px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}


@media (max-width:1024px) {
    .screen-landing .header .title-description-container {
        padding: 2rem;
    }
}

@media (max-width:992px) {
    .screen-landing {
        .body {
            .container {

                &:hover {
                    box-shadow: none;
                    transform: translateY(0px);
                }

                &:active {
                    box-shadow: none;
                    transform: translateY(0px);
                }

                .row {
                    .body-header {
                        flex-direction: column;
                        align-items: start;
                        margin-bottom: 2.625rem;

                        h3 {
                            margin-bottom: 1.75rem;
                        }
                    }
                }
            }
        }
    }

    .screen-landing .body .container .row .content-historyline .contents-container .content-item .content:hover {
        box-shadow: none;
        transform: translateY(0px);
    }

    .screen-landing .body .container .row .content-historyline .contents-container .content-item .content:active {
        box-shadow: none;
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {

    .screen-landing {
        .header {
            margin-bottom: 7rem;

            .title-description-container {
                left: 40%;
                bottom: -8rem;
                padding: 1.75rem 1.5rem;

                .title {
                    font-size: 1.25rem;
                }
            }

            div {
                padding: 2rem;
                left: 20%;

                .title {
                    font-weight: 700;
                    font-size: 1.25rem;
                    line-height: 2rem;
                }

                .description {
                    font-weight: 400;
                    font-size: .875rem;
                    line-height: 1.5rem;
                }
            }
        }

        .body {
            .container {
                .row {
                    .content-historyline .contents-container .content-item .content h3 {
                        font-size: 1.25rem;
                    }

                    .content-historyline .contents-container .content-item .content .description {
                        width: 100%;
                    }

                    .body-header {

                        .filters {
                            width: 100%;

                            .input-container,
                            .date-container {
                                max-width: unset;
                                width: 50%;
                            }
                        }

                        h3 {
                            margin-bottom: 1.75rem;
                        }
                    }
                }
            }
        }

    }
}

@media (max-width: 1024px) {
    .screen-landing .body .container .row .body-header .filters {
        width: 100%;
        flex-direction: column;

        .input-container,
        .date-container {
            width: 100%;
            max-width: unset;
        }
    }


}

@media (max-width: 31.25rem) {

    .screen-landing .body .container .row .content-historyline .contents-container .content-item .content {
        padding-top: 1.8125rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;

        h3 {
            font-size: 16px;
            font-weight: 600;
            line-height: 28px;
            text-align: left;
        }

        p {
            font-size: 14px;
            font-weight: 400;
            line-height: 24px;
            text-align: left;
        }

    }

    .screen-landing .body .container .row .content-historyline .contents-container .content-item .content .description {
        width: 100%;

    }

    .screen-landing .header .img-background {
        object-fit: cover;
        width: 85%;
        height: 179px;
    }

    .screen-landing .header .title-description-container {
        margin: 0;
        background: #f1f3f8;
        position: absolute;
        right: 0;
        //bottom: -16rem;
        top: 8.375rem;
        text-align: left;
        left: 10%;
        padding: 1.25rem;
        bottom: unset;

        .title {
            font-size: 1rem;
        }

        .description {
            font-size: .875rem
        }
    }

    .screen-landing .header .title-description-container a {
        position: relative;
        bottom: -10px;
    }

    .screen-landing {
        margin-top: 0rem;

        .body {
            margin-top: 11.25rem;

            .container {
                .row {
                    padding: 0;

                    .body-header {
                        margin-top: 0rem;
                        margin-bottom: 2.625rem;

                        h3 {
                            margin-bottom: 1.75rem;
                        }

                        .filters {


                            .input-container {
                                flex: 1;
                                min-height: 3.75rem;
                                width: 100%;
                                max-width: unset;
                            }

                            .date-container {
                                width: 100%;
                                height: 3.75rem;
                                max-width: unset;
                                // width: 62px;
                                // height: 62px;
                                padding: 1rem;
                                gap: .5rem;
                                border: 2px 0px 0px 0px;

                                .anacom-arm-date-picker-wrapper .react-datepicker__input-container .anacom-arm-calendar-icon {
                                    width: 24px;
                                    height: 24px;
                                }


                                .react-datepicker {
                                    position: relative
                                }

                                .search-date {
                                    width: auto;

                                    &::-webkit-datetime-edit {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }

                    .content-historyline {
                        .contents-container {
                            gap: 2rem;

                            .content-item {
                                grid-template-columns: auto;

                                .storyline {
                                    display: none;
                                }
                            }
                        }
                    }

                }
            }
        }

    }
}


.loading-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 40vh;
    justify-content: center;
    align-items: center;
}


.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;

    img {
        width: 100px;
        height: 100px;
    }

    h3 {

        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
        text-align: center;
        color: $text-and-input-medium;



    }
}