.grid tbody td
{
    vertical-align: middle;
}

.grid-filter .accordion-inner
{
    padding: 0;
}

.grid-filter.table-bordered form,
.grid-filter .accordion-inner form,
.grid-filter.table-bordered .form-actions,
.grid-filter .accordion-inner .form-actions
{
    margin-bottom: 0;
}

.grid-filter form
{
    margin-top: 0px;
}

.grid-filter form .alert
{
    margin-left: 15px;
    margin-right: 15px;
}

.grid-filter form .form-group
{
    padding-left: 10px;
	margin-bottom: 10px;
}

.grid-filter form .form-actions
{
    padding-left: 15px;
}

.grid-filter.table-bordered
{
    margin-bottom: 18px;
}

.grid .filter-row th
{
    padding-right: 16px;
}

.grid .pagination-info
{
    padding-top: 4px;
    text-align: center;
}

.grid .quick-filter-row
{
    border-bottom: 1px solid #DDD;
}

.grid .quick-filter-row form,
.grid .quick-filter-row .form-group
{
    margin: 0;
}

.grid .filter-row input
{
    margin: 0;
    width: 100%;
}

.grid-pager a.active
{
    cursor: default;
}

.grid-footer .btn-toolbar
{
    margin: 0;
    height: 34px;
}

.grid th.sortable
{
    cursor: pointer;
    padding-right: 20px;
    background-image: url(/cassette.axd/file/Content/Piatka.Mvc/images/sortable-307311e1752fa2c8dc63c91c684f2f1db3bc0a98.gif);
    background-repeat: no-repeat;
    background-position: center right;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

.grid th.sortAsc,
.grid th.sortDesc
{
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: center right;
}

.grid th.sortAsc,
.grid th.sortable.sortAsc
{
    background-image: url(/cassette.axd/file/Content/Piatka.Mvc/images/desc-4177aef38e79be4088aca7350ef215cc053c3c9a.gif);
}

.grid th.sortDesc,
.grid th.sortable.sortDesc
{
    background-image: url(/cassette.axd/file/Content/Piatka.Mvc/images/asc-05fa1fbc4b6541c3e8176d235766fa0e411e9931.gif);
}

.grid .action-column
{
    white-space: nowrap;
    border-left: none;
}

/* aby w FF i IE działało nowrap */
.grid .action-column .btn-group .btn
{
    margin-left: -5px;
    float: none;
}

.grid .action-column .btn-group > .btn + .dropdown-toggle
{
	padding-left: 10px;
	padding-right: 10px;
}

.grid .table-bordered tbody:last-child tr:last-child td:first-child
{
    border-radius: 0;
}

.grid .table tbody tr.edit td,
.grid .table-striped tbody tr.edit td,
.grid .table tbody tr.edit:hover td
{
    background-color: transparent;
}

.grid .table tbody tr[role="button"]
{
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.grid .table tbody tr[role="button"]:hover td
{
    color: white;
    background-color: #08C;
    border-color: #08C;
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.grid tbody tr.edit td,
.grid .table-condensed tbody tr.edit td
{
    padding: 0;
}

.grid tbody tr.edit td > div > form,
.grid tbody tr.edit td > div > form .form-actions
{
    margin-bottom: 0;
}

.grid tbody tr.edit td > div > form .alert
{
    margin-left: 4px;
    margin-right: 4px;
}

.grid tbody tr.edit td > div > form legend
{
    visibility: hidden;
    display: none;
}

/* styl dla :hover koliduje z tym efektem */
.table tbody tr.ui-effects-hightlight:hover td,
.table-striped tbody tr.ui-effects-hightlight:nth-child(odd) td
{
    background-color: inherit;
}

.table tbody tr.active-row td,
.table-striped tbody tr.active-row:nth-child(odd) td
{
    background-color: #fcf8e3;
}

.table tbody tr.active-row:hover td
{
    background-color: #fbeed5;
}

.grid thead, .grid tbody, .grid tfoot
{
    background-color: white;
}

.table tbody tr[role="button"]:hover td
{
    color: white;
    background-color: #08C;
    border-color: #08C;
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
}