﻿.nav-bar {
    background: #27527f;
    padding: 10px 15px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    height: 60px;
    z-index: 1000;
}

    .nav-bar.fixed {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
    }

    .nav-bar .title {
        font-weight: 500;
        font-size: 16px;
        line-height: 16px;
    }

    .nav-bar .subtitle {
        color: #879fb7;
        font-size: 14px;
        line-height: 14px;
    }

    .nav-bar .back {
        float: left;
        background: none;
        border: none;
        color: #fff;
        box-shadow: none;
        text-shadow: none;
        border-right: 1px solid rgba(255,255,255,0.2);
        margin: 0 15px 0 0;
        padding: 3px 15px 0 0;
        height: 40px;
    }

    .nav-bar button.back:hover {
        background: #3f658c;
        background-image: none;
        border: none;
        border-right: 1px solid rgba(255,255,255,0.2);
        filter: unset;
    }

    .nav-bar .back:focus {
        outline: none;
    }

    .nav-bar .next {
        float: right;
        height: 32px;
        font-size: 16px;
        margin-top: 4px;
        padding: 0 20px;
    }

        .nav-bar .next[disabled] {
            color: #57789b;
            border-color: #57789b;
            background: none;
        }

    .nav-bar .error-icon {
        background: url('images/error-icon.svg');
        height: 64px;
        width: 64px;
        opacity: 0.18;
        position: absolute;
        right: -10px;
        bottom: -10px;
        display: none;
    }

    .nav-bar .content {
        display: table;
        white-space: normal;
        height: 100%;
        padding: 0 !important;
    }

    .nav-bar .content-row {
        display: table-row;
    }

    .nav-bar .content-cell {
        display: table-cell;
        vertical-align: middle;
    }

    .nav-bar.no-back-btn {
        padding-left: 20px;
    }

        .nav-bar.no-back-btn .back {
            display: none;
        }

    .nav-bar.no-next-btn.no-subtitle {
        height: 44px;
    }

        .nav-bar.no-next-btn.no-subtitle .back {
            height: 24px;
        }

    .nav-bar.error {
        background: #aa1a1a;
    }

        .nav-bar.error .subtitle {
            color: #fbd1d7;
        }

        .nav-bar.error .error-icon {
            display: block;
        }

.content-area.forward .view-container.showing .nav-bar.fixed {
    animation: showNavbarLeft 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.content-area.forward .view-container.hiding .nav-bar.fixed {
    animation: hideNavbarLeft 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.content-area.backward .view-container.showing .nav-bar.fixed {
    animation: showNavbarRight 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.content-area.backward .view-container.hiding .nav-bar.fixed {
    animation: hideNavbarRight 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.content-area.up .view-container.showing .nav-bar.fixed {
    animation: showNavbarUp 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.content-area.down .view-container.hiding .nav-bar.fixed {
    animation: hideNavbarDown 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
}


@media (min-width: 768px) {
    .nav-bar {
        border-radius: 6px 6px 0 0;
    }

        .nav-bar.fixed {
            position: absolute;
            top: 0;
        }

    .content-area.forward .view-container.showing .nav-bar.fixed,
    .content-area.forward .view-container.hiding .nav-bar.fixed,
    .content-area.backward .view-container.showing .nav-bar.fixed,
    .content-area.backward .view-container.hiding .nav-bar.fixed,
    .content-area.up .view-container.showing .nav-bar.fixed,
    .content-area.down .view-container.hiding .nav-bar.fixed {
        animation: none;
    }
}
