/*
** table
**/
table.dataTable,
table.detailsTable {
    background-color: #fff;
    width: 100% !important;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid #afafaf;
}
table.detailsTable th:nth-child(1) {
    width: 20%;
}
table.dataTable tr.dark {
    background-color: #f7f7f7;
}
table.dataTable th,
table.detailsTable th {
    background-color: #c1c1c1;
    padding: 5px 15px 5px 5px;
    border: 1px solid #afafaf;
    position: relative;
}
table.dataTable th.last {
    border-right: 1px solid #d3d3d3;
}
table.dataTable th.selectCol {
    width: 1%;
}

table.dataTable th span.grid-order-groups {
    position: absolute;
    right: 0;
    top: 20%;
    width: 19px;
    height: 19px;
}

table.dataTable th .grid-order-groups { background: url('../gfx/tables/sort_both.png') no-repeat center right; }
table.dataTable th .grid-order-groups.active.asc {  background: url('../gfx/tables/sort_asc.png') no-repeat center right; }
table.dataTable th .grid-order-groups.active.desc {  background: url('../gfx/tables/sort_desc.png') no-repeat center right; }

table.dataTable td,
table.detailsTable td {
    padding: 5px;
    border: 1px solid #afafaf;
}
table.tcenter th,
table.tcenter td {
    text-align: center;
}
table.tright th,
table.tright td {
    text-align: right;
}
table.tleft th,
table.tleft td {
    text-align: left;
}
table.border_bottom_light th {
    border-bottom: 1px solid #ebebeb;
}
table.dataTable td.actionButtons {
    width:1%;
    white-space: nowrap;
}
table.dataTable td .actionButton {
    margin: 0 10px;
}
table.dataTable td .actionButton,
table.dataTable td .actionButton * {
    cursor: pointer !important;
}
table.dataTable td .actionButton.del *, table.dataTable td .actionButton.delete * {
    color: #ff0000;
    font-weight: bold !important;
}

/*
 * grid pager
 */
div.grid-pager-container>div>div {
    display: inline-block;
}

div.grid-pager-arrows {
    width: 400px;
    margin: 0 auto;
    text-align: center;
}

div.grid-pager-number {
    margin: 0px 20px;
    vertical-align: bottom;
}

input.grid_pager_page {
    width: 30px;
    margin-bottom: 0 !important;
}

div.grid-pager-info {
    float: right;
}

/*
** table_form
**/
div.table_form {
    margin-top: 10px;
}
div.table_form table.table {
    width: 340px;
    margin-top: 5px;
    vertical-align: top;
    border-collapse: collapse;
    border: 1px solid lightgray;
}
div.table_form div {
    display: inline-block;
    margin-right: 35px;
    vertical-align: top;
}
div.table_form div.double {
    display: block;
    margin-top: 10px;
}
div.table_form div.double table.table {
    width: 720px;
}

/*
** operation
**/
table.table td.operation {
    padding: 0;
}
table.table td.operation a {
    border: none;
    margin: 0;
}

/*
** table a
**/
table.table a {
    font-size: 14px;
}
table.table a.btn {
    font-size: 13px;
}

table.table tr.dark th {
    background-color: #ececec;
}

/*
** odd, even
**/
table.table tr:nth-child(even) {
    background: #fff;
}
table.table tr:nth-child(odd) {
    background: #f7f7f7;
}
table.table.bg_white tr,
table.table.bg_white tr:nth-child(even),
table.table.bg_white tr:nth-child(odd) {
    background-color: #fff;
}

table.table tr:hover,
table.table_holidays tr:hover,
table.table_holidays tr:hover td,
table.table.bg_white tr:hover {
    background-color: #ececec;
}

/*
** no_hover
**/
table.no_hover.white tr:hover:nth-child(even),
table.no_hover.white tr:hover:nth-child(odd) {
    background: #f7f7f7;
}
table.no_hover tr:hover:nth-child(even) {
    background: #fff;
}
table.no_hover tr:hover:nth-child(odd) {
    background: #f7f7f7;
}
table.no_bg tr,
table.no_bg tr:hover,
table.no_bg tr:nth-child(even),
table.no_bg tr:nth-child(odd),
table.no_bg tr:nth-child(even):hover,
table.no_bg tr:nth-child(odd):hover,
table.no_bg tr td {
    background: none;
}

/*
** table_padding
**/
table.table_padding td {
    padding: 10px 5px;
}

/*
** logs
**/
table.table tr.hide {
    display: none;
}
table.table tr.hide td {
    padding: 10px;
}

/*
** white
**/
#container table.white tr {
    background-color: #fff;
}

/*
** td padding
**/
table.td_p10 td,
table.td_p10 th {
    padding: 10px;
}
