/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
}

@media (max-width: 768px) {
    body {
        padding-top: 94px;
    }
}

@media (max-width: 633px) {
    body {
        padding-top: 120px;
    }
}

@media (max-width: 335px) {
    body {
        padding-top: 140px;
    }
}

/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 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 */
.sidebar-menu {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

.sidebar-menu > li > a {
    padding-right: 20px;
    padding-left: 20px;
}

.sidebar-menu > .active > a,
.sidebar-menu > .active > a:hover,
.sidebar-menu > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}

/*
 * Main content
 */

.main {
    padding: 20px;
}

@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}

.main .page-header {
    margin-top: 0;
}

#sms-block {
    display: none;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}

.placeholders h4 {
    margin-bottom: 0;
}

.placeholder {
    margin-bottom: 20px;
}

.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.info-block {
    /*  border: solid 1px;*/
    padding: 20px;
    /*  border-radius: 10px;*/
    transition: all 0.3s;
    background-color: #f0f0f0;
}

.info-block:hover {
    background-color: white;
}

.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content {
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: scroll;
    font-size: 14px;
}

.material-switch > input[type="checkbox"] {
    display: none;
}

.material-switch > label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
}

.material-switch > label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 16px;
    margin-top: -8px;
    position: absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 40px;
}

.material-switch > label::after {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 24px;
    left: -4px;
    margin-top: -8px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 24px;
}

.material-switch > input[type="checkbox"]:checked + label::before {
    background: inherit;
    opacity: 0.5;
}

.material-switch > input[type="checkbox"]:checked + label::after {
    background: inherit;
    left: 20px;
}

#preloader {
    position: fixed;
    left: 45%;
    top: 45%;
    display: none;
    z-index: 4;
}

/* Стили для Pop-up START */
#popup, .bMulti {
    background-color: #FFF;
    border-radius: 10px 10px 10px 10px;
    box-shadow: 0 0 25px 5px #999;
    color: #111;
    display: none;
    min-width: 450px;
    min-height: 25px;
    max-width: 90%;
    padding: 25px;
}

.button.b-close, .button.bClose {
    border-radius: 7px 7px 7px 7px;
    box-shadow: none;
    font: bold 131% sans-serif;
    padding: 0 6px 2px;
    position: absolute;
    right: -7px;
    top: -7px;
}

.button {
    background-color: #2B91AF;
    border-radius: 10px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    color: #FFF;
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
}
/* Стили для Pop-up END */

#terror_submit, #terror_simple_submit, #valid_cupis_submit, #simple_valid_cupis_submit, #valid_cupis_simple_submit {
    margin-top: 10px;
}

.choosed {
    color:red;
}

#mycanvas {
    width: 200px;
    display: block;
    margin: 0 auto;
}

div.screen  {
    margin: 5px 5px;
    border: 2px solid #337ab7;
    padding: 5px 5px 5px 5px;
    vertical-align: top;
    display: inline-block;
    border-radius: 7px;
}

.top5 { margin-top:5px; }
.top7 { margin-top:7px; }
.top10 { margin-top:10px; }
.top15 { margin-top:15px; }
.top17 { margin-top:17px; }
.top30 { margin-top:30px; }

#button-block a{
   width: 120px;
}
.treeview-menu li {
    padding-left: 15px;
}

.treeview-menu > .active > a,
.treeview-menu > .active > a:hover,
.treeview-menu > .active > a:focus {
    color: #fff;
    background-color: lightskyblue;
}
a {
    color: #337ab7;
    text-decoration: none;
}

.ajaxDropDownMenu{
    right: 0;
    left: auto;
}

#go-back {
    margin-bottom: 20px;
}