@import '../shared/branding/colors.less';
@import '../shared/branding/colors.default.less';
@import '../shared/layouts/one-plus-two.less';

@breakpoint-md: 1200px;

.JobResults {
    .OnePlusTwo-container(100%, @breakpoint-md);

    &.fullscreen {
        .JobResults-rightSide {
            max-width: 100%;
        }
    }
}

.JobResults-leftSide {
    .OnePlusTwo-left--panel(100%, @breakpoint-md);
    height: ~"calc(100vh - 177px)";
}

.JobResults-rightSide {
    .OnePlusTwo-right--panel(100%, @breakpoint-md);
    height: ~"calc(100vh - 177px)";

    @media (max-width: @breakpoint-md - 1px) {
        padding-right: 15px;
    }
}

.JobResults-detailsPanel{
    overflow-y: scroll;
}

.JobResults-stdoutActionButton--active {
    display: none;
    visibility: hidden;
    flex:none;
    width:0px;
    padding-right: 0px;
}

.JobResults-panelHeader {
    display: flex;
    height: 30px;
}

.JobResults-panelHeaderText {
    color: @default-interface-txt;
    flex: 1 0 auto;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
}

.JobResults-resultRow {
    width: 100%;
    display: flex;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.JobResults-resultRow--variables {
    flex-direction: column;
}

.JobResults-resultRowLabel {
    text-transform: uppercase;
    color: @default-interface-txt;
    font-size: 14px;
    font-weight: normal!important;
    width: 30%;
    margin-right: 20px;

    @media screen and (max-width: @breakpoint-md) {
        flex: 2.5 0 auto;
    }
}

.JobResults-resultRowLabel--fullWidth {
    width: 100%;
    margin-right: 0px;
}

.JobResults-resultRowText {
    width: ~"calc(70% - 20px)";
    flex: 1 0 auto;
    text-transform: none;
    word-wrap: break-word;
}

.JobResults-resultRowText--fullWidth {
    width: 100%;
}

.JobResults-expandArrow {
    color: #D7D7D7;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
    margin-left: 10px;
}

.JobResults-resultRowText--revision{
    font-family: monospace;
}

.JobResults-statusResultIcon {
    padding-left: 0px;
    padding-right: 10px;
}

.JobResults-badgeRow {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.JobResults-badgeTitle{
    color: @default-interface-txt;
    font-size: 14px;
    margin-right: 10px;
    font-weight: normal;
    text-transform: uppercase;
    margin-left: 20px;
}

@media (max-width: @breakpoint-md) {
    .JobResults-detailsPanel {
        overflow-y: auto;
    }

    .JobResults-rightSide {
        height: inherit;
    }
}

.JobResults-timeBadge {
    float:right;
    font-size: 11px;
    font-weight: normal;
    padding: 1px 10px;
    height: 14px;
    margin: 3px 15px;
    width: 80px;
    background-color: @default-bg;
    border-radius: 5px;
    color: @default-interface-txt;
    margin-right: -5px;
}

.JobResults-panelRight {
    display: flex;
    flex-direction: column;
}

.StandardOut-panelHeader {
    flex: initial;
}

.StandardOut-panelHeader--jobIsRunning {
    margin-bottom: 20px;
}

host-status-bar {
    flex: initial;
    margin-bottom: 20px;
}

smart-search {
    flex: initial;
}

job-results-standard-out {
    flex: 1;
    display: flex
}

.JobResults-extraVarsHelp {
    margin-left: 10px;
    color: @default-icon;
}

.JobResults .CodeMirror.cm-s-default,
.JobResults .CodeMirror-line {
    background-color: #f6f6f6;
}

.JobResults .CodeMirror-gutter.CodeMirror-lint-markers,
.JobResults .CodeMirror-gutter.CodeMirror-linenumbers {
    background-color: #ebebeb;
    color: @b7grey;
}

.JobResults .CodeMirror-lines {
    cursor: default;
}

.JobResults .CodeMirror-cursors {
    display: none;
}

.JobResults-downloadTooLarge {
    display: flex;
}

.JobResults-downloadTooLarge--icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
