body, html {
    padding: 0;
    margin: 0;
    font-family: 'Roboto Flex', Arial, serif;
}

body {
    min-height: 1000px;
    min-width: 900px;
    padding-top: 55px;
    padding-bottom: 100px;
}

.m5 {
    margin: 0 5px;
}

.p5 {
    padding: 5px !important;
}

.mt18 {
    margin-top: 18px !important;
}

.mt40 {
    margin-top: 40px !important;
}

.mt0 {
    margin-top: 0px !important;
}

.mt10 {
    margin-top: 10px !important;
}

.mr10 {
    margin-right: 10px !important;
}

.mr20 {
    margin-right: 20px !important;
}

.ml10 {
    margin-left: 10px !important;
}

.ml20 {
    margin-left: 20px !important;
}

.mt5 {
    margin-top: 5px !important;
}

.mb10 {
    margin-bottom: 10px !important;
}

.pl0 {
    padding-left: 0 !important;
}

.center {
    text-align: center !important;
}

.left {
    text-align: left !important;
}

.right {
    text-align: right !important;
}

.nowrap {
    white-space: nowrap;
}

.d-none {
    display: none !important;
}

.block {
    display: block !important;
}

.strong {
    font-weight: bold;
}

.fright {
    float: right;
}

.fleft {
    float: left;
}

.w45 {
    width: 45px !important;
}

.w60 {
    width: 60px !important;
}

.w70 {
    width: 70px !important;
}

.w80 {
    width: 80px !important;
}

.w500 {
    width: 500px !important;
}

.w400 {
    width: 400px !important;
}

.w250 {
    width: 250px !important;
}

.w100 {
    width: 100px !important;
}

.w100p {
    width: 100% !important;
}

.green {
    color: green;
}

.red {
    color: red;
}

th .rotate {
    writing-mode: vertical-lr;
    display: inline-block;
}

.red {
    color: red !important;
}

.gray {
    color: #b9b9b9 !important;
}

.navbar-fixed-top {
    -webkit-box-shadow: 0 2px 3px #eee;
    box-shadow: 0 2px 3px #eee;
}

.navbar-brand,
.navbar-brand:hover {
    padding: 0;
}

/*.navbar-brand img {
    height: 21px;
}*/

.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}


.sidebar {
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 15px 20px 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
}


/* Sidebar navigation */

.nav-sidebar > li {
    position: relative;
}

.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

    .nav-sidebar > li > a {
        padding-right: 20px;
        padding-left: 20px;
    }

    .nav-sidebar > .active > a,
    .nav-sidebar > .active > a:hover,
    .nav-sidebar > .active > a:focus {
        color: #fff;
        background-color: #428bca;
    }


    .nav-sidebar > li > i {
        position: absolute;
        width: 16px;
        height: 16px;
        right: 10px;
        top: 11px;
        background: transparent url('../../img/lamp.png') top left no-repeat;
        cursor: pointer;
    }

        .nav-sidebar > li > i.active {
            background-position: 0 -16px;
        }

.main .page-header {
    margin-top: 0;
}

.tab-content .nav {
    background: lavenderblush;
}

.tab-content {
    padding-top: 20px;
}


a.inner {
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dotted cornflowerblue;
    outline: medium none;
    color: cornflowerblue;
}


#hTitle {
    position: relative;
}

    #hTitle a {
        position: absolute;
        width: 32px;
        height: 32px;
        background: transparent url('../../img/external_link.png') top left no-repeat;
        margin-left: 15px;
        margin-top: 1px;
    }

#tDesign a.changed {
    padding-right: 20px;
    background: transparent url('../../img/extension.png') top right no-repeat;
}

#tDesign div.changed {
    padding-left: 20px;
    background: transparent url('../../img/extension.png') top left no-repeat;
}

#tMakets #aTestMaket {
    padding-right: 20px;
    background: transparent url('../../img/link.png') bottom right no-repeat;
}

.saved-msg {
    display: inline-block;
    opacity: 0;
    padding: 4px 30px 4px 10px;
    margin-left: 10px;
    border-radius: 4px;
}


#dEvent h1 small {
    margin-left: 60px;
}


.form-horizontal h3 {
    margin-left: 12px;
    margin-top: 0;
}

.form-horizontal label.bg-danger {
    padding: 7px 5px 7px 25px;
    border-radius: 4px;
}

.color-test {
    float: left;
    width: 20px;
    height: 20px;
    border: 1px solid #f9f9f9;
    margin-right: 10px;
}

.odd .color-test {
    border: 1px solid #ffffff;
}

#oRegForm label {
    font-weight: bold;
}


.authform {
    width: 350px;
    margin: 0 auto;
}

table.dataTable > tbody > tr > td {
    vertical-align: middle;
}

table.dataTable thead > tr > th {
    text-align: center;
}


.error-text {
    display: none;
}

.has-error .error-text {
    display: initial;
    color: #F76034;
}

.has-error .custom-control-label {
    color: #F76034;
}


legend {
    margin-bottom: 0;
    font-size: 17px;
    border-bottom: none;
    margin-bottom: 10px;
}

.alert-success {
    background-color: #EDE8D4;
    border-color: #DFD7B5;
    color: #505050;
}


.stat-block {
    cursor: pointer;
}

    .stat-block div.full {
        display: none;
    }

    .stat-block.active-full div.full {
        display: block;
    }

    .stat-block:before {
        content: '+';
        display: inline-flex;
        margin-right: 10px;
        font-size: 16px;
        font-weight: bold;
        height: 16px;
        width: 16px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        /* background: #028fc0; */
        background: #505050;
        color: white;
    }

    .stat-block.active-full:before {
        content: '-';
    }


.types-tree {
    margin-bottom: 20px;
}

    .types-tree th,
    .types-tree td {
        padding: 2px;
    }

    .types-tree tr td:first-child {
        padding-left: 50px;
        padding-right: 20px;
    }

    .types-tree label {
        margin-bottom: 0;
        cursor: pointer;
    }

.alert-info {
    color: #235167;
}


/* modal */
.modal-open {
    overflow: hidden;
}


.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: +1500;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background: url('/img/modal-bg.png') 0 0 repeat;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    height: auto;
    padding: 0;
    background: white;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    max-height: calc(100vh - 1rem);
}

    .modal-dialog .modal-content {
        position: relative;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
        pointer-events: auto;
        outline: 0;
        max-height: calc(100vh - 1rem);
    }

    .modal-dialog .modal-header {
        padding: 24px 30px;
        position: relative;
        min-height: auto;
    }

    .modal-dialog h1 {
        padding: 0;
        margin: 0 19px 0 0;
        text-align: left;
        font-weight: normal;
        font-size: 25px;
        line-height: 36px;
        /* color: #5A4394; */
    }



    .modal-dialog .close {
        position: absolute;
        right: 20px;
        top: 30px;
        font-size: 15px;
        line-height: 15px;
        color: #808080;
    }

        .modal-dialog .close:hover {
            color: #000000;
        }

    .modal-dialog .modal-body {
        overflow-y: auto;
        padding: 0 20px 24px 30px;
        font-size: 16px;
        line-height: 19px;
        letter-spacing: 0.03em;
    }

        .modal-dialog .modal-body ul,
        .modal-dialog .modal-body ol,
        .modal-dialog .modal-body p {
            margin: 1em 0;
        }

.modal .btn,
.modal .btn:hover {
    color: #ffffff;
    background-color: #474949;
    border-color: #474949;
    background-image: -webkit-linear-gradient(#4f5151, #474949 6%, #3f4141);
    background-image: -o-linear-gradient(#4f5151, #474949 6%, #3f4141);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#4f5151), color-stop(6%, #474949), to(#3f4141));
    background-image: linear-gradient(#4f5151, #474949 6%, #3f4141);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4f5151', endColorstr='#ff3f4141', GradientType=0);
    -webkit-filter: none;
    filter: none;
    border: 1px solid #2e2f2f;
}




.filterbar .row {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

    .filterbar .row .col {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

        .filterbar .row .col:last-child {
            flex-grow: 1;
        }

