/*Иконки*/
:root [data-icon]:before
{
    content: '';
    display: inline-flex;
    width: 32px;
    height: 32px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    border-radius: 32px;
    vertical-align: middle;
}

:root [data-icon="lang_ru-RU"]:before
{
    background-image: url('../images/flags/RU.svg');
    margin-right: 5px;
    border-radius: 0;
}
:root [data-icon="lang_en-US"]:before
{
    background-image: url('../images/flags/US.svg');
    margin-right: 5px;
    border-radius: 0;
}

/*Меню выбора языка*/
.btn.dropdown-toggle {
    color: #ffffff;
    border: none;
}

/*Страница авторизации*/
.site-login {
    max-width: 320px;
    margin: auto;
}

main > .container,
main > .container-fluid {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}


.ct-chart {
    position: relative;
}
.ct-legend {
    position: relative;
    z-index: 10;
    list-style: none;
    text-align: center;
}
.ct-legend li {
    position: relative;
    padding-left: 23px;
    margin-right: 10px;
    margin-bottom: 3px;
    cursor: pointer;
    display: inline-block;
}
.ct-legend li:before {
    width: 12px;
    height: 12px;
    position: absolute;
    left: 0;
    content: '';
    border: 3px solid transparent;
    border-radius: 2px;
    bottom: 0;
    top: 0;
    margin: auto;
}
.ct-legend li.inactive:before {
    background: transparent;
}
.ct-legend.ct-legend-inside {
    position: absolute;
    top: 0;
    right: 0;
}
.ct-legend.ct-legend-inside li{
    display: block;
    margin: 0;
}

.ct-legend .ct-series-0:before {
    background-color: #0000FF;
    border-color: #0000FF;
}
.ct-legend .ct-series-1:before {
    background-color: #f05b4f;
    border-color: #f05b4f;
}
.ct-legend .ct-series-2:before {
    background-color: #f4c63d;
    border-color: #f4c63d;
}
.ct-legend .ct-series-3:before {
    background-color: #d17905;
    border-color: #d17905;
}
.ct-legend .ct-series-4:before {
    background-color: #453d3f;
    border-color: #453d3f;
}

.ct-chart-line-multipleseries .ct-legend .ct-series-0:before {
   background-color: #0000FF;
   border-color: #0000FF;
}

.ct-chart-line-multipleseries .ct-legend .ct-series-1:before {
   background-color: #f4c63d;
   border-color: #f4c63d;
}

.ct-chart-line-multipleseries .ct-legend li.inactive:before {
   background: transparent;
 }

.crazyPink li.ct-series-0:before {
   background-color: #0000FF;
   border-color: #0000FF;
}

.crazyPink li.ct-series-1:before {
   background-color: #E91E63;
   border-color: #E91E63;
}

.crazyPink li.ct-series-2:before {
   background-color: #F06292;
   border-color: #F06292;
}
.crazyPink li.inactive:before {
   background-color: transparent;
}

.crazyPink ~ svg .ct-series-a .ct-line, .crazyPink ~ svg .ct-series-a .ct-point {
   stroke: #0000FF;
}

.crazyPink ~ svg .ct-series-b .ct-line, .crazyPink ~ svg .ct-series-b .ct-point {
   stroke: #E91E63;
}

.ct-series-a .ct-point, .ct-series-a .ct-line, .ct-series-a .ct-bar, .ct-series-a .ct-slice-donut {
    stroke: #0000FF;}
.ct-series-a .ct-slice-pie, .ct-series-a .ct-slice-donut-solid, .ct-series-a .ct-area {
    fill: #0000FF; }


/*Список пиров*/
#server_peers .peer 
{
    width: 3em;
    height: 3em;
    box-sizing: border-box;
    margin: 1px;
    text-align: center;
    position: relative;
}
#server_peers [data-peer].peer::before
{
    content: '№' attr(data-peer);
    font-size: 0.7em;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0.1em;
    margin: auto;
    line-height: 1em;
} 

/*Список пиров*/
.progress 
{
    position: relative;
    min-width: 8em;
}
.progress span 
{
    font-size: 0.9em;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: #FFFFFF;
    pointer-events: none;
}

/*Графики*/
div[data-graph][data-title]:before
{
    content: attr(data-title);
    font-size: 1.5em;

}

/*Кнопка я аяксом*/
.btn.ajax-link:not(.disabled) .spinner-border
{
    display: none;
}

/*Лог демона*/
.site-logdaemon pre
{
    white-space: pre-line;
}

/*Перенос длинных текстов без пробелов*/
.break-word {
    word-break: break-word;
}