﻿.kg-main-view {
    width: calc(100% - 247px);
    height: calc(100% - 82px);
    float: left;
    box-sizing: border-box;
    overflow-y: auto;
    margin-top: 82px;
    display: flex;
    animation: fade-in 0.4s ease;
    transition: width 0.4s ease;
}

#main.widescreen .kg-main-view{
    width: calc(100% - 68px);
}

.kg-main-view-main {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 0 32px 32px 32px;
    box-sizing: border-box;
    overflow-y: auto;
}
.kg-main-view .kg-form_default {
    margin-top: 58px;
}
.kg-main-view .kg-instance-form {
    margin-top: 58px;
}
.kg-main-view .kg-instance-form,
.kg-main-view .kg-form_default{
    margin-right: 20px;
}

.kg-main-view .jsgrid-grid-header{
    display:none;
}

.kg-main-view .jsgrid-table tr:first-child{
    border-top: none
}
.kg-main-view .jsgrid-table tr{
    border-bottom: 1px solid rgba(255,255,255,0.5);
}
.kg-main-view .jsgrid-table tr:last-child{
    border-bottom: none
}
.kg-main-view .jsgrid-table td{
    cursor: default;
    background-color: rgba(255,255,255,0.8) !important;
    padding: 0;
    transition:background-color 0.1s linear;
}
.kg-main-view .jsgrid-table td:hover{
    background: rgba(255,255,255,1) !important;
}

.kg-main-view .jsgrid-table td:hover .kg-main__attachment{
    display: block;
}
.kg-main-view .jsgrid-table td:hover .kg-main__remove{
    display: block;
}

.kg-main-view__items{
    border-radius: 5px;
    box-shadow: 3px 1px 3px rgba(0,0,0,0.3);
}
.kg-main-view__toolbar {
    height: 45px;
    margin-bottom: 15px;
}
.kg-main-view__toolbar-button {
    float: left;    
    border: none;
    background-position: center;
    background-size: 24px 24px;
    padding: 12px 20px;
    background: #429ED1;
    vertical-align: middle;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px;
    font-size: 16px;
    width: 142px;
}

.kg-main-view .jsgrid-table{
    width:100% !important;
}

.kg-main__info {
    position: relative;
    margin: 20px;
}

.kg-main__empty-info {
    position: relative;
    margin: 20px;
}
.kg-main__empty-info-text {
    margin: 34px 0;
    color: #555;
}


.jsgrid-grid-body tr:first-child td{
    padding: 0;
}

.kg-main__item {
    display: inline-block;
    vertical-align: middle;
}

.kg-main__name {
    cursor: pointer;
    color:#555;
    text-decoration: underline;
    font-size: large;
}

.kg-main__rating {
    padding-top: 3px;
    font-size: 12px;
    color:#70685A;
}

.kg-main__attachment {
    background: url(/images/icons/clip.png) no-repeat;
    background-size: 16px 16px;
    background-position: center;
    border: 0;
    height: 16px;
    width: 16px;
    vertical-align: top;
    margin-left: 20px;
    cursor: pointer;
    float: right;
    display: none;
}

.kg-main__remove {
    background: url(/images/icons/remove1.png) no-repeat;
    background-size: 16px 16px;
    background-position: center;
    border: 0;
    height: 16px;
    width: 16px;
    vertical-align: top;
    margin-left: 20px;
    cursor: pointer;
    float: right;
    display: none;
}

.kg-main-view__add {

}
.kg-main-view__toolbar-button.kg-main-view__add:before{
    content: url(/images/icons/plus-wight.png);
    width: 16px;
    height: 16px;
}
.kg-main-view__add:hover {
    background: #52aEe1;
}
.kg-main-view__add:active {
    background: #227Ec1;
}
.kg-main-view__add_text-button{
    margin-left: 10px;
}

.kg-main-view__news-input {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color:#333333;
}

.kg-main-view__news-input_visible {
    display: block;
    outline: none;
    background-color: #000000;
    background-color: rgba(0, 0, 0, 0.5);
}

.kg-main-view__news-input .kg-form_row {
    width: -webkit-min-content;
    width: -moz-min-content;
    width: min-content;
    min-width:500px;
    margin: 2% auto;    
    background-color:#FFF;
    box-shadow: 0px 1px 26px -3px #777777;
}

.kg-main-info__image {
    height: 64px;
    width: 64px;    
    vertical-align: middle;
    border-radius: 5px; 
    background-size: 100%;    
}

.kg-main-view__news-filter-button {
    float: right;    
    margin-bottom: 20px;
    border: none;      
    padding: 9px 20px;
    background-color: #429ED1;
    vertical-align: middle;
    color: #fff;    
    cursor: pointer;    
}

.kg-main-view__news-filter-button_active {
    background-color: lightblue;
}

.kg-main__publisher {
    display: inline-block; 
    color: #C80000;
}

.kg-main__publish-date {
    font-size: 0.8em;
    color: #70685A; 
}

.kg-main__remove-news {
    background: url(/images/icons/remove1.png) no-repeat;
    background-size: 16px 16px;
    background-position: center;
    border: 0;
    height: 16px;
    width: 16px;
    vertical-align: top;    
    cursor: pointer;
    float: right;
    display: none;
    margin-top: 20px;
    margin-right: 20px;
}

.kg-main-view__items td:hover .kg-main__remove-news{
    display: inline-block;
}