/* Hide elems */

.app-container a[href$='/account'],
.app-container a[href$='/account-preferences'],
.app-container a[href$='/account-plan'],
.app-container a[href$='/account-delete'] {
    display: none !important;
}

.app-container footer > div:nth-of-type(2) {
    display: none !important;
}

.app-container form#website_create [onclick="event.preventDefault()"],
.app-container form#website_update [onclick="event.preventDefault()"] {
    display: none !important;
}

.app-container [data-target="#website_statistics_reset_modal"] {
    display: none !important;
}


/* Better layout */

.app-container .app-sidebar {
    margin: 0 !important;
    border-radius: 0 !important;
}
.app-container .app-sidebar-title {
    background-image: url('https://data.analytics.interdale.com/assets/icon.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: auto 35px !important;
}
.app-container .app-sidebar-title a {
    opacity: 0 !important;
}

.app-container .app-content {
    margin-left: 60px !important;
}
@media (min-width: 768px) {
    .app-container .app-content {
        margin-left: 80px !important;
        margin-right: 20px !important;
    }
}

.app-container .app-navbar .navbar-toggler {
    margin-left: auto !important;
}
.app-container .app-navbar .navbar-nav {
    align-items: end !important;
}

.app-container .container-sm, .app-container .container {
    max-width: 100% !important;
}

.app-container .pl-lg-5, .app-container .px-lg-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.app-container .p-lg-5 {
    padding: 0 !important;
}

.app-container .app-content > .py-4 {
    padding-top: 0.75rem !important;
}

.app-container .app-content > .team-delegate-access-wrapper {
    margin-bottom: 0.25rem !important;
}

.app-container .app-navbar .navbar-nav .dropdown a.nav-link .app-sidebar-footer-text * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 120px;
}


/* Better replay player */

.app-container .rr-player * {
    color: #ffffff !important;
}
.app-container .rr-player svg {
    fill: #ffffff !important;
}
.app-container .rr-player .rr-progress {
    background: #ffffff !important;
}
.app-container .rr-player .rr-progress .rr-progress__step {
    background: var(--primary-300) !important;
}
.app-container .rr-player .rr-progress div[title="inactive period"] {
    background: var(--gray-200) !important;
}
.app-container .rr-player .rr-player__frame .replayer-wrapper {
    padding: 12px;
}

.app-container #timeline .replay-timeline-item p {
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .app-container .rr-player .rr-timeline {
        width: 100% !important;
    }
}
@media (max-width: 500px) {
    .app-container .rr-player .rr-timeline .rr-timeline__time {
        width: 80px !important;
    }
}

body.interdaleplayer-fullscreen,
body.interdaleplayer-fullscreen .app-container,
body.interdaleplayer-fullscreen .app-container .app-content {
    overflow: hidden !important;
}
body.interdaleplayer-fullscreen .app-container .rr-player {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
}
body.interdaleplayer-fullscreen .app-container .rr-player .rr-player__frame {
    width: 100vw !important;
    height: calc(100vh - 90px) !important;
}
.app-container div.rr-controller__btns button:last-child {
    display: flex !important;
}






/* Others */

.app-footer {
    margin: 2rem 0 0 0 !important;
    background: transparent !important;
    text-align: center !important;
}

.app-footer .footer-logo {
    display: none !important;
}

@media (min-width: 992px) {
    .app-footer {
        text-align: left !important;
    }
}

body > .announcement-wrapper[data-announcement] a {
    color: inherit !important;
}
body > .announcement-wrapper[data-announcement] button[data-announcement-close],
body > .announcement-wrapper[data-announcement] button[data-announcement-close] svg {
    opacity: 1 !important;
}

h1.h4.text-truncate {
    line-height: 1.4;
}