.sprints {
    .sprint-header {
        align-content: center;
        align-items: center;
        display: flex;
        justify-content: space-between;
    }
    h1 {
        margin: 0;
    }
    .add-sprint {
        background: $primary;
        padding: .25rem .25rem 0;
        transition: background .2s;
        &:hover {
            background: $primary-light;
        }
        svg {
            fill: $whitish;
            height: 1.4rem;
            width: 1.5rem;
        }
    }
    .filter-closed-sprints {
        @include font-size(small);
        align-content: center;
        display: flex;
        justify-content: center;
        padding-bottom: 1rem;
        vertical-align: middle;
        .icon-archive {
            margin-right: .3rem;
        }
    }
    .loading {
        text-align: center;
    }
    .loading-spinner {
        border: 0;
        flex-grow: 0;
        margin-bottom: 1rem;
        max-height: 2rem;
        max-width: 2rem;
        transform-origin: center center;
    }
    .sprint-name {
        a {
            @include font-size(normal);
            @include font-type(text);
            display: inline-block;
            margin-right: .5rem;
        }
    }
    .sprint {
        margin-bottom: 2rem;
        header {
            position: relative;
        }
        &:hover {
            .edit-sprint {
                opacity: 1;
                transition: opacity .2s ease-in;
            }
        }
        .edit-sprint {
            opacity: 0;
            position: absolute;
            right: 0;
            top: 0;
            transition: opacity .2s ease-in;
            vertical-align: baseline;
        }
        svg {
            fill: $gray-light;
            &:hover {
                fill: $primary;
                transition: fill .2s ease-in;
            }
        }
        .number {
            @include font-size(xsmall);
            margin-right: .2rem;
        }
        .description {
            @include font-size(xsmall);
            line-height: .6rem;
            margin-top: 5px;
        }
        .sprint-summary {
            align-items: flex-end;
            display: flex;
            justify-content: space-between;
        }
        .sprint-date {
            @include font-size(small);
            @include font-type(text);
            color: $gray-light;
            flex: 1;
        }
        ul {
            margin: 0;
            text-align: right;
        }
    }
    .compact-sprint {
        transform: rotate(0);
        transition: all .2s;
        &.active {
            transform: rotate(90deg);
            transition: all .2s;
        }
        &:hover {
            .icon {
                fill: $primary-light;
                transition: color .2s;
            }
        }
    }
    .sprint-progress-bar {
        background: $gray-light;
        border-radius: 2px;
        height: 8px;
        margin-bottom: 1rem;
        margin-top: .5rem;
        position: relative;
        width: 100%;
        .current-progress {
            background: $primary;
            border-radius: 2px;
            height: 8px;
            left: 0;
            position: absolute;
            top: 0;
            width: calc(30% - 4px);
        }
    }
    .sprint-table {
        min-height: 2rem; // drag & drop
        .sprint-empty {
            @include font-type(light);
            background: darken($whitish, 5%);
            border: 2px dashed lighten($gray-light, 10%);
            color: $gray;
            padding: 1rem;
            text-align: center;
        }
        .row {
            border-bottom: 1px solid $gray-light;
            display: flex;
            padding: .5em 0;
            text-align: left;
            width: 100%;
            &:hover {
                background: rgba($gray-light, .2);
                cursor: move;
                transition: background .2s ease-in;
            }
            &:last-child {
                border-bottom: 0;
            }
            &.readonly {
                cursor: auto;
            }
            &.ui-sortable-helper {
                background: lighten($primary, 60%);
                box-shadow: 1px 1px 10px rgba($black, .1);
                opacity: .9;
                transition: background .2s ease-in;
            }

        }
        .gu-transit {
            background: lighten($gray-light, 12%);
            height: 40px;
            * {
                display: none;
            }
        }
        .column-us {
            @include font-size(small);
            flex-flow: 3;
            padding: 0 4px;
        }
        .us-name {
            display: block;
            &.closed {
                color: lighten($gray-light, 5%);
            }
            &.blocked {
                color: $red;
            }
        }
        .column-points {
            flex-grow: 1;
            padding: 0 4px;
            text-align: right;
            &.closed {
                color: lighten($gray-light, 5%);
            }
            &.blocked {
                color: $red;
            }
        }
        &.sprint-empty-wrapper { // hide dragging items
            .row {
                display: none;
            }
        }
    }
    .button-gray {
        display: block;
        margin-top: 1rem;
        text-align: center;
    }
    .us-item-row {
        .tags-block,
        .us-settings,
        .status,
        .popover,
        input {
            display: none;
        }
        .user-story-name {
            @include font-size(small);
            line-height: 1rem;
            margin-top: 5px;
        }
    }
}

// If sprint is closed and date is old
.sprint-closed {
    .sprint-table {
        display: none;
    }
    .number,
    .description {
        color: $gray-light;
    }
    .sprint-progress-bar {
        .current-progress {
            background: darken($gray-light, 10%);
        }
    }
    .button-gray {
        background: $gray-light;
    }
}

.sprints-empty {
    @include font-type(light);
    text-align: center;
    img {
        margin: 1rem 0;
        width: 50%;
    }
    .title {
        @include font-size(large);
        margin-bottom: .5rem;
        text-transform: uppercase;
    }
    a {
        color: $primary;
    }
}
