@mixin flight-border-top($left: $space-xl, $right: $space-xl) {
    position: absolute;
    content: '';
    display: block;
    left: $left;
    right: $right;
    height: 1.3px;
    background-color: $border;
    top: 0;
    transition-duration: 0.2s;
}

schedule-days {
    .frame {
        border-radius: 0;
        margin-top: -1px;

        p-accordion {
            .p-accordion {
                p-accordionTab {
                    display: block;
                    position: relative;

                    &::before {
                        @include flight-border-top();
                        z-index: 100;
                    }

                    &:first-child {
                        &::before {
                            display: none;
                        }
                    }

                    &.selected {
                        &::before {
                            left: 0;
                            right: 0;
                        }

                        & + p-accordionTab {
                            &::before {
                                left: 0;
                                right: 0;
                            }
                        }
                    }

                    .p-accordion-header {
                        margin-top: 0;
                        border-radius: 0;

                        > a {
                            padding: 0px;
                        }
                    }

                    .p-accordion-content {
                        padding: 0;

                        .schedule-flights {
                            p-accordiontab {
                                &:first-child {
                                    &::before {
                                        display: block !important;
                                    }
                                }

                                .p-accordion-header {
                                    margin-top: 0px !important;
                                    position: relative;
                                    transition-duration: 0.2s;

                                    & > a {
                                        border: none;
                                        background-color: transparent;
                                        border-radius: 0px;
                                        padding: 0 !important;
                                        position: relative;
                                        color: $text-color;
                                        transition-duration: 0.2s;

                                        &:hover {
                                            background-color: $blue-extra-light;
                                        }
                                    }

                                    &.p-highlight {
                                        background-color: $blue-extra-light;
                                    }
                                }

                                .p-accordion-content-wrapper {
                                    background-color: $blue-extra-light;

                                    > .p-accordion-content {
                                        background-color: transparent;
                                        padding: 0px !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
