/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */

// importable

.search_input, .search_block input{
    border-color: #d8d8d8 !important;
    height: 32px !important;
}

.switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 7px;
}

.input_block {
    &.with_error input {
        border: 1px solid red;
    }
}

.material-font {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
}

.checkbox {
    letter-spacing: 10px;
    width:17px;
    height:17px;
    font-size: 13px;
    border: solid 2px #b1b1b1;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.05s;
    margin: 0 4px 0 0;
    vertical-align: middle;
}

h1 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 22px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    color: #1d1d1d;
    height: 45px;
}

.b_btn {
    position: relative;
    height: 32px;
    line-height: 1;
    width: 140px;
    text-transform: capitalize;
}

.flexer {
    list-style: none;
    display: flex;
    flex-direction: row;
}

.search_block {
    position: relative;
    display: flex;
    font-size: 16px;

    &.indent {
        padding: 0 0 0 10px;
        margin: 0;
    }

    .input_block {
        position: relative;
        flex-direction: column;

        i.material-icons {
            position: absolute;

            &.search {
                top: 5px;
                left: 7px;
                cursor: pointer;
                color: #38ab63;
            }

            &.close {
                background-color: #d8d8d8;
                border-radius: 10px;
                color: #ffffff;
                opacity: 1;
                font-size: 17px;
                font-weight: normal;
                top: 8px;
                right: 8px;
            }
        }

        .btn-filter {
            margin-top: 5px;
            width: 99%;
            max-width: 216px;

            > div {
                text-overflow: ellipsis;
                overflow: hidden;
                width: 90%;
            }

            span {
                position: absolute;
                right: 10px;
                top: 5px;
            }
        }
    }

    .checkbox_block {
        width: 166px;
        min-width: 166px;
        height: 32px;
        border-radius: 2px;
        background-color: #fafafa;
        border: solid 1px #d8d8d8;
        color: #1d1d1d;
        line-height: 26px;
        margin-left: -1px;
        font-size: 13px;

        .checkbox_wrapper {
            margin-left: 15px;

            &:first-child {
                margin-left: 18px;
            }
        }
    }

    .error-message {
        position: absolute;
        display: block;
        font-size: 11px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        color: #d40000;
        font-family: 'Noto Sans', sans-serif;
        text-align: left;
        z-index: 80;
    }
}

input {
    &[type="text"] {
        border: solid 1px #38ab63;
        padding-left: 32px;
        width: 100%;
        min-width: 150px;
        max-width: 216px;
        height: 42px;
        color: #161616;
        box-shadow: none;
        outline: none;
        text-align: left;

        &:focus:not(.error) {
            box-shadow: inset 0 0 4px 0 #38ab63 !important;
            border-color: #38ab63 !important;
        }

        &.error {
            border: solid 1px #d40000 !important;
            box-shadow: inset 0 0 4px 0 #d40000 !important;
        }
    }

    &[type=checkbox] {
        display: none;

        + label {
            font-size: 13px;
            line-height: 28px;
            margin: 0;

            &:hover {
                cursor: pointer;
            }
        }

        + label:before {
            &:extend(.checkbox);
            display: inline-block;
            content: ' ';
        }

        &:checked + label:before {
            &:extend(.material-font);
            &:extend(.checkbox);
            font-weight: bold;
            color: #ffffff;
            background-color: #38ab63;
            border-color: #38ab63;
            content: 'done';
        }
    }
}

.filter_block {
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 0;

    .btn-filter {
        span {
            position: absolute;
            right: 10px;
            top: 5px;
        }
    }
}

/deep/ .dropdown {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 14px 0 #c2c2c2, 0 0 2px 0 #e0e0e0;
        border-width: 0;
        border-radius: 0;
        padding: 0;

        > li {
            > a {
                margin: 0;
                padding: 3px 20px 5px 40px;
                height: 35px;
                text-align: left;
                font-size: 13px;
                color: #4d4d4e;
                line-height: 30px;
                width: 100%;
                display: inline-block;

                &:hover, &:active {
                    background-color: #e9f6ee;
                    color: inherit;
                    text-decoration: none;
                }
            }
        }
    }
}

/deep/ .typeahead {
    .dropdown-menu {
        width: fit-content;
        position: relative;
        list-style: none;
        white-space: nowrap;
        background-color: #ffffff;
        box-shadow: 0 2px 14px 0 #c2c2c2, 0 0 2px 0 #e0e0e0;
        padding: 0;
        top: 0;
        right: 28px;
        z-index: 99;

        li {
            font-family: 'Noto Sans', sans-serif;
            font-size: 13px;
            height: 35px;
            text-align: left;
            line-height: 35px;
            color: #4d4d4e;
            cursor: pointer;
            padding: 0 40px;

            a {
                padding: 7px 0;
                line-height: 20px;
            }

            &.active {
                background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMThweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgMTMgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+IDwhLS0gR2VuZXJhdG9yOiBza2V0Y2h0b29sIDQwICgzMzc2MikgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+IDx0aXRsZT42MzM5MTRDMS00NDYwLTRGQUYtOTc5MC1ENzI0ODUwNkIwQzA8L3RpdGxlPiA8ZGVzYz5DcmVhdGVkIHdpdGggc2tldGNodG9vbC48L2Rlc2M+IDxkZWZzPjwvZGVmcz4gPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+IDxnIGlkPSJXaGl0ZS1HcmV5LUJsYWNrLS0tb3Blbi1tZW51IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjY2LjAwMDAwMCwgLTU5OC4wMDAwMDApIiBmaWxsPSIjNGQ0ZDRlIj4gPHBvbHlnb24gaWQ9IlNoYXBlIiBwb2ludHM9IjI3MC4wMjk5ODQgNjA1LjcwNTI0MSAyNjcuMDIzNzE3IDYwMi42NjgyOTggMjY2IDYwMy42OTUxNzggMjcwLjAyOTk4NCA2MDcuNzY2Mjg0IDI3OC42ODExMTEgNTk5LjAyNjg4IDI3Ny42NjQ2MDQgNTk4Ij48L3BvbHlnb24+IDwvZz4gPC9nPiA8L3N2Zz4=") no-repeat scroll 13px center rgba(55, 171, 99, 0.11);
            }

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

.table {
    margin-top: 22px;
    background-color: #f8f8f8;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.17);
    border: solid 1px;
    border-image-source: linear-gradient(to bottom, #e8e5e5, #dcdcdc);
    border-image-slice: 1;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    font-family: 'Noto Sans', sans-serif;

    >tbody, >thead {
        >tr {
            background-color: #ffffff;
            border: solid 1px #dcdcdc;
            height: 50px;
            transition: background-color 0.3s;

            >th {
                color: #4e5665;
                background-color: #f8f8f8;
                border-bottom: solid 1px #dcdcdc;
                vertical-align: middle;
                padding: 15px 37px;
                font-weight: normal;
            }

            >td {
                color: #535353;
                padding-left: 37px;
                vertical-align: middle;

                &.event {
                    font-weight: bold;
                }

                div {
                    line-height: 22px;
                }

                .incident-details {
                    flex-wrap: nowrap;
                    display: inline-flex;
                }
            }

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

            &.no-hover {
                background-color: #ffffff;
            }

            &.no-result {
                td {
                    font-weight: normal;
                    text-align: center;
                    vertical-align: middle;
                }
            }

            &.hoverable {
                cursor: pointer;

                td:first-child::before {
                    &:extend(.material-font);

                    content: 'play_arrow';
                    left: 10px;
                    position: absolute;
                    transform: rotate(0deg) scale(.5);
                    transition: 0.3s all;
                    opacity: 0.4;
                }

                &.expanded td:first-child::before {
                    transform: rotate(90deg) scale(.5);
                }
            }
        }
    }

    .expanding-row {
        transition: all 1s;
        display: none;

        td {
            padding-left: 0;
        }
    }
}

.additions_row {
    margin: 0;
    background-color: #f3fbfd;

    .additions {
        margin-top: 8px;

        > div {
            float: left;
            width: 150px;
            text-align: left;
            margin-bottom: 3px;
        }

        .addition_title {
            font-size: 11px;
            color: #828282;
        }

        .addition_value {
            opacity: 0.9;
            font-size: 12px;
            color: #1e1e1e;
        }
    }
}

.description {
    font-size: 13px;
    line-height: 1.5;
    color: #565656;
    font-family: 'Open Sans', sans-serif;
}

.time-label {
    margin-left: 7px;
}

.thumb-icon {
    display: inline-block;
    float: left;
    margin-top: 3px;
    margin-right: 6px;
    font-size: 17px;

    &.high {
        color: #f18282;
    }

    &.low {
        color: #4cc880;
    }
}

/deep/ .severity-icon {
    display: inline-block;
    margin-left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 8px;
    line-height: 0.5;

    &.high {
        background-color: #f18282;
    }

    &.low {
        background-color: #4cc880;
    }

    &.medium {
        background-color: #fda55b;
    }
}

.pagination_nav {
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    .pagination {
        li > a, li > span {
            margin: 0 10px;
            border-radius: 20px;
            height: 40px;
            min-width: 40px;
            color: #535353;
            text-align: center;
            line-height: 29px;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.27);
            border-width: 0;
            font-size: 13px;
            transition: all 0.7s;

            &:hover {
                box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.27);
            }
        }

        li {
            &:first-child, &:last-child {
                a, span {
                    margin: 0;
                    border-top-left-radius: 20px;
                    border-bottom-left-radius: 20px;
                    font-size: 30px;
                    line-height: 24px;
                }

                span {
                    box-shadow: none;
                }
            }
        }

        .active {
            a, span, &:hover, &:focus {
                background-color: #38ab63;
                color: #fff;
            }
        }
    }

    &.no_page {
        cursor: default;
    }

    .disabled {
        display: none;
    }
}

.status_confirm {
    background: rgba(255, 255, 255, 0.8);
    bottom: 0px;
    display: flex;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 9999;

    .status_confirm_wraper {
        background: white;
        box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.24);
        width: 529px;
        height: 206px;
        margin: 0 auto;
        padding: 24px 24px 16px 24px;
        text-align: center;

        p {
            line-height: 60px;
            padding-bottom: 24px;
            font-family: 'Noto Sans', sans-serif;
            color: #4d4d4e;
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 29px;
            margin-top: 20px;
        }


        button {
            float: right;
            background-color: transparent;
            font-family: 'Noto Sans', sans-serif;
            color: #38ab63;
            font-size: 15px;
            font-weight: bold;
        }
    }
}
