﻿
md-table-container.fixed-header {
    overflow: hidden;
    width: 100%;
}

    md-table-container.fixed-header table.md-table {
        table-layout: fixed;
    }

table.md-table.vg-md-row-select td.md-cell:nth-child(2),
table.md-table.vg-md-row-select th.md-column:nth-child(2) {
    padding: 0 24px 0 0 !important;
}

md-table-container.condensed table.md-table.md-row-select td.md-cell:nth-child(n+3):nth-last-child(n+2),
md-table-container.condensed table.md-table.md-row-select th.md-column:nth-child(n+3):nth-last-child(n+2),
md-table-container.condensed table.md-table:not(.md-row-select):not(.vg-md-row-select) td.md-cell:nth-child(n+2):nth-last-child(n+2),
md-table-container.condensed table.md-table:not(.md-row-select):not(.vg-md-row-select) th.md-column:nth-child(n+2):nth-last-child(n+2),
md-table-container.condensed table.md-table.vg-md-row-select td.md-cell:nth-child(n+3):nth-last-child(n+2),
md-table-container.condensed table.md-table.vg-md-row-select th.md-column:nth-child(n+3):nth-last-child(n+2),
md-table-container.condensed table.md-table:not(.vg-md-row-select):not(.md-row-select) td.md-cell:nth-child(n+2):nth-last-child(n+2),
md-table-container.condensed table.md-table:not(.vg-md-row-select):not(.md-row-select) th.md-column:nth-child(n+2):nth-last-child(n+2) {
    padding: 0 24px 0 0;
}

md-table-container.fixed-header table.md-table.md-row-select td.md-cell:first-child,
md-table-container.fixed-header table.md-table.md-row-select th.md-column:first-child,
md-table-container.fixed-header table.md-table.vg-md-row-select td.md-cell:first-child,
md-table-container.fixed-header table.md-table.vg-md-row-select th.md-column:first-child {
    width: 56px;
    padding-left: 0;
    padding-right: 0;
    overflow: visible; /*so that ripple effect is not getting cutoff*/
    text-align: center;
}

table.md-table.vg-md-row-select tbody.md-body > tr.md-row.md-selected {
    background-color: #f5f5f5;
}

table.md-table.vg-md-row-select tbody.md-body > tr.md-row {
    transition: background-color .2s;
}

    table.md-table.vg-md-row-select tbody.md-body > tr.md-row:not([disabled]):hover {
        background-color: #eee !important;
    }

md-table-container.fixed-header td,
md-table-container.fixed-header th {
    width: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

    md-table-container.fixed-header td p {
        margin: 0;
    }

table.md-table td.md-cell.column-actions:last-child,
table.md-table th.md-column.column-actions:last-child {
    padding-right: 10px;
}

table.md-table .column-actions.column-actions-1 {
    width: 40px;
}

table.md-table .column-actions.column-actions-2 {
    width: 80px;
}

table.md-table .column-actions.column-actions-3 {
    width: 110px;
}

table.md-table.multiline tbody.md-body > tr.md-row {
    height: 56px;
}


md-table-pagination.no-pagination .buttons .md-button {
    display: none;
}

md-table-pagination.no-pagination {
    padding-right: 36px;
}

md-toolbar.md-table-toolbar .md-toolbar-tools > ng-transclude .md-button.md-icon-button {
    margin: 0;
}

md-table-container.fixed-header .md-virtual-repeat-container .md-virtual-repeat-scroller{
    overflow-y: scroll;
}