/* Table top actions */

.table-top-actions {
    margin-bottom: 5px;
    font-weight: 600;
}

.table-top-actions>a {
    display: inline-block;
    margin-bottom: 5px;
    min-width: 100px;
    text-align: center;
    vertical-align: top;
}

.search-but {
    display: inline-block;
    position: relative;
    float: right;
    margin-left: 1px;
}

.search-but input[type=text] {
    box-sizing: border-box;
    border: 1px solid #643737;
    padding: 0 20px 0 8px;
    margin: 0 20px 0 1px;
    width: 135px;
    height: 28px;
    line-height: 28px;
}

.search-but button {
    position: absolute;
    right: 0;
    top: 0;
    line-height: 28px;
    height: 28px;
    background: none;
    border: 0;
}

.search-but div {
    color: #c7c7c7;
    font-weight: bold;
    position: absolute;
    top: 4px;
    right: 22px;
    font-size: 20px;
}

div.info-but {
    color: #c7c7c7;
    right: 24px;
}

div.infoBut {
    position: absolute;
    top: 0px;
    right: -24px;
    font-size: 20px;
    font-weight: normal;
}

div.info-but-man {
    font-size: 17px;
    float: right;
}

a.tip {
    border-bottom: 1px dashed;
    text-decoration: none;
}

a.tip:hover {
    cursor: help;
}

a.tip span {
    display: none;
}

a.tip:hover span {
    border: 1px dotted #c7c7c7;
    padding: 5px 10px 5px 5px;
    display: block;
    z-index: 100;
    background: white;
    left: -243px;
    margin: 10px;
    width: 250px;
    position: absolute;
    top: 16px;
    text-decoration: none;
    float: right;
    font-size: 12px;
    font-weight: initial;
}

div#cancelSearch {
    color: white;
    background: #ffc60b;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    position: absolute;
    top: 1px;
    right: 21px;
    padding: 7px 3px 3px;
}

.btn-columns {
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 2px;
}


/* TABLE */

.table {
    width: 99.99%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 15px;
}


.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th, .dataTable>tbody>tr>td, .dataTable>tfoot>tr>td, .dataTable>tfoot>tr>th, .dataTable>thead>tr>th {
    border: none;
    padding: 5px 5px 5px 10px;
    vertical-align: middle;
}

.table>tbody>tr, .dataTable tbody tr {
    border-top: 1px solid white;
}

.table thead th, .dataTable thead th {
    background-color: #643737;
    color: white;
    font-weight: 600;
}

.table tbody tr, .dataTable tbody tr, table.dataTable tbody tr {
    background-color: #f5f5f5;
}

.table tbody tr:first-child, .dataTable tbody tr:first-child {
    border-top: none;
}

.table tbody tr:nth-child(even), .dataTable tbody tr:nth-child(even) {
    background-color: #ececec;
}

.table tbody tr:hover, .dataTable tbody tr:hover {
    background-color: #ffe8b1;
}

.table tbody tr.highlight {
    background-color: #ffedc7;
}

tbody tr td.empty-value {
    color: lightgray;
    font-style: italic;
}

.table th.grid-col-check {
    min-width: 50px;
}

.table th.grid-col-check div {
    margin-left: -3px;
}

.table th.grid-col-check span {
    display: inline-table;
}

.table td.grid-col-check {
    padding-left: 7px;
}

.table th a {
    text-decoration: none;
    color: white;
    display: block;
    cursor: pointer;
    padding-right: 25px;
}

.table th span, .dataTable th span {
    display: block;
}

.table label {
    line-height: inherit;
}

#menu-checkbox span {
    border-color: white;
    bottom: 0px;
}

.table>tbody>tr>.row-actions {
    line-height: 0.8;
    float: right;
}

.table>tbody>tr[id*='tasks']>.row-actions>input {
    float: left;
    margin-right: 4px;
    min-height: 24px;
    line-height: 24px;
}

.row-actions a {
    display: inline-block;
}

.row-actions a span, td.grid-col-status span {
    color: #8f8f8f;
    font-size: 18px;
}

.row-actions a span:hover, #savedFilters a:hover span{
    color: #01616f;
}

img.history {
    float: left;
    cursor: pointer;
}

.table tbody p {
    margin: 5px 0;
}

.table>tfoot>tr>th {
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    background: #f5f5f5;
}

#snippet-tasks-rows #inlineEdit {
    display: none;
}


/* SORTING */

table thead .sorting a, table thead .sorting_asc a, table thead .sorting_desc a, table thead .sorting_asc_disabled a, table thead .sorting_desc_disabled a {
    position: relative;
}

table thead .sorting a:after, table thead .sorting_asc a:after, table thead .sorting_desc a:after {
    position: absolute;
    top: calc(50% + 2px);
    transform: translateY(-50%);
    right: -2px;
    display: block;
}

table thead .sorting_asc a:after {
    content: url("../images/ic_arrow_up_blue.svg");
    top: calc(50% + 3px);
}

table thead .sorting_desc a:after {
    content: url("../images/ic_arrow_down_blue.svg");
    top: calc(50% + 3px);
}

table thead .sorting a:after {
    content: url("../images/ic_sort_blue_18px_r.svg");
}

table thead .sorting a:hover:after {
    content: url("../images/ic_sort_yellow_18px_r.svg");
}


/*HALF-BORDERED*/

.table>thead>tr>th, .table>tbody>tr>td, .table>tfoot>tr>th {
    position: relative;
}

.table th:after, .table td:after {
    content: "";
    height: 60%;
    width: 2px;
    position: absolute;
    top: 20%;
    right: 0;
}

.table th:after {
    background-color: white;
}

.table td:after, .table tfoot th:after {
    background-color: #c7c7c7;
}

.table tr.highlight td:after {
    background-color: white;
}

.table th.grid-col-check:after, .table td.grid-col-check:after, .table th:last-child:after, .table th:last-of-type:after, .table td:last-child:after {
    width: 0;
}

.table>tbody>tr>td.form-group:after {
    display: block;
}

/* PAGINATOR */

.grid-paginator {
    float: right;
    padding-bottom: 1px;
}

.pagination>li>a {
    height: 28px;
    line-height: 13px;
}

.pagination>li>a, .pagination>li>a:focus {
    color: #00616f;
    background-color: #ececec;
    border-color: #ececec;
}

.pagination>li:first-child>a, .pagination>li:last-child>a {
    border-radius: 0;
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover {
    background-color: #ddd;
    font-weight: bold;
    z-index: 0;
    padding-top: 2px;
}

.pagination>li>a:hover {
    color: white;
    background-color: #643737;
    border-color: #643737;
}

.dataTables_paginate div {
    display: inline-block;
}

.pagination {
    margin: 0;
}

.pagination>.disabled>span, .pagination>.disabled>span:hover, .pagination>.disabled>span:focus, .pagination>.disabled>a, .pagination>.disabled>a:hover, .pagination>.disabled>a:focus {
    color: #777;
    background-color: #ececec;
    border-color: #ececec;
    cursor: not-allowed;
    height: 28px;
    line-height: 13px;
    top: 0px;
}

.pagination>li:first-child>a, .pagination>li:first-child>span, .pagination>li:last-child>a, .pagination>li:last-child>span {
    border-radius: 0;
}

.pagination>li:first-child>a, .pagination>li:first-child>span {
    border-left: none;
}

.pagination>li:last-child>a, .pagination>li:last-child>span {
    border-right: none;
}

.pagi-items {
    vertical-align: top;
    margin-right: 5px;
    float: left;
}

.pagi-items-text {
    margin-right: 5px;
}

.pagi-count {
    display: inline-block;
    margin-right: 10px;
    line-height: 28px;
}

.styled-select select {
    border: 1px solid #ececec;
    width: 70px;
}
.pagination>li {
    display: inline;
}

.pagination>li:first-child>a, .pagination>li:first-child>span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover {
    background: #ddd!important;
}

.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #ddd;
}

.pagination>li>a, .pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
}

/* DATAGRID LEGEND */

.left-legend {
    float: left;
}

.datagrid-legends {
    float: right;
}

.datagrid-legends>span {
    color: #c7c7c7;
    padding-right: 6px;
}

.pagi-count~.datagrid-legends span {
    display: inline;
}

.datagrid-legends .label {
    font-weight: normal;
    line-height: 28px;
    color: inherit;
    padding: 0 2px 0 0;
    font-size: 13px;
    white-space: pre;
}

.datagrid-legends span.material-icons {
    position: relative;
    top: 3px;
    margin-right: -2px;
    font-size: 13px;
}

.datagrid-legends .legend_gray span {
    color: #c7c7c7;
}

.datagrid-legends .legend_green span {
    color: #00b410;
}

.datagrid-legends .legend_darkblue span {
    color: #00616f;
}

.datagrid-legends .legend_orange span {
    color: #fd8e0c;
}

.datagrid-legends .legend_red span {
    color: #e1312d;
}

.datagrid-legends .legend_azure span {
    color: #373964;
}

.table thead th:first-child {
    border-left: 5px solid #643737;
}

.table tfoot th:first-child {
    border-left: 5px solid transparent;
}

.table td:first-child {
    border-left: 5px solid transparent;
}

.table tr.legend_gray td:first-child {
    border-left-color: #c7c7c7;
}

.table tr.legend_green td:first-child {
    border-left-color: #00b410;
}

.table tr.legend_darkblue td:first-child {
    border-left-color: #00616f;
}

.table tr.legend_orange td:first-child {
    border-left-color: #fd8e0c;
}

.table tr.legend_red td:first-child {
    border-left-color: #e1312d;
}

.table tr.legend_azure td:first-child {
    border-left-color: #373964;
}

.table tr[class*='legend'] td:first-child:before {
    content: '';
    height: 1px;
    width: 5px;
    position: absolute;
    top: -1px;
    left: -5px;
    background: white;
}

.table tr[class*='legend']:first-child td:first-child:before {
    top: 0;
}

#myDependency th:first-child, #myDependency td:first-child {
    border-left: 0;
}

/* FILTERS */

.filters-div {
    display: inline-block;
    float: right;
    margin-left: 2px;
    margin-bottom: 5px;
}

.filter-buts {
    float: right;
}

.filter-buts>a {
    display: inline-block;
    min-width: 100px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    vertical-align: top;
}

.filter-buts a.but-filter:after, .filter-buts a.but-quick-filter:after {
    content: "";
    width: 0;
    height: 0;
    border: 0;
    position: absolute;
}

.filter-buts a.but-filter:after {
    bottom: -12px;
    left: 40%;
}

.filter-buts a.but-quick-filter:after {
    top: 4px;
    left: -10px;
}

a.button.filter-active {
    background: #ffc60b;
    margin-right: -10px;
}

.filter-buts a.but-filter.filter-focus:after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f5f5f5;
}

.filter-buts a.but-quick-filter.filter-focus:after {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #f5f5f5;
}

.reset {
    height: 28px;
    background: #ffc60b url("../images/ic_close.svg") no-repeat 50% 60%;
    background-size: 70%;
    border: 0;
    position: relative;
    padding: 12px;
    display: inline-block;
    -webkit-appearance: none;
    vertical-align: top;
}

.filters-div .callout {
    color: #e1312d;
    text-align: right;
    width: 100%;
    display: inline-block;
}

.filter-body, .quick-filter {
    display: none;
    background-color: #f5f5f5;
    position: relative;
    padding: 10px;
    margin-bottom: 15px;
    margin-top: 5px;
    clear: both;
}

.filter-head {
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.module-item .filter-head {
    font-size: 14px;
}

.filter-options {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding-top: 10px;
    padding-bottom: 8px;
}

.calendar-input {
    position: relative;
    display: inline-block;
    float: right;
    width: 199px;
    height: 41px;
}

.flex-original-columns, .flex-other-columns {
    max-width: 450px;
}

.flex-item label {
    float: left;
    margin-top: 10px;
    width: 100px;
    word-wrap: break-word;
}

.filter-options label, .filter-foot label {
    font-weight: 400;
}

.filter-options input, .filter-options select {
    width: 140px;
    margin: 4px;
    float: right;
}

.flex-item input {
    padding: 0 8px;
}

.filter-options input.entitiesForm[name*="button"] {
    width: auto;
    background: #643737;
    color: white;
    font-weight: 600;
    padding: 0 5px;
    position: absolute;
    right: 0;
}

.filter-foot {
    margin-top: 10px;
}

.filter-foot input[name=filter_name] {
    width: 290px;
    height: 28px;
    box-sizing: border-box;
    border: 1px solid #643737;
    padding: 0 8px;
    outline: none;
    margin-left: 10px;
    background: transparent;
}

.filter-in-but {
    float: right;
    font-weight: bold;
}

.filter-in-but a {
    display: inline-block;
}

.quick-filter {
    padding: 0;
    min-height: 28px;
    margin: 0 5px;
}

#no-filter {
    width: 450px;
    display: none;
}

#no-filter p {
    display: inline-block;
    margin: 0 0 0 10px;
}

#no-filter a {
    float: right;
    margin-right: 10px;
}

#filter-list a.filter-name {
    color: #00616f;
    border-left: 1px solid white;
    cursor: pointer;
    text-decoration: none;
    text-transform: none;
    padding: 0 10px;
    position: relative;
    line-height: 28px;
}

#filter-list a.filter-name:first-of-type {
    border-left: none;
}

#filter-list a.filter-name:hover {
    text-decoration: underline;
}


/* Datatables - correct plugin */

.dataTable>thead>tr>th {
    padding-right: 25px;
}

table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc {
    position: relative;
    background-position: calc(100% - 3px) center;
}

table.dataTable thead .sorting_asc {
    background-image: url("../images/ic_arrow_up_blue.svg");
    background-repeat: no-repeat;
}

table.dataTable thead .sorting_desc {
    background-image: url("../images/ic_arrow_down_blue.svg");
    background-repeat: no-repeat;
}

table.dataTable thead .sorting {
    background-image: url("../images/ic_sort_blue_18px_r.svg");
    background-position: calc(100% - 5px) center;
    background-repeat: no-repeat;
}

table.dataTable thead .sorting:hover {
    background-image: url("../images/ic_sort_yellow_18px_r.svg");
    background-repeat: no-repeat;
}

table.dataTable.no-footer {
    border-bottom: 0;
}

.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: #00616f;
}

.dataTables_info {
    padding-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #ececec;
    border: 1px solid white;
    color: #00616f!important;
    height: 28px;
    line-height: 13px;
    margin-left: -1px;
    border-radius: 0;
}

.dataTables_paginate .paginate_button.next {
    border-right: 0!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    background-color: #ececec;
    border: 1px solid white;
    color: #777!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: white!important;
    font-weight: bold;
    border: 1px solid white;
    background: #643737;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 1px solid white;
    background: #643737;
}

.module-item .dataTable td:last-child:not(.dataTables_empty) {
    line-height: 0.8;
}


/*MEDIA*/

@media (max-width: 767px) {
    .table-top-actions {
        display: none;
    }
}

@media (max-width: 991px) {
    .datagrid-legends, .pagi-count, .grid-paginator, .left-legend {
        float: none;
        display: block;
        clear: both;
    }
    .grid-paginator, .left-legend {
        padding-left: 5px;
    }
    .dataTables_paginate div.pagi-items {
        margin-bottom: 5px;
    }
    .left-legend .datagrid-legends>span {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .filter-temp-but-md {
        display: block!important;
        border-bottom: 1px solid #ffedc7!important;
    }
    .filter-buts a {
        width: auto;
    }
}

@media (max-width: 430px) {
    .pagi-items {
        float: none;
        display: block!important;
    }
}

/*OTHERS*/
