/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
@mixin grid {
    .v-grid-cell.centeralign {
        text-align: center;
    }

    .v-grid-cell.leftalign {
        text-align: left;
    }

    .v-grid-cell.rightalign {
        text-align: right;
    }

    .v-grid-cell {
        font-size: $v-font-size--small !important
    }

    .v-grid-cell.frozen {
        box-shadow: none !important;
    }

    .v-grid-cell.frozen+th {
        border-left: $v-grid-border-size solid $widget-border-color;
    }

    .v-button-borderless-colored {
        color: inherit;
    }
    
    .icon-cell {
		text-align: center;
    }

    .fullSize .v-gridlayout-slot {
        height: 100% !important;
    }

    .grid-row-border .v-grid-body tr {
        border-top: 1px solid $widget-border-color
    }

    .grid-row-border .v-grid-body tr:first-child,
    .grid-row-border .v-grid-body .v-grid-row-selected {
        border-top: none
    }

    .v-grid-row-selected>.v-grid-cell {
        color: #efe7f1;
    }

    //Row color - installed
    .v-grid-row.highlight-green,
    .v-grid-row.highlight-green>td,
    .v-grid-row.highlight-green .v-grid-cell {
        @include valo-gradient($installed-row-color);
    }

    //Row color - assigned
    .v-grid-row.highlight-orange,
    .v-grid-row.highlight-orange>td,
    .v-grid-row.highlight-orange .v-grid-cell {
        @include valo-gradient($assigned-row-color);
    }

    .multi-selection-grid .v-grid-cell {
        user-select: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -o-user-select: none;
        -ms-user-select: none;
    }

    .drag-drop-counter {
        padding: 0.2em 0.5em;
        background-color: red;
        color: white;
        border-radius: 0.5em;
        font-weight: bold;
        position: absolute;
        top: -0.5em;
        left: -0.5em;
        z-index: 14;
    }
}