@import "variables";

.project-form {
    .step {
        padding-left: 15px;
        color: rgba(0, 0, 0, 0.34);
    }
    .step-content {
        padding: 0 16px;
    }
    .project-field {
        padding-left: 16px;
    }
    .project-actions {
        margin-top: 30px;
    }

}

.project-nav {
    background-color: $background;

    md-list {
        padding: 0;
    }

    md-list-item button.md-button:hover:not([disabled]) {
        background-color: $background;
    }
    md-list-item {
        color: $primary;
    }
    .active {
        font-weight: 700;
        padding: 12px 0;
        border-bottom: 2px solid $primary;
    }
    .md-ripple-container {
        display: none;
    }
    button.md-no-style {
        font-weight: inherit;
    }
}

ul.no-decoration-list {
    list-style-type: none;
    padding-left: 0px;
}

._authoring_content {
    margin-left: 30px;
    margin-right: 16px;
}

._template-builder {
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAEklEQVQYlWNgYGCYyTAKBh8AAPRAAJoO5sCqAAAAAElFTkSuQmCC') repeat rgba(255, 255, 255, 0.7);
    margin: 10px 0 10px 0;
    min-height: 200px;
    & md-list-item .md-no-style, md-list-item.md-no-proxy {
        padding: 0;
    }
}

._item-toolbar {
    border: solid 1px rgba(0, 0, 0, 0.1);
    background-color: rgba(93, 93, 93, 1);
    & .md-button {
        min-height: 24px;
        min-width: 24px;
        margin: 0 8px;
    }
    & md-icon {
        color: #ffffff;
    }
}

._vertical-divider {
    position: relative;
    height: 80%;
    border-right: solid 1px rgba(255, 255, 255, 1);
}

._error-inset {
    margin: 30px 16px 15px 30px;
    background-color: $gray_background; // inset appearance
    padding-bottom: 0px;
}

._project-title {
    //margin: 0 5px 0 5px;
    margin-left: 24px;
    position: relative;
    & md-input-container {
        width: calc(100% - 92px);
    }
    & md-input-container .md-input {
        //border-bottom-color: rgba(0, 0, 0, 0.5);
        font-weight: 500;
        font-size: 24px;
        line-height: 30px;
        height: inherit;

    }
    @media only screen and (max-width: 959px) {
        margin-left: 16px;
    }
}

._hash-id {
    //vertical-align: baseline;
    color: rgba(0, 0, 0, 0.54);
    //
    //line-height: 24px;
    margin: 4px;
    padding-right: 8px;
    font-size: 12px;
    & ._id {
        font-weight: 500;
        font-size: medium;
        color: rgba(0, 0, 0, 0.87);
    }

    @media only screen and (max-width: 959px) {

        //margin-left: 16px;
    }
}

._meta-info {
    min-height: 64px;
    //background-color: #ebebeb;
    //padding-top: 24px;

    md-input-container .md-input:not(._gts-text) {
        width: 115px;

        &.currency-field {
            padding-left: 15px;
        }
    }
    ._publishAtForm md-input-container .md-input {
        width: 100%;
    }
    ._publishAtForm button {
        display: none;
    }
    md-input-container.larger .md-input {
        width: 175px;
    }
    .md-datepicker-input {
        label {
            color: rgba(0, 0, 0, 0.54);
            transform: translate3d(-6px, 6px, 0) scale(0.85);
            position: relative;
            //bottom: 100%;
            left: 0;
            right: auto;
            -webkit-font-smoothing: antialiased;
        }

        md-datepicker {
            padding-top: 3px;
            background-color: transparent;

            > button.md-datepicker-button {
                display: none;
            }

            > div.md-datepicker-input-container {
                margin: 6px 0;
            }
            &.md-datepicker-open > div.md-datepicker-input-container > input.md-datepicker-input {
                // Stop the jumping on open
                height: inherit;
                margin-left: 20px;
                // tabindex needs to be -1: https://github.com/angular/material/issues/4755
            }
        }
    }

    .md-button.button-icon {
        span.icon {
            position: relative;
            top: 6px;
        }
    }

    ._upload-text {
        margin-top: auto;
        margin-bottom: auto;
        padding-top: 8px;
    }
}

._meta-files {
    font-size: 14px;
    ._file-upload {
        border-bottom: solid 1px #2746a8;
        color: #2746a8;
        cursor: pointer;
    }
}

._meta-sources {
    ._file-action {
        font-size: 16px;
        width: 16px;
        height: 16px;
        margin-left: 4px;
        cursor: pointer;
        outline: none;
    }
}

h3.my-projects-header {
    color: black;
}

md-list-item.list-subheader {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.2em;
    color: rgba(0, 0, 0, 0.54);
    font-family: 'Fira Sans', sans-serif;
}

md-list-item.list-item-with-padding {
    padding-left: 16px;
    padding-right: 16px;
}

.prototype-dialog, .payment-dialog, .aws-dialog, .return-dialog, .credentials-dialog {
    min-width: 320px;
    .dialog-content {
        padding: 0;
    }
    .title {
        width: 85%;
        padding-left: 16px;
        padding-top: 16px;
        font-size: 18px;
        font-weight: 500;
    }
    .clear {
        width: 15%;
    }
    .text {
        padding: 8px 16px;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.54);
    }
    .form-content {
        padding-left: 16px;
        padding-right: 16px;
        .input-container {
            padding-bottom: 2px;
            //width: 50%;
            .input-content {
                width: 100%;
                text-align: right;
            }
        }
    }

    .publish, .return {
        color: $palette_accent;
        font-weight: 200;
    }
    .md-icon-button.exit:not([disabled]):hover {
        background-color: transparent;
    }
}

.return {
    color: $palette_accent;
    font-weight: 200;
    //font-size: 14px;
}

._row-clickable {
    cursor: pointer;
}

._row-clickable:hover {
    background-color: #eeeeee;
}

._row-disabled {
    opacity: 0.64;
}

._row-disabled:hover {
    cursor: auto;
    background-color: #eeeeee;
}

._loading-text {
    width: 200px;
    font-size: 12px;
    font-weight: 500;
    & div {
        text-align: center;
    }
}

._task-list {
    z-index: 3;
    //border-right: solid 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;
    padding: 0;
    //height: calc(100% - 56px);
}

._task-list-sm {
    width: 256px;
    min-width: 255px;
}

._task-list-gt-sm {
    width: 320px;
    min-width: 319px;
}

._task-submissions {
    position: relative;
    width: 100%;
    padding-bottom: 8px;
    & ._new::after {
        content: 'New';
        margin-left: 8px;
        padding: 2px 4px;
        border-radius: 2px;
        background-color: rgba($aspirin_orange, 1);
        font-size: 10px;
        vertical-align: top;
        color: white;
        font-weight: 500;
    }
    //overflow-x: hidden;
    //overflow-y: auto;

    //height: 100%;
    //-webkit-box-shadow: 0 1px 14px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
    //-moz-box-shadow: 0 1px 14px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
    //box-shadow: 0 1px 14px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
}

._submission-wrapper {
    height: 100%;
    overflow: hidden;
}

._review-content {
    margin-left: 52px;
    margin-right: 24px;
}

._task-list-wrapper {
    //overflow-x: hidden;
    height: 100%;
    //width: 100%;

}

.md-subheader .md-subheader-inner {
    padding-top: 0;
    padding-bottom: 0;
}

._submission-header {
    padding-left: 16px;
}

._submission {
    padding-top: 12px;
    //margin-top: 1px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-right: solid 3px #ffffff;
    &._accepted {
        border-right-color: rgba(#009688, 0.54);;
    }
    &._returned {
        border-right-color: rgba(#558abb, 0.87);
    }
    &._rejected {
        border-right-color: rgba(255, 0, 0, 0.54);
    }
}

._result {
    margin-top: 8px;
    margin-bottom: 8px;
}

._task-active {
    background-color: #e9ebeb;
}

._no-submissions, ._no-selection {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.34);
    font-size: 20px;
    text-align: center;
    margin-top: 60px;
}

._header-text {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    &._short {
        max-width: 450px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        height: 22px;
    }
}

._task-list-item {

}

._task-entry {
    outline: none;
    cursor: pointer;
    width: 100%;
}

._entry-item {
    display: inline-block;
    align-items: center;
    vertical-align: middle;
    & p {
        margin: 0;
    }
}

._item-wrapper {
    padding: 8px 8px 8px 12px;
}

._task-name {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

._task-name-sm {
    width: 100px;
}

._task-name-gt-sm {
    width: 150px;
}

._task-secondary {
    width: 64px;
    color: rgba(0, 0, 0, 0.54);
}

._task-toggle {
    md-icon {
        color: #0b93d5;
    }
}

._submission-item {
    margin-left: 16px;
    //margin-right: 14px;
}

._selected-task-header {
    height: 56px;
    min-height: 56px;
    width: 100%;
}

._submissions-sheet {
    width: 100%;
    z-index: 3;
    -webkit-box-shadow: 0 1px 14px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 1px 14px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 14px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
}

._sheet-header {
    min-height: 56px;
    height: 56px;
    width: 100%;
    color: $blue_end;
    & ._nav-title {
        font-weight: 500;
        font-size: 18px;
    }
    & .md-button {
        min-width: 24px;
        color: inherit;
        & md-icon {
            color: inherit;
            opacity: 0.87;
        }
    }
    & md-icon {
        color: inherit;
        opacity: 0.87;
    }
    & .md-button.md-icon-button {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

._header-actions {
    margin-left: auto;
    margin-right: 8px;
}

._detail-sheet {
    -webkit-box-shadow: 0 0 14px -4px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.14);
    -moz-box-shadow: 0 0 14px -4px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.14);
    box-shadow: 0 0 14px -4px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.14);
}

._rating-circle {
    width: 12px;
    height: 12px;
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    margin: 2px;
    cursor: pointer;
    outline: none;
    &._unchecked {
        background-color: transparent;
        border: 1px solid $palette_accent;
        height: 10px;
        width: 10px;
        &:hover {
            background-color: rgba($palette_accent, 0.3);
        }
    }
    &._checked {
        background-color: rgba($palette_accent, 1);
    }
}

._entry-item ._rating-circle {
    display: inline-block;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    &._unchecked:hover {
        background-color: transparent;
    }
}

._task-detail {
    background-color: $light-grey;
    padding: 16px 12px 16px 14px;

    & div {
        margin-bottom: 5px;
    }
}

._task-editable {
    padding-left: 16px;
}

._md-fab-center-right {
    position: absolute;
    left: auto;
    right: 20px;
    top: auto;
    bottom: 50%;
}

._advanced {
    font-size: $font_small;
}

._preference {
    font-size: $font_small;
    color: rgba(0, 0, 0, 0.54);
    height: 26px;
}

._aws-note {
    margin-top: 8px;
}

._task-feedback {
    font-size: $font_small;
}

._tcell {
    padding-right: 24px;
    max-width: 174px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    height: 22px;
    line-height: 28px;
    font-size: $font_small;
}

._row-deleted {
    color: rgba(0, 0, 0, 0.2);
}

._save-message {
    font-style: italic;
    font-size: 12px;
}

.currency-symbol {
    float: left;
    position: relative;
    //top: 4px;
    //left: 8px;
    line-height: 32px;
}

._submission-review {
    padding: 16px;
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 8px;
}

._project-rating-header {
    text-align: left;
    margin-left: 16px;
    //width: 100%;
    margin-bottom: 32px;
    @media only screen and (max-width: 759px) {
        display: none;
    }
}

._large-header {
    width: 100%;
    font-size: x-large;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

._secondary-text-small {
    font-size: smaller;
    color: rgba(0, 0, 0, 0.54);
}

// Boomerang
.breadcrumb,
.breadcrumb div {
    height: 33px;
    display: inline-block;
}

.breadcrumb {
    margin-top: 5px;
    margin-right: 15px;
    margin-left: 10px;
    margin-bottom: 2px;
    border-width: 2px;
    border-radius: 2px;
    border-style: solid;
    overflow: hidden;
}

.breadcrumb div {
    text-rendering: optimizeLegibility;
    line-height: 33px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 0 10px 0 20px;
    position: relative;
}

.breadcrumb div:after,
.breadcrumb div:before {
    content: "";
    border-top: 1.65em solid transparent;
    border-bottom: 1.85em solid transparent;
    border-left: 1em solid transparent;
    position: absolute;
    margin: auto;
    top: -0.3em;
    bottom: 0em;
    left: 100%;
    z-index: 2;
}

.breadcrumb div:before {
    margin-left: 2px;
    z-index: 1;
}

.breadcrumb div:last-child:after,
.breadcrumb div:last-child:before {
    border: none;
}

/* LIGHT COLORS */
.light .breadcrumb {
    border-color: $border_grey;
}

.light .breadcrumb div {
    color: $pseudo_grey;
    background-color: $corporate_white;
}

.light .breadcrumb div:after {
    border-left-color: $corporate_white;
}

.light .breadcrumb div:before {
    border-left-color: $light-grey;
}

.light .breadcrumb .current {
    background: $activation_blue;
    color: $pseudo_grey;
}

.light .breadcrumb .current:after {
    border-left-color: $activation_blue;
}

._primary-color {
    color: $blue_end;
}

._rating-instructions {
    margin-left: 16px;
    margin-right: 16px;
    & ._wrapper {
        display: flex;
        padding-top: 12px;
        padding-bottom: 12px
    }
}

._preview-sheet {
    position: relative;
    overflow: hidden;
    border-bottom: dashed 3px rgba(0, 0, 0, 0.54);
}

@-webkit-keyframes expand {
    0% {
        height: 0;
    }
}

@keyframes expand {
    0% {
        height: 0;
    }
}
