/* Таблица стилей к странице рекламных кампаний */

.b-content__work
    {
    margin: 0 auto;
    padding-top: 75px;
    max-width: 1240px;
    }
    
    .b-content__work.error .wrapp
        {
        margin: 100px auto;
        min-height: 300px;
        text-align: center;
        }

.switch-data
    {
    margin-bottom: 20px;
    padding-bottom: 10px;
    line-height: 30px;
    border-bottom: 1px solid #BCE8F1;
    }
    
    .switch-item
        {
        padding: 5px;
        border: 1px solid #2E6DA4;
        color: #2E6DA4;
        border-radius: 4px;
        cursor: pointer;
        }
        
        .switch-item:hover
            {
            color: #FFFFFF;
            background-color: #2E6DA4;
            }
        
        .switch-item.selected
            {
            color: #FFFFFF;
            background-color: #2E6DA4;
            }
        
.form-group-data
    {
    display: none;
    position: relative;
    }
    
    .form-group-data.selected
        {
        display: block;
        }
        
    .form-group-data .b-content__loading
        {
        display: none;
        position: absolute;
        width: 100%;
        height: 100%;
        background: #FFF url('../img/gif-load.gif') center center no-repeat;
        opacity: 0.5;
        z-index: 1;
        }

 
.form-group .form-control
    {
    font-family: monospace;
    }

input[type="checkbox"],
input[type="radio"]
    {
    vertical-align: -2px;
    }

.b-left
    {
    float: left;
    padding-right: 5px;
    width: 50%;
    }
    
.b-right
    {
    float: right;
    padding-left: 5px;
    width: 50%;
    }

table.campaigns tbody tr td.stat {
    font-family: monospace;
    white-space: nowrap;
    text-align: right;
}

    table.campaigns tbody tr td.stat.load-target {
        font-style: italic;
    }
    
.form-group.active span
    {
    color: #D93025;
    }
    
    .form-group.active.enabled span
        {
        color: #2CA02C;
        }
    
.form-group.url .value-show,
.form-group.tracking_pixels .value-show div.url
    {
    padding: 5px;
    line-height: 15px;
    font-family: monospace;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    word-wrap: break-word;
    }
    
    .form-group.tracking_pixels .value-show div.url
        {
        line-height: 15px;
        margin-bottom: 4px;
        }


.form-group label.select-item.disabled
    {
    color: #BCBCBC;
    }
    
.form-group .value-show span
    {
    font-size: 13px;
    color: #000000;
    }
    
    .form-group .value-show b
        {
        color: #23527c;
        }


.panel-heading h1
    {
    display: inline-block;
    }
    
.form-control.date-value,
.form-control.price,
.form-control.money-limit-total,
.form-control.limit
    {
    display: inline;
    }
    
        .form-control.date-value
            {
            width: 110px;
            }
    
        .form-control.price,
        .form-control.money-limit-total
            {
            width: 100px;
            }
            
        .form-control.limit
            {
            width: 70px;
            margin-bottom: 4px;
            }
            
            .form-group.campaign-money-limit .form-control.limit
                {
                width: 100px;
                }
    
.form-group label:first-child
    {
    margin-right: 10px;
    }
    
.form-group label.select-item
    {
    font-weight: normal;
    }
    
.form-group .campaign-visitor-limit
    {
    float: left;
    width: 240px;
    }

.form-group .tracking_pixels_item label
    {
    font-weight: normal;
    }
    
.form-group .tracking_pixels_urls .url-item
    {
    margin-bottom: 4px;
    padding-right: 20px;
    height: 34px;
    }
    
.form-group .tracking_pixels_urls input
    {
    float: left;
    width: 100%;
    }
 
table.campaigns tbody tr.disabled
    {
    opacity: 0.5;
    }
            
table.campaign-banners thead tr th {
    text-align: right;
}
            
table.campaign-banners tbody tr td {
    font-size: 12px;
    font-family: monospace;
    white-space: nowrap;
    text-align: right;
}

    table.campaign-banners tbody tr td.stat.load-target {
        font-style: italic;
    }

    table.campaign-banners tbody tr td span.banner-preview
        {
        display: inline-block;
        width: 48px;
        height: 48px;
        cursor: pointer;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        }

.b-popup__window.preview {
    width: auto;
    min-width: 380px;
    overflow: hidden;
}

.b-popup-message
    {
    display: none;
    position: absolute;
    top: 140px;
    left: 25px;
    width: 330px;
    color: #D93025;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    }

.b-popup-content {
    min-height: 300px;
    max-height: 800px;
    padding: 10px;
}
    
    .b-popup-content h2
        {
        color: #000000;
        }
        
        .b-popup-content h2 b
            {
            color: #39B54A;
            }
            
        .b-popup-content h2 span
            {
            font-family: 'RalewayRegular', sans-serif;
            }
    

.b-popup__window.preview .banner-img {
    text-align: center;
}
        
textarea#campaign-stat,
textarea#campaign-stat-total,
textarea#campaign-stat-cats,
textarea#campaign-sites-stat,
textarea#campaign-regions-stat,
textarea#regions-codes,
textarea#cities-codes
    {
    display: none;
    }
    
.chart-graph-stat-info,
.chart-graph-stat-error,
.sites-stats-info,
.sites-stats-error,
.regions-stats-info,
.regions-stats-error
    {
    display: none;
    padding-top: 160px;
    height: 370px;
    text-align: center;
    }
    
#chart-graph-stat
    {
    height: 370px;
    }
    
    
/*
    #table-stat
*/
.b-table_wrapp
    {
    display: none;
    margin-top: 30px;
    }
    
    .table.table-striped,
    .table.table-by-cats
        {
        font-family: monospace;
        }
        
        .table.table-striped thead.sortable tr b
            {
            cursor: pointer;
            }

            .table.table-striped thead.sortable tr b.not-sorted
                {
                cursor: default;
                }
        
            .table.table-striped thead.sortable tr b.selected
                {
                color: #2CA02C;
                }
        
            .table.table-striped thead.sortable tr span
                {
                display: inline-block;
                border-bottom: 2px solid red;
                }
    
        .table.table-striped thead tr b .arrow
            {
            display: none;
            }

        .table.table-striped thead.sortable tr b.selected .arrow.asc,
        .table.table-striped thead.sortable tr b.selected.desc .arrow.desc
            {
            display: inline;
            }

        .table.table-striped thead.sortable tr b.selected .arrow.desc,
        .table.table-striped thead.sortable tr b.selected.desc .arrow.asc
            {
            display: none;
            }
            
        .table.table-striped tbody tr.total
            {
            font-weight: bold;
            }
        
            
.table.table-by-cats span.group
    {
    display: inline-block;
    min-width: 12px;
    color: #697075;
    cursor: pointer;
    }
    
    .table.table-by-cats tr.cat
        {
        background-color: #f9f9f9;
        }
        
        .table.table-by-cats tr.cat td.period
            {
            font-weight: bold;
            }
    
    .table.table-by-cats span.group b.open
        {
        display: none;
        }
    
    .table.table-by-cats span.group.open b.closed
        {
        display: none;
        }
        
    .table.table-by-cats span.group.open b.open
        {
        display: inline;
        }
        
.table.table-by-cats tr.subcat
    {
    display: none;
    }
    
    .table.table-by-cats tr.subcat.open
        {
        display: table-row;
        }
    
    .table.table-by-cats td.subcat-title
        {
        padding-left: 40px;
        }
    
.table.table-by-cats
    {
    white-space: nowrap;
    }
        
    .table.table-by-cats th:not(.period)
        {
        width: 1px;
        text-align: right;
        }

        .table.table-by-cats th.zone-size
            {
            width: 90px;
            }
            
    .table.table-by-cats td.stat
        {
        font-family: monospace;
        text-align: right;
        }
        
        