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

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

/* Стили из админки */
input[type="checkbox"],
input[type="radio"]
    {
    vertical-align: -2px;
    }

.edited {
    min-width: 100px;
    min-height: 20px;
    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%;
    }
    
.users-groups
    {
    margin-bottom: 30px;
    }
    
    .users-groups .user-name
        {
        margin-right: 10px;
        }

table th .sort
    {
    color: #337ab7;
    cursor: pointer;
    }
 
table th .sort.selected,
table th .sort.selected:hover
    {
    color: #03772E;
    text-decoration: underline;
    }
    
    table th .sort.selected.asc
        {
        color: #03772E;
        }
    table th .sort.selected.desc
        {
        color: #C02B2A;
        }
        
/* таблица групп кампаний */    
table.groups
    {
    white-space: nowrap;
    }
    
table.groups thead th.stat
    {
    width: 1px;
    text-align: right;
    font-family: monospace;
    }
    
table.groups tbody tr.group-item
    {
    font-weight: bold;
    background-color: #f9f9f9;
    }

    table.groups tbody tr.campaign-item
        {
        display: none;
        }
        
        table.groups tbody tr.campaign-item td
            {
            background-color: #fff;
            }
    
    table.groups tbody tr.campaign-item.open
        {
        display: table-row;
        }
        
    table.groups tbody td.campaign-item-title
        {
        padding-left: 40px;
        }
        
    table.groups tbody td.stat
        {
        text-align: right;
        font-family: monospace;
        }
        
table.groups tr.disabled,
table.groups tr.disabled-group
{
    opacity: 0.5;
}

.table.groups span.group
    {
    display: inline-block;
    min-width: 12px;
    color: #697075;
    cursor: pointer;
    }
        
    .table.groups span.group b.open
        {
        display: none;
        }
    
    .table.groups span.group.open b.closed
        {
        display: none;
        }
        
    .table.groups span.group.open b.open
        {
        display: inline;
        }
 
    
/* таблица кампаний */
table.campaigns tbody tr td.stat {
    font-family: monospace;
    white-space: nowrap;
    text-align: right;
}

table.campaigns thead th.stat
    {
    width: 1px;
    text-align: right;
    font-family: monospace;
    }

    table.campaigns tbody tr.active td {
        background-color: inherit;
    }
    
    table.campaigns tbody tr td.stat.load-target {
        font-style: italic;
    }
    
.form-group.title .value-show.changed
    {
    color: #076d13;
    text-decoration: underline; 
    }
    
    .form-group .value-notice
        {
        display: none;
        font-style: italic;
        font-size: 12px;
        color: #A0A0A0;
        }
        
    .form-group .geo-notice
        {
        font-style: italic;
        font-size: 12px;
        color: #A0A0A0;
        }

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

    .campaign-title.edited {
        display: inline-block;
        min-width: 600px;
        height: 36px;
        line-height: 36px;
    }
        .campaign-title.edited.was-edited {
            color: #076d13;
            text-decoration: underline; 
        }
    
    .campaign-title.editing {
        margin-left: -7px;
        width: 600px;
    }

input.group-title {
    padding: 0 12px;
    line-height: 34px;
    color: #697075;
}
    
    .group-title.edited {
        display: inline-block;
        padding: 0 13px;
        min-width: 600px;
        height: 36px;
        line-height: 36px;
        color: #337ab7;
        font-weight: bold;
    }
    
    .group-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,
.tracking-action_link
    {
    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
        {
        margin-bottom: 4px;
        }
        
    .tracking-action_link
        {
        color: #0c5c82;
        margin-bottom: 4px;
        }
        
    .form-group.url .value-show a,
    .form-group.tracking_pixels .value-show div.url a
        {
        color: #0c5c82;
        }
        
            .form-group.url .value-show a:hover,
            .form-group.tracking_pixels .value-show div.url a:hover
                {
                text-decoration: underline;
                }


.form-group label.select-item.disabled
    {
    color: #BCBCBC;
    }
        
.btn.btn-primary.save-item,
.btn.btn-primary.cancel-item
    {
    float: none;
    margin: 0;
    }
    
.btn.edit-item
    {
    margin-bottom: 1px;
    padding: 0;
    color: #337ab7;
    font-size: 12px;
    text-decoration: underline;
    }

.form-group .value-edit,
.form-group .save-item,
.form-group .cancel-item
    {
    display: none;
    }

.form-group .value-show.campaign-value,
.form-group .value-show-group
    {
    float: left;
    }
    
    .form-group .value-show.campaign-value
        {
        padding-right: 50px;
        border-right: 4px solid #ccc;
        margin-right: -4px;
        min-width: 150px;
        min-height: 1px;
        }
        
    .form-group .value-show-group
        {
        padding-left: 10px;
        border-left: 4px solid #ccc;
        }
        
        .form-group .value-show-group span
            {
            opacity: 0.65;
            }
        
        .form-group .value-show-group.geo
            {
            float: none;
            padding: 0;
            border-left: none;
            }
            
        .form-group .value-show-group .notice
            {
            margin-top: 4px;
            font-style: italic;
            font-size: 12px;
            color: #A0A0A0;
            }

    
.form-group .value-show span,
.form-group .value-show-group span
    {
    font-size: 13px;
    color: #000000;
    }
    
    .form-group .value-show-group b,
    .form-group .value-show b
        {
        color: #23527c;
        }
    
.form-group.geo.group-geo .value-show-group.geo,
.form-group.geo.group-geo.null-value .value-show
    {
    display: none;
    }
.form-group.geo.group-geo.null-value .value-show-group.geo
    {
    display: block;
    }
    
    
.form-group.tracking-action
    {
    
    }
        

.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,
.form-control.order-sum
    {
    display: inline;
    }
    
        .form-control.date-value
            {
            width: 110px;
            }
    
        .form-control.price,
        .form-control.order-sum
            {
            width: 60px;
            }
            
            .form-control.price:invalid ,
            .form-control.order-sum:invalid,
            .form-control.money-limit-total:invalid,
            .form-control.limit:invalid
                {
                color: #C02B2A;
                }
            
            
        .form-control.money-limit-total
            {
            width: 100px;
            }
            
        .form-control.limit
            {
            width: 70px;
            margin-bottom: 4px;
            }
    
.form-group label.title-field
    {
    margin-right: 10px;
    }
    
    .panel-heading label.title-field
        {
        display: none;
        }
    
    .form-group label.title-field.changed
        {
        color: #076d13;
        text-decoration: underline; 
        }
    
.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;
    }

/* Баннеры */

.form-group.banners label
    {
    line-height: 34px;
    }
.form-control.banners-status
    {
    float: right;
    width: 120px;
    }
    
    
    table.campaign-banners
        {
        font-family: monospace;
        }
        
    table.campaign-banners thead tr th {
        text-align: right;
    }
    
        table.campaign-banners th .sort {
            color: #337ab7;
        }
    
    .table.campaign-banners tbody tr td
        {
        background-color: #f5f5f5;
        }
        
        .table.campaign-banners tfoot tr.total
            {
            font-weight: bold;
            font-size: 12px;
            }
            
            .table.campaign-banners tfoot tr.total td
                {
                text-align: right;
                }

    
    .table.campaign-banners.active tr.not-active,
    .table.campaign-banners.not-active tr.active
        {
        display: none !important;
        }

    .table.campaign-banners tr.total td:first-child
        {
        font-size: 14px;
        text-align: left;
        }

        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 {
    padding: 10px;
}    
    
    .b-popup__window.preview .b-popup-content {
        min-height: 300px;
        max-height: 800px;
    }
    
    .b-popup-content h2
        {
        color: #000000;
        }
        
        .b-popup-content b
            {
            color: #39B54A;
            }
            
        .b-popup-content span
            {
            font-family: 'RalewayRegular', sans-serif;
            }
            
    .b-popup-content .b-popup-controls
        {
        margin-top: 10px;
        }
    
.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;
        }
    
.group-campaigns
    {
    margin-top: 16px;
    }
  

/* Вкладки статистики */
        
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.sortable thead 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;
    margin-right: 10px;
    min-width: 10px;
    color: #697075;
    cursor: pointer;
    }
    
    .table.table-by-cats tr.cat
        {
        background-color: #f9f9f9;
        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;
        }
        

.table tbody tr td.stat.date
    {
    font-size: 12px;
    }
        
    .table tbody tr td.stat.date span.not-active
        {
        color: #D33E3D;
        }
        
.btn.action-archive
    {
    margin-left: 10px;
    line-height: 12px;
    }
    
    .btn.action-archive.hidden
        {
        display: none;
        }
    
.btn.action-archive.remove
    {
    background-color: #10934A;
    border-color: #10934A;
    }
    
.form-control.campaign-status
    {
    display: inline;
    width: 120px;
    }
    
.table.active tr.not-active,
.table.not-active tr.active,
.table.archive tr.not-archive,
.table.not-archive tr.archive
    {
    display: none !important;
    }
    
.table.common-stat thead tr th:not(:first-child),
.table.common-stat tbody tr td:not(:first-child)
    {
    text-align: right;
    }
    
.table.campaign-banners th,
.table.campaign-banners td
    {
    padding: 4px;
    }

 
/* папап редактирования */

.b-popup__window.edit
    {
    
    }
    
    .b-popup__window.edit h1
    {
    text-align: left;
    font-size: 18px;
    }
    
.b-popup-inner .campaign-visitor-limit
    {
    float: left;
    width: 50%;
    }
    
    .b-popup-inner .campaign-money-limit-values .form-control.limit
        {
        width: 100px;
        }
   
 .form-group-data
    {
    display: none;
    position: relative;
    }
    
    .form-group-data.selected
        {
        display: block;
        }       
 
.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;
    }
    
    