/* BASE */
.rts-grid {
    background: #FFF;
}
.rts-grid .ag-header {
    border-bottom: 1px solid #e6e6e6;
}
.rts-grid .ag-body {

}
.rts-grid .ag-header {
    z-index: 1;
    background: #ffffff;
    color: #a8a8a8;
}
.rts-grid .ag-header-cell-label .ag-header-cell-text, .ag-header-group-text {
    line-height: 42px;
}
.rts-grid .ag-header-cell .ag-header-icon {
    margin-top: 9px;
}
.rts-grid .ag-header-group-cell-label {
    font-weight: bold;
}
.rts-grid .ag-header-cell svg, .rts-grid .ag-header-group-cell-label svg {
    fill: #a8a8a8;
    cursor: pointer;
}
.rts-grid .ag-header-cell-label .ag-header-cell-text, .ag-header-group-text {
    line-height: 42px;
}
.rts-grid .ag-row .ag-cell-value, .rts-grid .ag-group-cell-entire-row {
    line-height: 48px;
    padding: 0 8px;
}
.rts-grid .ag-group-cell-entire-row svg {
    margin-right: 10px;
}
.rts-grid .ag-row {
    border-top: 0px;
    border-bottom: 1px solid #eee;
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rts-grid .ag-row .ag-group-expand {
    margin-right: 10px;
}
.rts-grid .ag-row:hover {
    background: #f1f1f1;
}
.rts-grid .numeric-cell-value {
    text-align: right;
}

/* MENU */
.rts-grid .ag-menu {
    background: #FFF;
    box-shadow: 0 0 20px 0 rgba(0,0,0,.2), 0 0 2px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.14);
    z-index: 1;
    margin-top: -9px;
}
.rts-grid .ag-menu .ag-tab-header {
    background: #fafafa;
    height: 42px;
    border-bottom: 2px solid #e6e6e6;
}
.rts-grid .ag-menu .ag-tab-header svg {
    margin-top: 19px;
    fill: #a8a8a8;
}
.rts-grid .ag-menu .ag-tab.ag-tab-selected svg, .rts-grid .ag-menu .ag-tab:hover svg {
    fill: #666;
}
.rts-grid .ag-tab-body .ag-filter-header-container .ag-filter-filter {
    width: 100%;
    margin: 0;
    border: 0px;
    background: #ebebeb;
    height: 32px;
    padding: 0 10px;
}
.rts-grid .ag-menu .ag-filter-header-container label, .rts-grid .ag-menu .ag-filter-item {
    padding: 0 10px;
}
.rts-grid .ag-menu .ag-tab {
    padding: 0 10px;
    cursor: pointer;
}
.rts-grid .ag-menu .ag-menu-option {
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    display: block;
}
.rts-grid .ag-menu .ag-menu-option {
    cursor: pointer;
}
.rts-grid .ag-menu .ag-menu-option:hover {
    background: #ebebeb;
}
.rts-grid .ag-menu .ag-menu-option .ag-menu-option-icon,
.rts-grid .ag-menu .ag-menu-option .ag-menu-option-text,
.rts-grid .ag-menu .ag-menu-option .ag-menu-option-shortcut {
    padding: 0 5px;
}

/* LOADING */
.rts-grid .loading-circle {
    color: #4285f4;
    font-size: 60px;
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

/* GROUPING */
.rts-grid .ag-row-group, .rts-grid .ag-row-group:hover {
    background-color: #fafafa;
    color: #444;
    font-weight: bold;
}
.rts-grid .ag-row-group-panel {
    background-color: #FAFAFA;
    border-bottom: 1px solid #E0E0E0;
    line-height: 54px;
    padding: 0 10px;
}
.rts-grid .ag-row-group-panel .ag-row-group-empty-message {
    color: #a8a8a8;
}
.rts-grid .ag-row-group-panel .ag-row-group-icon {
    display: none;
}
.rts-grid .ag-row-group-panel .ag-row-group-cell {
    background-color: #FFF;
    padding: 5px 10px;
    margin: 0px 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border-left: 2px solid #4285f4;
}
.rts-grid .ag-row-group-panel .ag-row-group-cell .ag-row-group-cell-button {
    margin-left: 5px;
    opacity: 0.5;
    cursor: pointer;
}
.rts-grid .ag-row-group-panel .ag-row-group-cell .ag-row-group-cell-button:hover {
    opacity: 1;
}

/*Workaround per scrollbar orizzontale*/
.ag-body-viewport .ag-body-container {
    min-height: 1px !important;
}

.mini-grid {
    height: 124px;
}

.rts-grid-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rts-grid-placeholder .fa {
    font-size: 40px;
}
.ag-floating-filter-input {
    width: 95% !important;
}
