.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: left;
    display: none;
    min-width: 160px;
    _width: 160px;
    padding: 4px 0;
    margin: 2px 0 0 0;
    list-style: none;
    background-color: #ffffff;
    border-color: #ccc;
    border-color: rgba(0, 0, 0, 0.2);
    border-style: solid;
    border-width: 1px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    *border-right-width: 2px;
    *border-bottom-width: 2px;
}

.ui-autocomplete .ui-menu-item {
    display: block;
    padding: 3px 15px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;
}

.ui-autocomplete .ui-menu-item.ui-state-focus {
    color: #ffffff;
    text-decoration: none;
    background-color: #0088cc;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    background-image: none;
}

.ajax_waiting {
    position: relative;
}

.ajax_waiting .ajax_waiting_div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: transparent url('/themes/default/img/loading.gif') center center no-repeat;
}

.ajax_background_color_div {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #FFFFFF url('/img/loading_background.png') no-repeat center center;
    opacity: 0.8;
}

.yandex-metrika tr {
    border-bottom: 1px solid #ececec;
}

.yandex-metrika tr.tree {
    background: #f6f6f6;
}

.yandex-metrika tr[class^="tree_"] {
    display: none;
}

.yandex-metrika td.dimension {
    padding: 12px 12px 9px 25px;
}

.yandex-metrika tr.tree td.dimension {
    padding: 12px 12px 9px 10px;
}

.yandex-metrika td.metric {
    text-align: right;
}

.yandex-metrika td.metric span {
    display: block;
    width: 90%;
    padding: 10px 0;
    text-align: center;
    margin: 0 5%;
    background: #ececec;
    border-radius: 5px;
}

.yandex-metrika td.metric.add span {
    background: #5cb85c;
    color: #fff;
}

.yandex-metrika td.metric.delete span {
    background: #d9534f;
    color: #fff;
}

.yandex-metrika td.show_hide {
    text-align: center;
}

.yandex-metrika tr.tree td > span {
    border-bottom: 1px dashed #333;
    cursor: pointer;
}

.st_box {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
}

.st_box span {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border-radius: 3px;
    border: 1px solid #ececec;
    background-color: white;
}

.st_box span.selected {
    background-color: #5cb85c;
    border-color: #4a964a;
}

.st_box span.half_selected {
    background-color: #a9a9a9;
}

.st_box span:after {
    content: "";
    position: absolute;
    display: block;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.setting-container label {
    white-space: nowrap;
}


.toolbar {
    display: flex;
    border: 1px solid #ddd;
    padding: 5px;
    margin-top: -1px;
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
}
.toolbar-group {
    width: 110px;
    margin: 0 20px;
}

.toolbar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0 2px;
    transition: all .2s;
}
.toolbar-item:focus {
    outline: none;
}
.toolbar-item:hover {
    color: #4FBAFF;
}
.toolbar-item svg {
    transition: all .2s;
}
.toolbar-item:hover svg {
    fill: #4FBAFF;
}
.mr-auto {
    margin-right: auto;
}
.w-auto {
    width: auto;
}