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

.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;
        }

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

.edited {
    min-width: 100px;
    min-height: 20px;
    /*border-bottom: 1px dotted #ccc;*/
    cursor: pointer;
}

input.editing {
    display: none;
    background-color: transparent;
    border: 1px solid #ccc;
}

.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.title
    {
    font-size: 16px;
    }

input.campaign-title {
    padding: 0 12px;
    line-height: 34px;
    color: #697075;
}

    .campaign-title.edited {
        display: inline-block;
        padding: 0 13px;
        min-width: 600px;
        height: 36px;
        line-height: 36px;
        color: #337ab7;
        font-weight: bold;
    }
    
    .campaign-title.editing {
        margin-left: 4px;
        width: 600px;
    }    
    
 .form-control.user-id
    {
    display: inline-block;
    width: 250px; 
    }
    
    .user-new
        {
        display: none;
        margin-left: 10px;
        }
        
        .user-new input
            {
            display: inline;
            width: 300px;
            }
    
.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;
    }
        
.btn.btn-primary.save-item,
.btn.btn-primary.cancel-item
    {
    float: none;
    margin: 0;
    }

.form-group .value-edit,
.form-group .save-item,
.form-group .cancel-item
    {
    display: none;
    }
    
.form-group .value-show span
    {
    font-size: 13px;
    color: #000000;
    }
    
    .form-group .value-show b
        {
        color: #23527c;
        }
    
    
    .form-group.state-edit .value-show,
    .form-group.state-edit .edit-item
        {
        display: none;
        }

    .form-group.state-edit .value-edit
        {
        display: block;
        }
        
    .form-group.state-edit .save-item,
    .form-group.state-edit .cancel-item
        {
        display: inline-block;
        }



.panel-heading h1
    {
    display: inline-block;
    }

.panel-heading__controls
    {
    float: right;    
    }
    
.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_item .add-row
    {
    display: inline;
    }
    
.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%;
    }
    
.form-group .tracking_pixels_urls .delete-item {
    float: right;
    margin-right: -20px;
    height: 32px;
    width: 15px;
    font-size: 27px;
    line-height: 32px;
    vertical-align: -4px;
    color: #383838;
    cursor: pointer;
}


.form-control#targeting_geo_country
    {
    display: inline-block;
    width: 200px;
    margin-bottom: 6px;
    margin-right: 4px;
    }
    
.geo_country .b-exclude label
    {
    font-weight: normal;
    font-size: 13px;
    }

    .geo_region,
    .geo_city
    {
        float: left;
        padding: 4px 6px 0;
        margin-bottom: 5px;
        width: 100%;
        border: 1px solid #CCC;
        border-radius: 4px;
    }
    
    .geo_region .b-exclude,
    .geo_city .b-exclude
    {
        float: right;
    }
    
    .geo_region-city .filters-select
    {
        float: left;
        padding-right: 3px;
        width: 50%;
        height: 200px;
    }
    
    .geo_region-city .filters-values {
        float: right;
        padding-left: 3px;
        width: 50%;
        height: 200px;
    }
    
    .geo_region-city .region-val-geo {
        line-height: 32px;
    }
    
        .geo_region #region-filter {
            display: inline-block;
            float: none;
            margin-right: 0;
        }
        
        .geo_region-city .filters-select .filter {
            margin-bottom: 8px;
        }
    
    .geo_region-city .filters-select .list-filters-wrap {
        display: inline-block;
        width: 100%;
        border: 1px solid #CCCCCC;
        border-radius: 4px;
    }
    
        .geo_region-city .list-filter {
            padding-left: 4px;
            height: 150px;
            overflow-x: hidden;
            overflow-y: scroll;
        }
        
            .geo_region-city .list-filter label,
            .geo_region-city .values-string-list label
                {
                font-weight: normal;
                }
                
            .geo_region-city .values-string-list {
                padding: 2px 6px;
                height: 194px;
                min-height: 34px;
                border: 1px solid #CCCCCC;
                border-radius: 4px;
                overflow-y: scroll;
            }

 
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 b
            {
            color: #39B54A;
            }
            
        .b-popup-content span
            {
            font-family: 'RalewayRegular', sans-serif;
            }
    
.b-popup__window.preview .form-group {
    margin-bottom: 0;
}

    .b-popup__window.preview .banner-img {
        text-align: center;
    }

    .b-popup__window.preview .form-group .controls {
        display: none;
    }

.form-group.banners .form-pattern,
.form-group.banners input#img
    {
    display: none;
    }
    
    .form-group .image-controls,
    .form-group .image-wrap
        {
        margin-bottom: 5px;
        }
        
        .form-group .image-wrap
            {
            display: none;
            padding: 10px 0;
            text-align: center;
            }
    
    .form-group .form-control.banner-size
        {
        display: inline-block;
        width: 170px;
        }
        
    .form-group .btn.select-image
        {
        float: right;
        }
    