@import "Icons"; //Icons.less
@import "Animations"; //Animations.less
@import "Colors"; //Colors.less
@import "Sizes"; //Sizes.less
@import "Fonts"; //Fonts.less

@-ms-viewport {
    width: device-width !important;
}

@leftRightGradient: linear-gradient(to bottom, @panels 0%, @dark 50%);

@orderBottom: 0;
@orderMiddle: 10;
@orderTop: 20;

@easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000);

.centeredPanel() {
    margin-left: auto;
    margin-right: auto;
}

.startsHidden() {
    display: none;
}

//Invisible elements will generally be fade-in, so opacity is used instead of visibility.
.startsInvisible() {
    opacity: 0;
}

.rounded() {
    border-radius: 0.5em;
}

.shadow() {
    box-shadow: 2px 2px 6px @semiBlack;
}

.insetShadow() {
    box-shadow: inset 2px 2px 12px rgba(0,0,0,0.5);
}

.heavyShadow() {
    box-shadow: 2px 2px 12px rgba(0,0,0,0.5);
}

.subtleTextShadow() {
    text-shadow: 2px 2px 4px @semiBlack;
}

.pad1() {
    padding: 1em;
}

.fullWidth() {
    width: 100%;
}

.pointer() {
    cursor: pointer;
}

.noMarginPadding() {
    margin: 0;
    padding: 0;
}

.noSelect() {
    user-select: none;
}

.morphic() {
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), inset 0 -2px 4px rgba(0,0,0,0.2), 0 4px 4px @semiBlack;
}

.morphicActive() {
    &:hover {
        box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), inset 0 -2px 4px rgba(0,0,0,0.4), 0 4px 4px @semiBlack;
    }

    &:active {
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(255,255,255,0.05), 0 2px 2px @semiBlack;
    }
}

.monospace {
    font-family: Consolas, 'Courier New', Courier, 'Nimbus Mono L', monospace;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'roboto-regular', 'Segoe UI', Calibri, Verdana, Geneva, 'DejaVu Sans', sans-serif;
    background-color: #101822;
    color: @light;
    margin: 0;
    padding: 0;
    min-width: 310px;
    -webkit-font-smoothing: antialiased;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#bgvid {
    width: 1920px;
    height: 1080px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -10000;
    float: left;
    display: none;
}

img {
    border: 0;
}

a {
    color: @accent;

    &:hover {
        color: @panels;
    }

    &:active {
        color: @blue;
    }

    &:visited {
        color: @accent;
    }

    &.button {
        text-decoration: none;
        color: white;

        &:active, &:hover, &:visited {
            color: white;
        }
    }
}

.lightFont {
    font-family: "roboto-light", "Segoe UI Light", "Segoe UI", Calibri, Verdana, Geneva, "DejaVu Sans", sans-serif;
    font-weight: lighter;
}

.largeFont {
    font-size: 110%;
}

.normalFont {
    font-family: 'roboto-regular', 'Segoe UI', Calibri, Verdana, Geneva, 'DejaVu Sans', sans-serif;
    font-weight: normal;
    font-size: 100%;
}

h1, h2, h3, h4, h5, h6, th, .lf {
    .lightFont;
}

th {
    text-align: left;
}

table {
    border-collapse: collapse;
    width: 100%;
}

tbody tr:nth-child(even), thead {
    background-color: @hintWhite;
}

table.noZebra tbody tr:nth-child(even), thead {
    background-color: transparent;
}

thead {
    font-weight: bold;
    border-bottom: 1px solid white;
}

td, th {
    padding: 4px;

    .small {
        font-size: 8pt;
    }
}

table.TwoColLine tr td:nth-child(1) {
    border-right: 1px solid @halfWhite;
    width: 25%;
}

table.rowSelect tbody tr:hover {
    cursor: pointer;
    background-color: @halfWhite;
}

table.rowSelect tbody tr:active {
    cursor: pointer;
    background-color: @hintWhite;
}

#bgtext {
    z-index: -1000;
    text-align: right;
    .lightFont();
    font-size: 12pt;
    color: #fff;
    border-top: 1px solid @semiWhite;
    padding: @halfMargin;
    box-sizing: border-box;
    opacity: 0.5;

    .tiny {
        font-size: 8pt;
    }
}

#releaseSpec {
    position: fixed;
    bottom: 5%;
    left: 300px;
    color: @semiWhite;
    font-size: 56pt;
    font-weight: lighter;
    pointer-events: none;
    z-index: -1000;
    text-align: right;
}

/*#region login screen*/
#loginContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    box-sizing: border-box;
    background-color: @panelDark;
    padding: 32px 32px 32px 32px;
    border-radius: @standardMargin;
    width: 800px;
    max-width: 95%;
    transition: opacity 0.3s ease;
    opacity: 0;

    .loginBusy {
        margin: -16px 0 32px 64px;
        text-align: center;
        position: absolute;
        right: 96px;
    }

    #loginModuleInfo {
        margin: 0;

        h2, h4, h6 {
            margin-top: 0;
        }

        h2, h6 {
            margin-bottom: 0;
        }

        h4 {
            margin-bottom: 0.5em;
        }
    }
}

#loginLogo {
    margin-top: 32px;
    margin-right: 32px;

    img {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 400px;
    }

    #ADSLoginWaiting {
        margin-top: 32px;
        display: none;
    }
}

#loginSplash {
    float: left;
    top: 0px;
    right: 530px;
    overflow: hidden;
    position: absolute;
    left: 0px;
    bottom: 0px;
    display: none;

    iframe {
        background-color: @semiBlack;
    }

    #loginBrandContents {
        height: 100%;
        background-color: transparent;
        border: none;
        width: 512px;
        display: none;
    }
}

#mobileLoginQR {
    width: 300px;
    height: 300px;
    display: block;
}

#loginForm {
    min-width: 310px;
    transition: opacity 0.3s ease;

    div {
        margin: 1.2em 0;
    }

    input {
        width: 100%;
        background-color: @semiBlack;
    }
}
/*#endregion*/

#statusActions {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 16px;

    h2 {
        margin: 8px 0 8px 0;
    }
}

label {
    .pointer;
}

.easeLoad {
    opacity: 0;
    transition: opacity 2s ease;
}

#sideMenuContainer, #mainBody, #responsiveHelpers, .modalbg, #tabInfo, #topSearchBox, .loader, #modalLoader, #barTop, .loginBusy, #sideMenu, #notificationContainer {
    .startsHidden;
}

#barTop, #barBottom {
    width: calc(100% - @sideMenuWidth);
    margin: 0;
    left: 0;
    padding-left: @sideMenuWidth;
    position: fixed;
}

#searchResults {
    float: right;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 600px;
    max-height: max(calc(50% - 48px), 512px);
    overflow-y: auto;
    background-color: #333;
    border-radius: 0 0 0 8px;
    box-shadow: 0 4px 4px @darkSemiBlack;
    position: absolute;
    top: 46px;
    right: 0;
    z-index: 100;

    .searchResultCategory {
        .searchResultCategoryInfo {
            background-color: @semiBlack;
            padding: @halfMargin;

            h3 {
                margin: 2px;
            }

            p {
                margin: 2px;
            }

            .mat-icon {
                float: right;
                font-size: 32px;
                margin: 8px;
            }
        }
    }

    .searchResult {
        border-bottom: 1px solid gray;
        padding: @halfMargin;
        font-size: smaller;

        &:hover {
            background-color: @semiWhite;
        }

        &:active {
            background-color: unset;
        }

        &.videoResult {
            min-height: 80px;
        }

        h3 {
            margin: 2px;
        }

        p {
            margin: 2px;
        }

        .source {
            font-style: italic;
        }

        &:last-of-type {
            border-bottom: none;
        }

        img {
            float: right;
            height: 80px;
        }
    }
}



#barTop {
    top: 0;
    height: 48px;
    transition: padding-top 0.5s, padding-bottom 0.5s;
    display: flex;

    #responsiveHelpers {
        float: left;
    }

    #topSearchBox {
        cursor: pointer;
        background-color: @darkSemiBlack;
        width: 300px;
        max-width: 50%;
        border-radius: 8px;
        height: 40px;
        margin: 4px 4px 4px 16px;

        input.searchBox {
            height: 40px;
            padding: 0 4px;
        }

        .icon {
            width: 40px;
            height: 40px;
            display: inline-block;
            float: right;
        }

        &:hover {
            background-color: @semiBlack;
        }
    }

    #tabInfo {
        margin-left: 24px;
        color: white;
        flex-grow: 1;
        flex-shrink: 0;

        h2 {
            margin: @halfMargin 0 0 0;
        }

        &.remoteInfo {
            h2 {
                margin: 2px 0 0 0;
                font-size: 14pt;
            }

            h4 {
                font-size: 12px;
                margin: 0;
            }
        }
    }
}

#userInfo {
    .startsHidden();
    width: 100%;
    height: 32px;
    padding: @halfMargin 0@halfMargin 0;
    color: white;
    cursor: pointer;

    &:hover {
        background-color: @semiBlack;
    }

    &:active {
        background-color: @darkSemiBlack;
    }

    &.opened {
        height: 198px;
        padding-bottom: 0;
        border-bottom: 4px solid @semiBlack;
        box-shadow: #000 0 0 16px;
    }

    .icon, span {
        float: left;
        margin-left: 20px;
        height: 32px;
        line-height: 32px;
        border-radius: 16px;
    }
}

.userInfoBlock {
    display: inline-block;
    height: 128px;

    h2 {
        margin-top: 0;
    }
}

.infoWell {
    border-radius: @halfMargin;
    background-color: @semiBlack;
    padding: @standardMargin;
    box-shadow: inset 0px 0px 8px black;
}

button, input[type=button], input[type=submit], .button {
    color: @textOnDark;
    .lightFont();
    font-size: larger;
    border: 1px solid @panels;
    background-color: @panels;
    min-width: 96px;
    .pointer;
    outline: none;
    min-height: 40px;
    margin-right: @halfMargin;
    transition: background-color 0.3s;
    box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid @semiBlack !important;
    text-shadow: 0 2px 4px @darkSemiBlack;

    .mat-icon {
        margin-right: 4px;
    }

    &:hover {
        background-color: @panelsBack;
    }

    &:active {
        background-color: @panels;
    }

    span {
        line-height: 100%;
    }

    &:disabled, &:disabled:hover, &:disabled:active, &[enabled=false], &[enabled=false]:hover, &[enabled=false]:active {
        background-color: #555 !important;
        border: 1px solid #333 !important;
        cursor: default !important;
        opacity: 0.5;
    }

    &.toolIconButton {
        width: 32px;
        height: 32px;
        min-height: 32px;
        border: 0;
        box-shadow: none;
        min-width: 0;
        border-radius: 0;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        float: left;
        border-left: 1px solid @semiWhite;
        display: flex;
        align-items: center;

        &:hover {
            span {
                color: white;
            }
        }

        .mat-icon {
            margin-left: 2px;
        }

        &.withCaption {
            width: auto;
            padding: 0 4px;

            span {
                float: right;
                font-size: 10pt;
                padding-right: 4px;
            }

            .mat-icon {
                font-size: 24px;
            }
        }
    }

    &.slideIcon {
        display: inline-block;
    }

    &.imageButton {
        img {
            height: 24px;
            float: left;
            margin-right: 4px;
        }
    }
}

.secureLoginButton {
    background-image: url(../Images/Glyphicons/glyphicons-basic-812-fingerprint@2x-semi.png);
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: 4px 4px;
    margin-right: 0;

    span {
        margin: 0 8px;
    }
}

.itemTag {
    display: inline-block;
    background-color: @TimeSegmentActive;
    border-radius: 14px;
    height: 26px;

    span {
        margin: 4px 10px 0px 10px;
        float: left;
    }

    button {
        height: 26px;
        border: none;
        min-width: 26px;
        border-radius: 12px;
        margin: 0;
        box-shadow: none;
        display: inline;
        margin-left: -4px;
        background-repeat: no-repeat;
        min-height: auto;
        background-color: transparent;

        &:hover {
            background-color: transparent;
        }
    }
}

label.radioButtons {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    margin-bottom: 16px;

    input[type=radio] {
        display: none;
    }

    &.small {
        margin-bottom: 0;
    }

    &.small input[type=radio] ~ span {
        padding: @halfMargin;
        min-height: auto;
        padding-right: @halfMargin;
        margin-bottom: @halfMargin;
    }
}

.radioButtonGrid {
    display: grid;
    grid-gap: @halfMargin;
    width: 100%;

    label.radioButtons {
        margin-bottom: 0;
        display: flex;

        &:nth-of-type(2) {
            grid-column: 2
        }

        input[type=radio] ~ span {
            padding: @standardMargin;
            margin-right: 0;
            min-height: 90px;
        }
    }
}

label.checkButtons {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    margin-bottom: 16px;
    position: relative;

    input[type=checkbox] {
        display: none;
    }

    input[type=checkbox] ~ span:first-of-type {
        position: absolute;
        z-index: 100;
        top: 50%;
        right: @standardMargin;
        transform: translateY(-50%);
    }
}

label.checkButtons input[type=checkbox] ~ span:last-of-type {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    padding: @standardMargin;
    width: 100%;
    box-sizing: border-box;
    min-height: 66px;
    position: relative;
    padding-right: 114px;
    border-radius: @halfMargin;

    &:hover {
        background-color: @semiWhite;
    }
}

label.radioButtons input[type=radio] ~ span {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    padding: @standardMargin * 1.5;
    width: 100%;
    box-sizing: border-box;
    min-height: 66px;
    position: relative;
    padding-right: 86px;
    border-radius: @halfMargin;

    &:hover {
        background-color: @semiWhite;
    }

    &:active {
        background-color: rgba(255,255,255,0.2);
    }

    img {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        height: 64px;
    }
}

label.radioButtons input[type=radio]:disabled ~ span, label.checkButtons input[type=checkbox]:disabled ~ span:last-of-type {
    background-color: rgba(255,255,255,0.1);
    color: silver;
    border-color: silver;
}

label.radioButtons input[type=radio]:checked ~ span, label.checkButtons input[type=checkbox]:checked ~ span:last-of-type {
    outline: 1px solid white;
}

.disabled, .disabled:hover, .disabled:active {
    cursor: unset !important;
    color: #ccc !important;
    border-color: #888;
}

#userContentsButtonsArea {
    display: flex;
    float: right;
    width: auto;
}

.iconButton {
    background-position: center;
    background-repeat: no-repeat;
    padding: @halfMargin;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    min-height: auto;
    min-width: auto;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    border: none;

    &.gapAfter {
        margin-right: @halfMargin;
    }

    &.first {
        border-radius: 8px 0 0 8px;
    }

    &.last {
        border-radius: 0 8px 8px 0;
    }

    &.solo {
        border-radius: 8px;
    }

    &.toggled {
        background-color: @dark;
    }

    &:hover {
        background-color: @dark;
    }

    &:active {
        background-color: @accent;
    }

    .mat-icon {
        margin-right: 0;
    }
}

select {
    padding: 4px;
}

.slimButton {
    .normalFont() !important;
    min-height: 32px !important;
    font-size: 10pt !important;
    min-width: 72px !important;
    padding-bottom: 2px;

    &.solo {
        font-size: 12pt !important;
        height: 40px;
        min-width: 40px !important;
    }
}

.colorElement(@background, @border) {
    background-color: @background;
    border: 1px solid @background;

    &:hover {
        background-color: darken(@background, 10%);
    }

    &:active {
        background-color: @background;
    }
}

.bgGray {
    .colorElement(#333, #222);
}

.bgRed {
    .colorElement(#B70000, #EF7070);
}

.bgAmber {
    .colorElement(#C14D00, #EF6C1A);
}

.bgGreen {
    .colorElement(#159922, #1BC42C);
}

.bgBlue {
    .colorElement(#2986cc, #1c5885);
}

.bgPurple {
    .colorElement(#9349d8, #552b7d);
}

.bgPink {
    .colorElement(#c90076, #920056);
}

.passwordGrade {
    height: 16px;
    min-width: 2px;
    display: inline-block;
    transition: width 1s ease, background-color 1s ease;
}

.popupTrigger {
    &.dropDownPopup {
        cursor: pointer;
        position: relative;

        & > span::after {
            content: '⌄';
            float: right;
            margin: -4px 0px;
            font-size: 15pt;
        }

        &:hover {
            .popupTriggerContents {
                display: block;
            }
        }

        .popupTriggerContents {
            position: absolute;
            width: 100%;
            left: 0;
            display: none;
            padding: 0;
            z-index: 250;
            border-radius: 0 0 8px 8px;
            overflow: hidden;

            &:hover {
                display: block;
            }

            &:active {
                display: none;
            }

            .listItems {
                display: flex;
                flex-direction: column;

                span {
                    padding: 4px;
                    border-bottom: 1px solid rgba(255,255,255,0.1);
                    cursor: pointer;

                    &:hover {
                        background-color: @semiBlack;
                    }

                    &:active {
                        background-color: @darkSemiBlack;
                    }
                }
            }
        }
    }
}

input[type=text], input[type=password], input[type=url], input[type=number], input[type=email], input[type=search], select, textarea, .popupTrigger, .popupTriggerContents {
    width: 100%;
    margin-top: 4px;
    padding: 6px;
    border-radius: 4px 4px 0 0;
    border: none;
    border-bottom: 1px solid @halfWhite;
    background-color: #3F464E;
    color: white;
    box-sizing: border-box;
    font-size: 12pt;
    line-height: 16pt;
    transition: all ease 0.3s;
    box-shadow: 0 4px 4px @darkSemiBlack;

    &::placeholder {
        color: @halfWhite;
    }
}

input[disabled] {
    color: gray;
    cursor: not-allowed;
}

label.checkbox {
    display: inline-block;
}

label.checkbox input[type="checkbox"] {
    display: none;
}

input[type=checkbox] + span {
    display: block;
    content: ' ';
    width: 38px;
    height: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: gray;
    color: white;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px @semiBlack;
}

input[type=checkbox].redOff + span {
    background-color: darkred;
}

input[type=checkbox]:checked + span {
    background-color: #107719;
}

input[type=checkbox][indeterminate] + span {
    background-color: gray;
}

input[type=checkbox] + span::after {
    content: " ";
    display: block;
    text-align: center;
    background-color: silver;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    position: relative;
    top: -3px;
    left: 0px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 4px @darkSemiBlack, 0 2px 4px @semiBlack;
}

input[type=checkbox].redOff + span::after {
    background-color: #BA1A1A;
}

input[type=checkbox]:checked + span::after {
    content: " ";
    left: 20px;
    background-color: #1ABC27;
    transition: all 0.3s ease;
}

input[type=checkbox][indeterminate] + span::after {
    background-color: silver;
    content: " ";
    left: 9px;
}

input.searchBox {
    display: inline;
    margin: 0;
    height: 48px;
    width: calc( 100% - 48px );
    float: right;
    border: none;
    outline: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0 @standardMargin 0 @standardMargin;
    color: white;
    //Repeated because you can't cover multiple selectors with vendor-specific prefixes.
    &::placeholder {
        color: @halfWhite;
        font-style: italic;
    }
}

.radioList label {
    display: block;
    width: 100%;
    border: 1px solid @greyBg2;
    margin-bottom: 4px;
    height: 32px;
    line-height: 32px;

    &:hover {
        background-color: @panelHover;
    }

    &:active {
        background-color: @panelActive;
    }
}

#mainBody {
    position: absolute;
    float: left;
    top: 48px;
    left: 0;
    width: 100%;
    bottom: 0;
    background: @dark;
}

.bodyTab {
    color: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: @sideMenuWidth;
    right: 0;
    padding: 24px;
    overflow: auto;
    border-top-left-radius: 16px;

    & > h3:nth-of-type(1), & > h2:nth-of-type(1) {
        margin-top: 0;
    }

    &.noRounded {
        border-top-left-radius: 0;
    }

    .splitViewBody {
        bottom: 0px;
        top: 0px;
        left: 0px;
        right: 300px;
        overflow: auto;
        position: absolute;
        padding: 16px;
    }

    .splitViewInfo {
        bottom: 0px;
        top: 0px;
        right: 0px;
        width: 300px;
        overflow: auto;
        position: absolute;
        background-color: @semiBlack;
        overflow-x: hidden;
        overflow-y: auto;

        .infoViewActions {
            width: 100%;
            padding: @halfMargin;
            box-sizing: border-box;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
            grid-gap: @halfMargin;

            button {
                width: 100%;
            }
        }
    }
}

hr {
    border-style: solid;
    color: white;
    border-top: 0px;
}

.wizardTab {
    background-color: @darkSemiBlack !important;
    border-radius: 0 !important;
    top: -48px;
    z-index: 100;
    left: 0;
    padding: 0;

    .wizardContents {
        padding: 16px;
        background-color: @panelsBack;
        border-bottom: @halfMargin solid #111;
        overflow: hidden;
        .heavyShadow();
        top: -100%;
        box-sizing: border-box;
        transition: top 0.5s ease, bottom 0.5s ease;
        position: absolute;

        .warningHeader {
            background-color: orange; 
            color: black; 
            font-size: 14pt;

            a {
                color: black;
            }
        }

        .tabHeaderContainer {
            margin: -8px -16px 8px -16px;
            padding: 0 24px 0 16px;
        }

        h2 {
            margin: -@standardMargin;
            padding: @standardMargin;
            width: 100%;
            background-color: #111;
            margin-bottom: @standardMargin;
        }

        h3 {
            padding: 0;
            margin: -@halfMargin 0 4px 0;
        }

        h4 {
            margin-bottom: 0;
        }

        h4 ~ p {
            margin-top: 4px;
        }
    }

    .wizardPopup {
        left: 50%;
        width: 80%;
        transform: translate(-50%,-50%);
        min-width: 512px;
        max-width: 830px;
        border-radius: @standardMargin;

        & > .iconButton {
            position: absolute;
            top: 10px;
            right: 10px;
            border: 1px solid silver !important;
            border-radius: 8px;
        }
    }
}

.wizardVisible.wizardVisible { //More specific than .wizardTab.wizardContents
    top: 50%;
}

.wizardContents.wizardBottom {
    top: auto;
    bottom: -100%;
}

.wizardContents.wizardBottom.wizardVisible {
    top: auto;
    bottom: 0;
}

/*#region status display*/

.metricsHeader {
    display: flex;
    margin-bottom: 8px;
    align-items: center;

    h2 {
        margin: 0 0 8px 0;
    }
}

.AppStatus, .listenPort > .AppStatus {
    padding: 2px 12px;
    min-height: 24px;
    margin: 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.7);

    .mat-icon {
        margin-left: @halfMargin;
        flex-grow: 1;
        text-align: right;
    }
}

#AMP_Core_MetricsDisplay {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
    grid-gap: 16px;
    margin-bottom: 16px;
}

.consoleHeader {
    display: flex;
    align-items: center;
    padding: 8px 24px;
}

#AMP_Core_ConsoleStatus {
    margin: 0;
}

.appStateIcon {
    width: 16px;
    height: 16px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), inset 2px 2px 4px rgba(255,255,255,0.5), 2px 2px 4px rgba(0,0,0,0.5);
}

.DisplayMetric {
    height: 192px;
    box-shadow: 0 4px 4px @darkSemiBlack;
    display: flex;

    &:last-of-type {
        margin-right: 0;
    }

    .DisplayMetricHeader {
        padding: 8px;
        z-index: 10;
        margin-right: -16px;
        border-radius: 4px 0 0 4px;
    }

    .DisplayMetricGraph {
        width: 100%;
    }
}

.circleChart {
    float: left;

    h2, h4 {
        position: absolute;
        margin-left: 28px !important;
        font-family: Segoe UI Light, Helvetica, Verdana, Sans-Serif;
        margin-top: 54px !important;
        color: #fff;
    }

    h4 {
        font-size: smaller;
        margin-top: 84px !important;
    }

    svg {
        transform: rotate(-90deg);
        width: 120px;
        height: 120px;

        circle {
            stroke-dasharray: 402;
            stroke-dashoffset: 0;
            stroke-width: 11;
            transition: stroke-dashoffset 1s ease;
            fill: none;
            stroke: @semiBlack;
            stroke-linecap: round;

            &.value {
                stroke-dashoffset: 400;
                stroke-width: 8;
                stroke: #FFF;
            }
        }
    }
}

.listenPort {
    display: table-row;

    .AppStatus {
        margin: 8px 8px 8px 0;

        &.bgGray {
            outline: 1px solid gray;
        }
    }

    & > span {
        display: table-cell;
        padding: 4px;
        align-content: center;
    }
}

/*#endregion*/
/*#region side menu*/
#navToggle {
    display: none;
    width: 32px;
    height: 32px;
}

#sideMenuContainer, .subMenuWell {
    background: @panelDark;
    position: fixed;
    left: 0;
    height: 100%;
    width: @sideMenuWidth;
    overflow-y: auto;
    overflow-x: clip;
    box-sizing: border-box;
    transition: left 0.5s, background 0.5s;
    z-index: @orderTop;
}

#sideMenuContainer {
    display: flex;
    flex-direction: column;
}

.subMenuWell {
    left: @sideMenuWidth;
    float: left;
    pointer-events: all;
    top: 0;
    position: absolute;
    height: auto;
    bottom: 0;
}

.menuTitle {
    .lightFont();
    color: @semiTitle;
    font-size: 24pt;
    padding: 20px 16px 20px 12px;
}

.subMenu {
    float: left;
    height: 100%;
    width: 128px;
    background-color: @semiBlack;

    a {
        .lightFont;
        .pointer;
        .noMarginPadding;
        display: block;
        padding: 0 0.3em 0 0.2em;
        margin: 0 0 1px 0;
        color: @textOnDark;
        vertical-align: middle;
        height: 24px;
        line-height: 24px;
        text-decoration: none;

        &:hover {
            background-color: @panelDarkHover;
        }

        &:active {
            background-color: @panelActive;
        }
    }
}

#sideMenuPresenter {
    display: flex;
    flex-direction: column;
}

#sideMenu {
    width: @sideMenuWidth;
    margin: 0;
    padding: 0;
    z-index: @orderMiddle;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
    flex-grow: 1;

    .heroImage {
        width: 100%;
    }

    &.childOpen {
        transform: translate(-@sideMenuWidth, 0);
    }

    a {
        .lightFont;
        .largeFont;
        .pointer;
        display: flex;
        align-items: center;
        color: @textOnDark;
        text-decoration: none;
        transition: all 0.25s, width 0.25s;
        position: relative;

        &.padBottom {
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 16px;
        }

        &.hasSubtitle {
            line-height: 16px;
        }

        &.hasWarning {
            background-color: rgba(255, 127, 0, 0.1);
        }

        &.hasNotice {
            background-color: rgba(0, 127, 255, 0.1);
        }

        div {
            display: flex;
            flex-direction: column;

            .subtitle {
                color: orange;
                font-size: smaller;
                display: inline-block;
            }
        }

        &.small {
            font-size: 90%;

            img, .mat-icon {
                font-size: 24px;
                padding: 10px 8px 10px 16px;
            }
        }

        img, .mat-icon {
            padding: 12px @standardMargin;
            font-size: 24px;
        }

        .warn {
            height: 12px;
            position: absolute;
            margin-left: 14px;
            margin-top: 12px;
            color: orange;
            font-size: 20px;
            font-weight: 400;
            text-shadow: 0 2px 2px black;
        }

        &.info {
            .warn, .subtitle {
                color: @accent;
            }
        }

        &:hover {
            background-color: @semiBlack;
        }

        &.selected {
            margin-left: 0;
            margin-right: 0;
            box-shadow: inset 4px 0px 0;
        }

        &.disabled {
            background-color: transparent;
            opacity: 0.5;
        }
    }
}

.multiMenuContainer {
    width: 100%;
    transition: height 0.625s ease-in-out;
}

/*#endregion*/
/*#region console*/

#AMP_Core_ConsoleButtons {
    width: auto;
}

#consoleContainer {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 56px;
}

#consoleUsers {
    float: right;
    width: 192px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 0;
    .monospace();
}

#consoleArea {
    height: 100%;
    margin-right: 192px;
    overflow-y: auto;
    overflow-x: hidden;

    .consoleEntry:nth-child(odd) {
        background-color: @semiBlack;
    }
}

#consoleLineEntry {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    outline: none;
    border-bottom: 1px solid @halfWhite;
    margin-top: -1px;
    border-radius: 4px 4px 0 0;
    padding: 8px;
    .monospace;
}

.consoleEntry, .consoleContents {
    .monospace();
    font-size: 11pt;
    padding: 0.25em;
}

.consoleContents, .consoleContents pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    display: block;
    margin-left: 6em;
}

.consoleContents table {
    margin: @halfMargin 0 @halfMargin 0;
}

.consoleTimestamp {
    margin-right: 0.5em;
    color: @accent;
    float: left;
    user-select: none;

    &::after {
        content: ":\00a0";
    }
}

.consoleType {
    color: @UsersColor;
    display: inline;
}

.consoleName {
    color: @UsersColor;
    display: inline;
    cursor: pointer;
    user-select: none;
}

.consoleName:hover {
    color: @UsersColor + 50%;
}

.consoleName:active {
    color: @UsersColor;
}

#consoleUsers .consoleUserEntry:nth-child(odd) {
    background-color: @hintWhite;
}

.consoleUserEntry {
    border-bottom: 1px solid black;
    padding: 4px;
    cursor: pointer;


    &:hover {
        background-color: @semiWhite;
    }

    &:active {
        background-color: transparent;
    }
}

/*#endregion*/
/*#region scheduler */
.scheduleTriggerInfo {
    width: 100%;
    border-radius: 4px;
    border: 1px solid @accent;
    margin-top: @halfMargin;
    background-color: @dark;
    overflow: hidden;
    box-shadow: 0 4px 4px @darkSemiBlack;
}

.emitsList {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    grid-gap: 8px;

    .emitValue {
        display: inline-flex;
        padding: 4px 8px;
        font-size: smaller;
        min-height: auto;
        min-width: auto;
        margin: 0;
    }
}

.scheduleAdvSegments {
    h4 {
        margin-top: @halfMargin;
        margin-bottom: 0;
    }
}

.scheduleTriggerInfo .scheduleTriggerTask:last-child {
    border-bottom: none;
}

.scheduleTriggerDescription {
    background-color: @accent;
    padding: @halfMargin;
    display: flex;
}

.scheduleTriggerHeaderItem {
    .scheduleHeader {
        color: @dark;
        font-weight: 500;
    }
}

.grow {
    flex-grow: 1;
}

.scheduleTriggerDescriptionVariables {
    .scheduleTriggerVariable {
        display: inline;
        padding-right: (@halfMargin / 2);

        &::after {
            content: '|';
            margin-left: @halfMargin;
        }

        &:last-of-type {
            border-right: none;

            &::after {
                content: '';
            }
        }
    }
}

.scheduleTriggerContents {
    width: 100%;
}

.scheduleTriggerTaskTitle {
    min-height: 24px;
    display: flex;
    align-items: center;

    > span {
        flex-grow: 1;
        padding: 6px;
    }
}

.scheduleTriggerTaskDropper {
    height: 40px;
    border-radius: 4px;
    margin-left: @halfMargin;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
}

.scheduleTriggerTask {
    padding: @halfMargin;
    border-bottom: 1px solid @accent;
}

.scheduleTriggerInfo > .scheduleTriggerTaskDropper {
    margin: 8px;
}

.scheduleParam {
    background-color: @panels;
    color: white;
    border-radius: 4px;
    padding: 2px 4px 2px 4px;
}

.timeSegment {
    background-color: rgba(255,255,255,0.25);
    color: white;
    box-sizing: border-box;
    padding: 4px;
    cursor: pointer;
    float: left;
    .noSelect();

    &:hover {
        background-color: white;
        color: black;
    }

    &:active {
        background-color: gray;
    }

    &.selected {
        background-color: @TimeSegmentSelected;

        &:hover {
            background-color: @TimeSegmentSelected + 70%;
        }

        &:active {
            background-color: @TimeSegmentSelected - 20%;
        }
    }
}

.segmentContainer() {
    border-collapse: collapse;
    width: 100%;
    display: table;
    margin-top: 4px;
}

.twelveSegmentContainer {
    .segmentContainer();

    .timeSegment {
        width: 8.33%;
    }
}

.sevenSegmentContainer {
    .segmentContainer();

    .timeSegment {
        width: 14.285%;
    }
}

.segmentKeyContainer {
    .segmentContainer();
    margin-top: 8px;
    position: absolute;
    right: @standardMargin;
    width: 200px;

    .timeSegment {
        width: 50%;
    }
}

.hoursSegmentContainer {
    .segmentContainer();

    .timeSegment {
        width: 4.166%;
        font-size: smaller;
    }
}

.minutesSegmentContainer {
    .segmentContainer();

    .timeSegment {
        width: 5%;
        font-size: smaller;
    }
}

/*#endregion */
/*#region notifications*/

@-webkit-keyframes indeterminateProgress {
    from {
        left: -20%;
    }

    to {
        left: 120%;
    }
}

.progUnknown {
    -webkit-animation: indeterminateProgress 2s linear infinite;
}

#notificationContainer {
    font-size: 11pt;
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: #333;
    width: 400px;
    border: 1px solid @semiWhite;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 4px @darkSemiBlack;

    .notificationContents {
        max-height: 260px;
        overflow-y: auto;
    }

    .notificationBanner {
        background-color: #222;
        padding: @halfMargin;
    }

    button {
        height: 24px;
        min-height: 24px;
        min-width: 20px;
        background-color: transparent;
        background-color: #633;
        border: 1px solid #900;
        font-size: 8pt;
        color: #fff;
    }

    .notification {
        padding: @halfMargin;
        border-bottom: 1px solid #222;
        cursor: pointer;
        transition: opacity 0.25s ease-in-out, height 0.25s ease-in-out, padding 0.25s ease-in-out;

        &.failed {
            background-color: #833;
        }

        &:hover {
            background-color: #222;

            &.failed {
                background-color: #A55;
            }
        }

        .notificationTitle {
            .lightFont();

            button {
                float: right;
                margin-right: 0;
            }
        }
    }
}

.notificationProgessContainer {
    width: 100%;
    height: 20px;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: inset 0px 1px 0px @panels, inset 0px -1px 0px @panels, inset 1px 0px 0px @panels, inset -1px 0 0px @panels;
}

.notificationProgressBar {
    height: 100%;
    background-color: @panels;
    background-image: linear-gradient(45deg, rgba(94,168,222,1) 14%, rgba(52,126,179,1) 14%, rgba(52,126,179,1) 40%, rgba(94,168,222,1) 40%, rgba(94,168,222,1) 60%, rgba(52,126,179,1) 60%, rgba(52,126,179,1) 85%, rgba(94,168,222,1) 85%, rgba(94,168,222,1) 100%);
    transition: width 0.5s ease-in-out;
    animation: backgroundShift 4s linear infinite;
    background-size: 500px;
}

.notificationSpeed {
    font-size: 9pt;
    white-space: nowrap;
    margin-left: 4px;
    line-height: 16px;
    text-shadow: 2px 2px 4px black;
    padding-top: 2px;
}

/*#endregion*/
/*#region configuration*/

.tabHeaderContainer {
    display: flex;
    grid-gap: 2px;
    position: sticky;
    top: -24px;
    z-index: 10;
    border-bottom: 4px solid @darkSemiBlack;
    overflow-x: auto;
    margin: -24px -24px 24px -24px;
    padding: 0 24px 0 24px;
    background-color: #101822;

    .tabHeader {
        display: flex;
        flex-grow: 0.05;
        flex-shrink: 0.01;
        align-items: center;
        padding: @halfMargin @standardMargin;
        background-color: @semiBlack;
        cursor: pointer;
        border-radius: @halfMargin @halfMargin 0 0;
        overflow: hidden;
        position: relative;
        min-height: 36px;
        margin: 0;
        border: none;
        justify-content: start;
        font-size: 100%;

        .mat-icon {
            position: absolute;
            color: rgba(255,255,255,0.1);
            scale: 4;
            right: 16px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        &:hover {
            background-color: @semiWhite;
        }

        &:active {
            background-color: @accent;
        }

        &.active {
            background-color: @panels;
            box-shadow: 0 16px 32px black;

            .mat-icon {
                color: rgba(255,255,255,0.2);
            }

            &:hover {
                background-color: @accent;
            }

            &:active {
                background-color: @panels;
            }
        }
    }
}

.lift {
    background-color: rgba(255,255,255,0.05);
    box-shadow: 0px 2px 4px @darkSemiBlack;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

.provisionSetting {
    &.disabled {
        opacity: 0.5;
    }
}

.settingsGroup {
    display: block;
    padding-bottom: @halfMargin;

    h3 {
        border-bottom: 1px solid gray;
        margin-top: 0;
    }

    .groupBody {
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(320px, 2fr));
        grid-gap: @standardMargin;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;

        .doubleWidth {
            grid-column: span 2;
        }

        .settingContainer {
            padding: @standardMargin;
            border-radius: 4px;
            background-color: @blue;
            transition: outline-color 0.5s ease;
            outline: 3px solid transparent;
            box-shadow: 0px 2px 4px @darkSemiBlack;
            border: 1px solid rgba(255,255,255,0.1);

            &.warning {
                outline: 3px solid red;
            }

            &.highlighted {
                outline: 3px solid orange;
            }

            .listEditButton {
                float: right;
                margin-right: 0;
                margin-left: @halfMargin;
                background-repeat: no-repeat;
                background-position: center;
                min-width: 30px !important;
                background-size: 75%;
                box-shadow: none;
                font-size: larger !important;

                &:nth-of-type(3), &:nth-of-type(1) {
                    border-radius: 0px 4px 4px 0px;
                    margin-left: -1px;
                    border-left: 0;
                }

                &:nth-of-type(4) {
                    margin-left: -1px;
                    border-radius: 0;
                    border-right: 0;
                }

                &:nth-of-type(5), &:nth-of-type(2) {
                    border-radius: 4px 0px 0 4px;
                    border-right: 0;
                }

                &.solo {
                    border-radius: 4px;
                }

                .mat-icon {
                    font-size: 20px;
                    margin-right: 0;
                }
            }

            label.checkbox {
                float: right;
                margin-left: @halfMargin;
            }

            .settingWarning {
                font-size: 8pt;
                color: skyblue;
                margin-top: -34px;
                padding-left: 58px;
                padding-right: 100px;
            }
        }

        .settingLabel {
            position: relative;

            .permNodeDescription {
                float: left;
                margin-top: 16px;
                opacity: 0.5;
            }

            &.provisionSpec {
                opacity: 0.5;
            }

            span.inputFieldSuffix {
                float: right;
                position: absolute;
                bottom: 8px;
                text-align: right;
                right: 28px;
                color: @halfWhite;
                pointer-events: none;
            }

            select {
                padding: 7px;
            }

            select[multiple], textarea {
                height: 128px;
            }

            .settingDescription {
                font-size: 8pt;
                color: @halfWhite;
                min-height: 3em;
                margin-top: 4px;
            }

            input[type="radio"], label.checkbox {
                width: auto;
                max-width: none;
            }

            img {
                float: right;
                clear: both;
            }

            .top8 {
                margin-top: @halfMargin;
            }

            table {
                word-break: break-all;
            }
        }

        .settingInfo {
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: flex-end;
            font-size: 10pt;
            opacity: 0.5;
            color: skyblue;
            margin-top: 16px;

            .mat-icon {
                font-size: 16px;
                margin-left: 4px;
            }
        }

        .settingActionsList {
            margin-top: @standardMargin;
            display: inline-block;
            float: left;

            button {
                max-height: 32px;
                font-size: medium;
            }
        }
    }
}

/*#endregion*/

.modalbg {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: @darkSemiBlack;
    background-repeat: no-repeat;
    background-position: right -@standardMargin bottom -@standardMargin;
}

.modalcontents.twoFactorInput {
    min-height: 233px;
}

div.twoFactorInput {
    padding: 16px;
}

#modalPromptInput {
    display: none;
    margin-bottom: 16px;
    width: 100%;

    &.twoFactorInput {
        font-size: 24pt;
        width: 6em;
        font-family: monospace;
    }
}

#modalmessage {
    white-space: pre-line;
    margin: 0;
}

.modalpanel {
    background-color: #222;
    transition: transform 0.5s ease;
    width: 750px;
    max-width: 95%;
    box-shadow: 0px @halfMargin @halfMargin @darkSemiBlack;
    border-radius: @standardMargin;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    border-bottom: 8px solid #444;

    &.visible {
        transform: translate(-50%, -50%);
    }

    img {
        float: right;
        border-bottom-left-radius: 32px;
        max-height: 200px;
    }

    #modaltitle {
        background-color: #444;
        padding: @halfMargin @standardMargin;
        margin: 0;
    }

    .modalbuttons, .modalcontents {
        padding: @standardMargin;
    }
}

.transparentAnim {
    opacity: 0;
    transition: opacity 0.5s ease;

    &.opaque {
        opacity: 1;
    }
}

#modalsubtitle {
    color: #fff;
    font-weight: bold;
}

#modalAdvancedText {
    border: 1px solid #333;
    background-color: @darkSemiBlack;
    color: silver;
    padding: @halfMargin;
    border-radius: 4px;
    overflow: auto;
}

.modalbuttons {
    display: flex;
    grid-gap: @halfMargin;
}

.buttonGroup {
    width: 100%;
    float: left;
    display: flex;
    gap: @halfMargin;
    flex-wrap: wrap;

    button {
        margin-right: 0;
    }

    .slimButton {
        margin-right: 0;
        border-radius: 0;
    }
}

.iconButtonGroup {
    display: flex;
    border-radius: @halfMargin;
    overflow: hidden;
    flex-shrink: 0;

    button {
        height: 32px;
        min-height: 32px;
        font-size: 12pt;
    }
}

.slimButtonGroup {
    button {
        box-shadow: none;
        height: 32px;
        min-height: 32px;
        font-size: 12pt;
    }
}

#relatedLinkA {
    color: @accent;
}

.helpLink {
    font-size: 10pt;
    text-decoration: underline;
}

.contextMenu.contextMenu {
    width: 192px;
    padding-bottom: 8px;
    left: 0;
    top: 0;
    position: fixed;

    &.wizardBottom {
        bottom: auto;
    }

    &.wizardVisible {
        top: auto;
        bottom: auto;
    }

    h2 {
        font-size: 12pt;
    }

    .flexButtonGroup {
        display: flex;
        flex-direction: column;
    }

    button {
        margin-bottom: 8px;
        margin-right: 0;
        font-size: 10pt;
        height: 32px !important;
        background-position: center 1000%;

        &:hover {
            background-position: center center;
        }
    }

    .buttonListSeparator {
        width: 100%;
        height: 2px;
        border-bottom: 1px solid @accent;
        margin-bottom: 8px;
    }
}

.well {
    padding: @standardMargin;
    border-radius: @halfMargin;
    margin-top: @halfMargin;
    display: flex;
    align-items: center;
    margin-bottom: @halfMargin;
    grid-gap: @halfMargin;

    &.warning {
        border: 1px solid red;
        background-color: @darkSemiBlack;
    }

    &.info {
        border: 1px solid @accent;
        background-color: @semiBlack;
    }

    &.good {
        border: 1px solid green;
        background-color: @darkSemiBlack;
    }

    .mat-icon {
        font-size: 32px;
        margin: 0 4px
    }

    div {
        flex-grow: 1;
    }

    button {
        margin-right: 0;
    }

    h3 {
        margin: 0;
    }

    p {
        margin-bottom: 0;
        margin-top: 4px;
        font-size: smaller;
    }

    .hvGroup {
        display: flex;
        grid-gap: 16px;
        justify-content: end;
        margin-right: 8px;
    }
}

/*Trees!*/

.treeContainer, .treeContents {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 0 8px 8px;
    border-radius: 8px;
}

.treeContainer {
    border: 1px solid #333;
}

.treeExpando {
    width: 16px;
    height: 16px;
    background-image: url(/Images/MenuArrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.1s ease-in-out;
    transform-origin: center;
    font-size: 12pt;
    margin-right: 4px;

    &.expanded {
        transform: rotate(90deg);
    }
}

.treeExpando, .treeName {
    cursor: pointer;
}

.treeName {
    display: flex;
    align-items: center;
}

.treeItem {
    cursor: pointer;
    padding: 4px;
    text-decoration: none;

    &.noParent {
        margin-left: 0;
    }

    &:hover {
        background-color: @semiWhite;
    }

    .description {
        font-size: smaller;
        color: @halfWhite;
    }
}

.treeItem.selected {
    color: white;
    background-color: #46a;
}

.treeName:hover, .treeItem:hover {
    text-decoration: underline;
}

.treeEntry.treeItem {
    border: none;
    display: flex;
    align-items: center;

    .permNodeDescription {
        text-align: right;

        span {
            line-break: normal;
        }
    }
}

.treeEntry.treeItem:hover {
    text-decoration: none;
}

.treeContents {
    box-sizing: border-box;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease, margin 0.3s ease, border 0.3s ease;
    padding: 0 0 0 8px;
    border-radius: 8px 0 0 8px;

    &.expanded {
        padding: 8px 0 8px 8px;
        border: 1px solid #333;
        margin: 8px 0;
        border-right-width: 0;
    }
}

.treeEntry {
    border: 1px solid #555;

    .checkbox {
        padding: 4px 8px;
    }
}

.treeItemText {
    padding: 4px;
    margin-top: -4px;
    flex-grow: 1;
}

.permNodeSelection {
    display: inline-block;
    height: 24px;
    width: 24px;
    border-radius: 12px;
    float: right;
    color: white;
    padding-left: 4px;
    box-sizing: border-box;
    cursor: pointer;
    margin-top: -1px;
    margin-right: 2px;
    .bgGray();

    &.denied {
        .bgRed();
    }

    &.granted {
        .bgGreen();
    }
}

.permNodeDescription {
    font-size: smaller;
    color: rgba(255,255,255,0.4);
}


.sideItemList {
    float: left;
    height: 100%;
    width: 220px;
    background-color: #1B425B;
    position: fixed;
    overflow-y: auto;

    button {
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
}

.sideItemData {
    margin-left: 236px;
    margin-right: 16px;
    user-select: text;
    margin-top: @halfMargin;

    h1, h2, h3, h4, h5 {
        margin: 16px 0 0 0px;
    }

    & > p {
        margin-top: 0px;
        margin-left: 0px;
        color: gray;
        font-size: smaller;
    }

    .sideItemDataTable {
        display: grid;
        grid-gap: @standardMargin;
        margin-top: @halfMargin;
        margin-bottom: @halfMargin;

        &.grid200 {
            grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));

            & div:nth-of-type(even) {
                grid-column: span 1;
                overflow: visible;
            }
        }
    }
}

.permissionsHeader {
    padding: @standardMargin;

    h4 {
        font-size: larger;
        font-weight: lighter;
        margin: 0;
    }

    p {
        margin: @halfMargin 0 0 0;
    }
}

.permissionDescriptions {
    display: flex;
    grid-gap: @standardMargin;
    margin-bottom: 16px;

    div {
        border-radius: @halfMargin;
        background-color: @semiBlack;
        padding: @standardMargin;

        h4 {
            font-size: larger;
            font-weight: lighter;
            margin: 0;
        }

        p {
            margin: @halfMargin 0 0 0;
        }

        .description {
            font-size: smaller;
            color: @halfWhite;
        }
    }
}

.itemList {
    width: 100%;
    user-select: text;
    margin-bottom: 48px;

    .item {
        cursor: pointer;
        padding: 8px;
        border-bottom: 1px solid @semiWhite;
        box-sizing: border-box;
        display: flex;
        align-items: center;

        .mat-icon {
            margin-right: 8px;
        }

        div {
            display: flex;
            flex-direction: column;

            .desc {
                font-size: 8pt;
                color: @halfWhite;
            }
        }

        &:hover {
            background-color: #335169;
        }

        &:active {
            background-color: #253541;
        }

        &.selected {
            border-right: 4px solid #5EA8DE;
        }

        img {
            height: 32px;
            margin-right: 8px;
            border-radius: 8px;
        }
    }
}

.noPaddingTab {
    padding: 0;
}

.noOverflowTab {
    overflow: hidden;
}

.ThirdPartyNotice {
    float: left;
    padding: 64px;
    z-index: 1;
    position: absolute;
    background-color: rgba(15,37,53,0.9);
    height: 100%;
    box-sizing: border-box;
}


.tooltiptext {
    background-color: #159922;
    border-radius: 6px;
    color: #ffffff;
    padding: 4px;
    position: absolute;
    text-align: center;
    bottom: -20px;
    box-sizing: border-box;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    .shadow();

    &::after {
        border-color: transparent transparent #159922 transparent;
        border-style: solid;
        border-width: 5px;
        bottom: 100%;
        content: "";
        left: 50%;
        margin-left: -5px;
        position: absolute;
        transition: right 0.3s ease;
    }

    .mat-icon {
        margin-left: 8px;
    }
}

.tooltipleft::after {
    left: 18%;
}

.tooltipright::after {
    right: 24px;
    left: unset;
}

.tooltipfarright::after {
    right: 4px;
    left: unset;
}

.tooltiphigher {
    bottom: 0;
}

.span4 {
    grid-column: span 4;
}

.span2 {
    grid-column: span 2;
}

.span1 {
    grid-column: span 1;
}

#diagTable, #currentSessionsTable, #auditLogTable {
    border-collapse: unset;
    width: 100%;
    box-sizing: border-box;

    td {
        padding: 6px;
    }
}

p.inlineWarning {
    font-style: italic;
    padding: 16px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 8px;
}

#tab_schedule_newTrigger select {
    width: auto;
    min-width: 100px;
}

@import "Responsive"; //Responsive.less
