@import 'host-event/_index';
.at-Stdout {
    &-menuTop {
        color: @at-gray-848992;
        border: 1px solid @at-gray-b7;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        border-bottom: none;

        & > div {
            user-select: none;
        }
    }

    &-menuBottom {
        color: @at-gray-848992;
        font-size: 10px;
        text-transform: uppercase;
        font-weight: bold;
        position: absolute;
        right: 60px;
        bottom: 24px;
        cursor: pointer;

        &:hover {
            color: @at-blue;
        }
    }

    &-menuIconGroup {
        & > p {
            margin: 0;
        }

        & > p:first-child {
            font-size: 20px;
            margin-right: 8px;
        }

        & > p:last-child {
            margin-top: 9px;
        }
    }

    &-menuIcon {
        font-size: 12px;
        padding: 10px;
        cursor: pointer;

        &:hover {
            color: @at-blue;
        }
    }

    &-menuIcon--lg {
        font-size: 22px;
        line-height: 12px;
        font-weight: bold;
        padding: 10px;
        cursor: pointer;

        &:hover {
            color: @at-blue;
        }
    }

    &-menuIcon--active {
        font-size: 22px;
        line-height: 12px;
        font-weight: bold;
        padding: 10px;
        cursor: pointer;
        color: @at-blue;
    }

    &-toggle {
        color: @at-gray-848992;
        background-color: @at-gray-eb;
        font-size: 18px;
        line-height: 12px;

        & > i {
            cursor: pointer;
        }

        padding: 0 10px 0 10px;
        user-select: none;
    }

    &-line {
        color: @at-gray-161b1f;
        background-color: @at-gray-eb;
        text-align: right;
        vertical-align: top;
        padding-right: 5px;
        border-right: 1px solid @at-gray-b7;
        user-select: none;
    }

    &-event {
        .at-mixin-event();
    }

    &-event--host {
        .at-mixin-event();

        cursor: pointer;
    }

    &-time {
        padding-right: 2ch;
        font-size: 12px;
        text-align: right;
        user-select: none;
        width: 11ch;

        & > span {
            background-color: white;
            border-radius: 4px;
            padding: 1px 2px;
        }
    }

    &-container {
        font-family: monospace;
        height: calc(~"100vh - 240px");
        overflow-y: scroll;
        font-size: 15px;
        border: 1px solid @at-gray-b7;
        background-color: @at-gray-f2;
        color: @at-gray-161b1f;
        padding: 0;
        margin: 0;
        border-radius: 0;
        border-bottom-right-radius: 4px;
        border-bottom-left-radius: 4px;

        & > table {
            table-layout: fixed;

            tr:hover > td {
                background: white;
            }
        }
    }
}

.at-mixin-event() {
    padding: 0 10px;
    word-wrap: break-word;
    white-space: pre-wrap;

}

// Search ---------------------------------------------------------------------------------
@at-jobz-top-search-key: @at-space-2x;
@at-jobz-bottom-search-key: @at-space-3x;

.jobz-searchKeyPaneContainer {
    margin-top: @at-jobz-top-search-key;
    margin-bottom: @at-jobz-bottom-search-key;
}

.jobz-searchKeyPane {
    // background-color: @at-gray-f6;
    background-color: @login-notice-bg;
    color: @login-notice-text;
    border-radius: @at-border-radius;
    border: 1px solid @at-gray-b7;
    // color: @at-gray-848992;
    padding: 6px @at-padding-input 6px @at-padding-input;
}

.jobz-searchClearAll {
    font-size: 10px;
    padding-bottom: @at-space;
}

.jobz-Button-searchKey {
    .at-mixin-Button();

    background-color: @at-blue;
    border-color: at-color-button-border-default;
    color: @at-white;

    &:hover, &:active {
        color: @at-white;
        background-color: @at-blue-hover;
        box-shadow: none;
    }

    &:focus {
        color: @at-white;
    }
}

.jobz-tagz {
    margin-top: @at-space;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}


// Status Bar -----------------------------------------------------------------------------
.HostStatusBar {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
}

.HostStatusBar-ok,
.HostStatusBar-changed,
.HostStatusBar-dark,
.HostStatusBar-failed,
.HostStatusBar-skipped,
.HostStatusBar-noData {
    height: 15px;
    border-top: 5px solid @default-bg;
    border-bottom: 5px solid @default-bg;
}

.HostStatusBar-ok {
    background-color: @default-succ;
    display: flex;
    flex: 0 0 auto;
}

.HostStatusBar-changed {
    background-color: @default-warning;
    flex: 0 0 auto;
}

.HostStatusBar-dark {
    background-color: @default-unreachable;
    flex: 0 0 auto;
}

.HostStatusBar-failed {
    background-color: @default-err;
    flex: 0 0 auto;
}

.HostStatusBar-skipped {
    background-color: @default-link;
    flex: 0 0 auto;
}

.HostStatusBar-noData {
    background-color: @default-icon-hov;
    flex: 1 0 auto;
}

.HostStatusBar-tooltipLabel {
    text-transform: uppercase;
    margin-right: 15px;
}

.HostStatusBar-tooltipBadge {
    border-radius: 5px;
    border: 1px solid @default-bg;
}

.HostStatusBar-tooltipBadge--ok {
    background-color: @default-succ;
}

.HostStatusBar-tooltipBadge--dark {
    background-color: @default-unreachable;
}

.HostStatusBar-tooltipBadge--skipped {
    background-color: @default-link;
}

.HostStatusBar-tooltipBadge--changed {
    background-color: @default-warning;
}

.HostStatusBar-tooltipBadge--failed {
    background-color: @default-err;

}

// Job Details ---------------------------------------------------------------------------------

@breakpoint-md: 1200px;

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

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

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

    @media screen and (max-width: @breakpoint-md) {
        max-width: 100%;
    }
}

.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-panelHeaderButtonActions {
    display: flex;
}

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

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

    #cm-variables-container {
        width: 100%;
    }
}

.JobResults-resultRowLabel {
    text-transform: uppercase;
    color: @default-interface-txt;
    font-size: 12px;
    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--instanceGroup {
    display: flex;
}

.JobResults-isolatedBadge {
    align-items: center;
    background-color: @default-list-header-bg;
    border-radius: 5px;
    color: @default-stdout-txt;
    display: flex;
    font-size: 10px;
    height: 16px;
    margin: 3px 0 0 10px;
    padding: 0 10px;
    text-transform: uppercase;
}

.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;
}

.JobResults-panelRight .SmartSearch-bar {
    width: 100%;
}

.JobResults-panelRightTitle{
    flex-wrap: wrap;
}

.JobResults-panelRightTitleText{
    word-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
}

.JobResults-badgeAndActionRow{
    display:flex;
    flex: 1 0 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 100%;
}

.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;
    flex-basis: auto;
    height: ~"calc(100% - 800px)";
    display: flex;
    border: 1px solid @d7grey;
    border-radius: 5px;
    margin-top: 20px;
}
@media screen and (max-width: @breakpoint-md) {
  job-results-standard-out {
      height: auto;
  }
}

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

.JobResults-seeMoreLess {
    color: #337AB7;
    margin: 4px 0px;
    text-transform: uppercase;
    padding: 2px 0px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 11px;
}