/* Таблица стилей к странице офферов-объявлений */

.b-content__work.inner
    {
    max-width: 1240px;
    margin: 0 auto;
    }
    
.b-content__work.inner input[type="checkbox"]
    {
    vertical-align: -2px;
    cursor: pointer;
    }

.b-pattern
    {
    display: none;
    }
    
.panel-heading h1
    {
    padding: 0 0 10px 0;
    }
    
.edited
    {
    min-width: 100px;
    min-height: 20px;
    border-bottom: 1px dotted #ccc;
    cursor: pointer;
    }
    
    .b-data-item_add-list .edited,
    .b-data-item_add-list br,
    .b-data-item_add-list input.is-active
        {
        display: none !important;
        }
    
    .edited span
        {
        font-weight: bold;
        color: #697075;
        }

    .edited b
        {
        font-weight: bold;
        color: #009444;
        }
    
    
.edited.was-edited
    {
    border-bottom: 2px dashed #613101;
    }
    
.edited.not-valid
    {
    color: red !important;
    }
    
input.editing
    {
    display: none;
    background-color: transparent;
    border: 1px solid #ccc;
    }
    
    input.editing.not-valid
        {
        color: red !important;
        }
    
    .b-data-item_add-list input.editing
        {
        display: block;
        padding-left: 5px;
        background-color: #fff;
        }
        
    
.b-clear
    {
    clear: both;
    }
    
input.offer-title
    {
    width: 600px;
    line-height: 34px;
    color: #697075;
    }
    
    .offer-title.edited
        {
        display: inline-block;
        min-width: 300px;
        height: 30px;
        line-height: 22px;
        }

.form-group.left
    {
    float: left;
    width: 50%;
    padding: 2px;
    }

.b-switch
    {

    }

.b-switch_header
    {
    height: 36px;
    }

    .b-switch_header ul
        {
        margin-left: 10px;
        }

    .b-switch_header li
        {
        float: left;
        padding: 0 15px;
        border: solid 1px #ccc;
        border-radius: 4px 4px 0 0;
        height: 36px;
        line-height: 34px;
        margin-left: -1px;
        cursor: pointer;
        }

        .b-switch_header li.active
            {
            color: #0071BC;
            border-bottom: solid 1px #fff;
            }

.b-switch_content
    {
    margin-top: -1px;
    border: solid 1px #ccc;
    border-radius: 4px;
    }

    .b-switch_item
        {
        display: none;
        }

    .b-switch_item.active
        {
        display: block;
        }
                        
    
.b-data-item
    {
    
    }
    
.b-data-item_list-info,
.b-data-item_list-stat
    {
    float: left;
    width: 50%;
    }
    
    .b-data-item_list-stat-content
        {
        margin: 5px 5px 5px 0;
        padding: 4px;
        background-color: #fff;
        border-radius: 4px;
        }
    
    .b-data-item.settings label.title
        {
        display: block;
        }
        
    .b-data-item.settings .b-data-item_inner
        {
        border: solid 1px #ccc;
        border-radius: 4px;
        }
    
    .b-data-item.active .ads-list-item.disabled,
    .b-data-item.active .landing-item.disabled
        {
        display: none;
        }
    
    .b-data-item.disabled .ads-list-item,
    .b-data-item.disabled .landing-item
        {
        display: none;
        }
        
        .b-data-item.disabled .ads-list-item.disabled,
        .b-data-item.disabled .landing-item.disabled
            {
            display: block;
            }
            
    .b-data-item_inner
        {
        padding: 5px;
        }

        
.b-data-item_list-tpl-stat
    {
    margin-right: 5px;
    background-color: #fff;
    border-radius: 4px;
    padding: 4px;
    }
    
    .b-data-item_list-tpl-stat.state-loading
        {
        opacity: 0.5;
        background: #fff url(../img/ajax-loader-transp.gif) center center no-repeat;
        }
    
    .b-data-item_list-tpl-header
        {
        padding-bottom: 5px;
        border-bottom: solid 1px #ccc;
        }
        
        .b-data-item_list-tpl-header label
            {
            margin-top: 5px;
            margin-bottom: 6px;
            }
            
        .b-data-item_list-tpl-header .btn.btn-primary
            {
            line-height: 16px;
            }
        
        
.language-rating
    {
    float: left;
    width: 50%;
    }
        
    select.offer-language
        {
        display: inline;
        margin: 5px 47px 0 10px;
        width: 110px;
        }

    select.offer-rating
        {
        display: inline;
        width: 95px;
        margin: 5px 0 0 10px;
        }
        
.b-categories
    {
    float: left;
    width: 50%;
    }
    
.category-item
    {
    
    }
    
    .category-item select
        {
        float: left;
        margin: 2px 0 0 10px;
        width: 200px;
        }
        
        .delete-category-item
            {
            display: inline-block;
            margin: 7px 0 0 5px;
            height: 25px;
            font-size: 27px;
            line-height: 25px;
            color: #383838;
            cursor: pointer;
            }
        
.b-categories label
    {
    margin: 8px 0 0 10px;
    }
    
.b-categories .add-row
    {
    margin: 5px 0 0 10px;
    }
    
.b-controls
    {
    position: relative;
    margin: 15px 19px 15px 0;
    text-align: center;
    }
    
    .b-controls_fade
        {
        display: none;
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        opacity: 0.5;
        }
        
        .b-controls.disabled .b-controls_fade
            {
            display: block;
            }
        
.b-data-item.adds .header,
.b-data-item.landings .header,
.b-data-item.orders .header,
.b-data-item.keys .header
    {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: solid 1px #ccc;
    }
    
    .b-data-item.orders .header,
    .b-data-item.keys .header
        {
        border: none;
        }
    
    .b-data-item.orders .header label,
    .b-data-item.keys .header label
        {
        line-height: 30px;
        margin-bottom: 0;
        }
    
    .b-data-item_action
        {
        display: none;
        }
        
    .b-data-item_add-list
        {
        display: none;
        border-top: 2px solid #ccc;
        }
        
        .b-data-item_add-list .was-edited
            {
            background-color: #F9F9F9 !important;
            }
        
        .b-data-item_add-list-controls
            {
            height: 25px;
            }
            
            .b-data-item_add-list-controls .btn
                {
                float: right;
                }
                
                .b-data-item_add-list-controls .btn.cancel
                    {
                    height: 23px;
                    font-size: 12px;
                    line-height: 10px;
                    }
    
    select.items-select,
    select.tpls-select
        {
        display: inline-block;
        margin: 0 15px;
        width: 120px;
        height: 30px;
        line-height: 15px;
        }
        
    select.items-action,
    select.tpls-action
        {
        display: inline-block;
        padding-left: 5px;
        width: 175px;
        height: 30px;
        line-height: 15px;
        }
            
    .ads-list .edited
        {
        display: inline-block;
        }
        
    .ads-list input.is-active
        {
        float: left;
        }
        
    .ads-list-item
        {
        margin: 10px 0;
        background-color: #F9F9F9;
        padding-left: 5px;
        }
        
        .ads-list-item.hidden
            {
            display: none;
            }

        .ads-list-item.disabled
            {
            opacity: 0.5;
            }

        .ads-list-item.was-edited
            {
            background-color: #fbf4df;
            }
            
            .ads-list-item.was-edited input[type="text"]
                {
                margin-bottom: 1px;
                }
        
        .ads-list-item.new
            {
            background-color: #ECFDF0;
            }

    .add-content
        {
        position: relative;
        margin-left: 25px;
        padding: 4px;
        }

        .image-wrap
            {
            float: left;
            width:100px;
            height:100px;
            overflow: hidden;
            cursor: pointer;
            }

            .image-wrap.is-loading
                {
                background: #FFF url('../img/gif-load.gif') center center no-repeat;
                }
                
                .image-wrap.is-loading img
                    {
                    display: none;
                    }
            
            .image-wrap.was-edited
                {
                border: 2px dashed #613101;
                }
    
    .add-fields
        {
        margin-left: 120px;
        }

            .add-fields .title
                {
                font-weight: bold;
                }
                
                .add-fields .title.was-edited,
                .add-fields .desc.was-edited
                    {
                    line-height: 18px;
                    }
                
            .add-fields .price
                {
                color: #337ab7;
                }
                
            .add-fields .add-id
                {
                position: absolute;
                left: 125px;
                bottom: 5px;
                font-size: 12px;
                }
                
            .add-fields .editing
                {
                margin-top: -1px;
                width: 100%;
                height: 22px;
                line-height: 18px;
                }

.offer-enable
    {
    margin-bottom: 0;
    }
                
.landing-item,
.order-item
    {
    margin: 10px 0 25px 0;
    padding: 2px 0 5px 4px;
    background-color: #F9F9F9;
    border: 1px #CCC solid;
    border-radius: 4px;
    }

    .landing-item.hidden
        {
        display: none;
        }
    
    .landing-item.disabled
        {
        opacity: 0.5;
        }

    .landing-item.was-edited
        {
        background-color: #fbf4df;
        }
        
    .landing-item.new
        {
        background-color: #ECFDF0;
        }
        
        .landing-title.editing
            {
            margin-bottom: 5px;
            width: 96%;
            line-height: 19px;
            font-weight: bold;
            }
            
            .b-data-item_add-list .landing-title.editing
                {
                display: inline-block;
                margin-top: 10px;
                margin-left: 15px;
                }
                
            .b-data-item_add-list .landing-item,
            .b-data-item_add-list .ads-list-item
                {
                border: 1px solid #9EC7A9;
                }
            
            .landingdata-item
                {
                margin: 0 10px 5px 15px;
                }
                
                .landing-title.edited
                    {
                    max-width: 100%;
                    vertical-align: -11px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    }
                
                .landing-link
                    {
                    display: inline-block;
                    color: #337ab7;
                    }
                    
                    .landing-link.edited
                        {
                        max-width: 100%;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        }
                    
                    .landing-link.editing
                        {
                        margin-bottom: 5px;
                        width: 100%;    
                        line-height: 19px;
                        }
                                       
                .landing-title.edited.was-edited,
                .landing-link.edited.was-edited
                    {
                    line-height: 18px;
                    }
                    
                    .landing-partner
                        {
                        display: inline-block;
                        width: 215px;
                        height: 30px;
                        line-height: 15px;
                        background-color: #fff !important;
                        }
                
                .landingdata-item.device label
                    {
                    font-size: 13px;
                    font-weight: normal;
                    }
                
                .landingdata-item.geo .values-string
                    {
                    margin: 0 155px 0 0;
                    background-color: #fff;
                    }
                    
                .landingdata-item.geo .dropdown-menu>li>a
                    {
                    padding: 3px 10px;
                    }
                            
                 
                .landingdata-item.templates
                    {
                    margin-left: 10px;
                    padding: 0 4px;
                    background-color: #fff;
                    }
                    
                    .landingdata-item.templates.hidden
                        {
                        display: none;
                        }

.order-item .field-name
    {
    color: #0071BC;
    
    }
                    
table.table.stats
    {
    font-family: monospace;
    margin-bottom: 0;
    font-size: 13px;
    }
    
    table.table.stats th,
    table.table.stats td
        {
        line-height: 2px;
        border: 1px solid #ddd !important;
        }
        
    table.table.stats th,
    table.table.stats th.period,
    table.table.stats td.period
        {
        /*color: #7D7D7D;*/
        color: #0071BC
        }
        
table.adds tbody tr td.stat {
    font-size: 12px;
    font-family: monospace;
    white-space: nowrap;
}
table.table-striped.adds td.stat span {
    font-weight: normal;
}
        
    

                    
.btn.preview
    {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 20px;
    height: 20px;
    background: url(../img/bg-search.svg) #337ABD no-repeat center;
    border-radius: 4px;
    }
    
table.add-templates span.preview
    {
    margin: 0 2px;
    padding: 0 4px;
    vertical-align: 2px;
    color: #fff;
    background-color: #337ABD;
    border-radius: 4px;
    cursor: pointer;
    }
   
.b-popup__window.preview
    {
    width: 860px;
    min-width: 600px;
    overflow: hidden;
    }
  
    .b-popup__window.preview .button-close
        {
        right: 20px;
        }
    
.b-popup-content
    {
    min-height: 400px;
    max-height: 800px;
    padding: 10px;
    overflow-y: scroll;
    }
    
    .b-popup-content .add-content
        {
        margin-left: 0;
        }
        
        .b-popup-content .ads-list-item
            {
            margin-top: 0;
            }
        
    .b-popup-content .edited
        {
        display: inline-block;
        border: none;
        cursor: default;
        }
        
        .b-popup-content .edited span,
        .b-popup-content .edited b
            {
            color: inherit;
            font-weight: inherit;
            }
        
        
        .b-popup-content a.edited
            {
            display: block;
            color: #0071BC;
            font-size: 14px;
            cursor: pointer;
            }
            

.b-popup-content h2
    {
    margin-bottom: 10px;
    }
        
.b-popup-content h3.land-title
    {
    margin-top: 20px;
    font-weight: bold;
    color: #337ab7;
    }

.b-popup-content .table
    {
    margin-top: 20px;
    width: 100%;
    table-layout: fixed;
    }
    
.b-popup-content .table>thead>tr>th
    {
    padding: 0;
    border-bottom-width: 1px;
    }
    
.b-popup-content .table>tbody>tr>td
    {
    text-align: left !important;
    width: 100%;
    }
    
    .b-popup-content .b-data-item_list-info
        {
        width: auto;
        }
    
    

    
