/*
 * Tables
 */

.table:not(.table-employee) {
    table-layout: fixed;
    white-space: nowrap;
}

.table .table {
    margin-bottom: 0;
}

.table > thead > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    font-weight: normal;
}

.table:not(.table-break) > thead > tr > th,
.table:not(.table-break) > tbody > tr > td,
.table:not(.table-break) > tfoot > tr > td {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.table > tbody:first-child > tr > td {
    border-top: 0;
    padding-top: 0;
}

.table.table-bordered > thead > tr > th,
.table.table-break > thead > tr > th,
.table.table-bordered > tbody > tr > td,
.table.table-break > tbody > tr > td,
.table.table-bordered > tfoot > tr > td,
.table.table-break > tfoot > tr > td {
    padding: 8px;
}

.table-selectable > tbody > tr:hover td {
    background-color: #428bca;
}

.table-selectable > tbody > tr:hover td,
.table-selectable > tbody > tr:hover td a,
.table-selectable > tbody > tr:hover td span.text-primary,
.table-selectable > tbody > tr.selected td a,
.table-selectable > tbody > tr.selected td span.text-primary {
    color: #ffffff !important;
}

.table-checkbox {
    width: 37px;
    max-width: unset !important;
}

.table > thead > tr > th.table-cell, .table > tbody > tr > td.table-cell, .table > tfoot > tr > td.table-cell {
    padding-top: 20px;
}

.table .table > thead > tr > th.table-cell, .table .table > tbody > tr > td.table-cell, .table .table > tfoot > tr > td.table-cell {
    padding-top: 12px;
}

.table > thead > tr > th.table-text-cell, .table > tbody > tr > td.table-text-cell, .table > tfoot > tr > td.table-text-cell {
    overflow: hidden;
    padding-bottom: 15px;
    white-space: nowrap;
}

.table > thead > tr > th.table-actions, .table > tbody > tr > td.table-actions, .table > tfoot > tr > td.table-actions {
    text-align: right;
    white-space: nowrap;
    text-overflow: initial;
    max-width: initial;
    overflow: visible;
}

.table-actions > a {
    margin: 0 5px;
}

.table-top {
    vertical-align: top;
}

.table-actions > a:first-of-type {
    margin-left: 0;
}

.table-actions > a:last-of-type {
    margin-right: 0;
}

td > .form-control, td > .btn-group-sortable > .form-control, td > .input-group, td > .btn {
    margin-top: 5px;
}

.table-sortable .btn-group-sortable {
    padding-right: 10px;
}

.table-sortable .btn-group-sort {
    border-left: none;
    left: -8px;
    right: auto;
}

.table-image {
    min-width: 125px;
    overflow: hidden;
    width: 125px;
}

.table .table-number-input {
    width: 120px;
}

.table-striped > tbody > tr.bg-danger, .table-striped > tbody > tr.bg-danger:nth-child(odd) {
    background-color: #f2dede;
}

.table-striped > tbody > tr.bg-warning, .table-striped > tbody > tr.bg-warning:nth-child(odd) {
    background-color: #fcf8e3;
}

.table-checkbox a {
    margin-left: 3px;
}

/**
 * Board
 */

td.board-pending, .table-selectable > tbody > tr:hover td.board-pending {
    background-color: #c5c5c5;
}

td.board-accepted, .table-selectable > tbody > tr:hover td.board-accepted {
    background-color: #f2884b;
}

td.board-invoice, .table-selectable > tbody > tr:hover td.board-invoice {
    background-color: #428bca;
}

td.board-done, .table-selectable > tbody > tr:hover td.board-done {
    background-color: #5cb85c;
}

td.board-btn-td {
    padding: 0 !important;
}

td.board-btn-td .btn {
    margin: 0 !important;
    padding: 7px 12px !important;
}

td.board-event {
    background-color: #d14836;
    color: #fff;
    width: 31px;
}

td.board-event > a {
    color: #fff;
}

/*
 * Code
 */
.table.table-code {
    border-collapse: collapse;
    border-spacing: 0;
}

.table > tbody > tr > td.blob-num {
    width: 2%;
    min-width: 50px;
    white-space: nowrap;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.3);
    vertical-align: top;
    text-align: right;
    border: solid #eee;
    border-width: 0 1px 0 0;
    cursor: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding-left: 10px;
    padding-right: 10px;
    text-overflow: initial;
    max-width: initial;
    overflow: hidden;
}

.table > tbody > tr > td.blob-code {
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: top;
    overflow: hidden;
}

.table > tbody > tr > td.blob-code-inner {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 12px;
    color: #333;
    /*white-space: pre;*/
    overflow: visible;
    word-wrap: normal;
}

/*
 * Thumbnail
 */
td.td-thumbnail {
    width: 80px;
    padding: 8px !important;
}

td.td-thumbnail img {
    cursor: pointer;
}