/* 
 * File:        PublicationsTable.css
 * Version:     1.0.0
 *
 * This stylesheet sets the styles for the PublicationsTable.
 *
 * The first set of styles were chopped from demo_table.css from what I think were needed.
 * The second set of styles are custom add ons to make the table look better with the site.
 *    
 * Example: url(../images/back_disabled.png)
 */

#publications_container {
    /**************************************************************************************************/
    /***************************   DataTable - demo_table.css reduced  ********************************/
    /**************************************************************************************************/

    .dataTables_wrapper {
        clear: both;
        position: relative;
    }

    .dataTables_length {
        float: left;
    }

    .dataTables_filter {
        float: right;
    }

    .dataTables_processing {
        background-color: white;
        border: 1px solid #dddddd;
        color: #999999;
        font-size: 14px;
        height: 30px;
        left: 50%;
        margin-left: -125px;
        margin-top: -15px;
        padding: 14px 0 2px;
        position: absolute;
        text-align: center;
        top: 50%;
        width: 250px;
    }

    table.display thead th {
        cursor: pointer;
        padding: 3px 18px 3px 10px;
    }

    table.display td {
        padding: 3px 10px;
    }

    .dataTables_info {
        float: left;
        width: 60%;
    }

    .dataTables_paginate {
        float: right;
        text-align: right;
    }

    .paginate_disabled_previous,
    .paginate_enabled_previous {
        padding-left: 23px;
    }

    .paginate_disabled_previous,
    .paginate_disabled_next {
        color: #666666 !important;
    }

    .paginate_disabled_previous,
    .paginate_enabled_previous,
    .paginate_disabled_next,
    .paginate_enabled_next {
        color: #111111 !important;
        cursor: pointer;
        float: left;
        height: 19px;
    }

    .paginate_disabled_next,
    .paginate_enabled_next {
        margin-left: 10px;
        padding-right: 23px;
    }

    .paginate_disabled_previous {
        background: url("../images/back_disabled.png") no-repeat top left;
    }

    .paginate_enabled_previous {
        background: url("../images/back_enabled.png") no-repeat top left;
    }

    .paginate_enabled_previous:hover {
        background: url("../images/back_enabled_hover.png") no-repeat top left;
    }

    .paginate_disabled_next {
        background: url("../images/forward_disabled.png") no-repeat top right;
    }

    .paginate_enabled_next {
        background: url("../images/forward_enabled.png") no-repeat top right;
    }

    .paginate_enabled_next:hover {
        background: url("../images/forward_enabled_hover.png") no-repeat top right;
    }

    .sorting_asc {
        background: url("../images/sort_asc.png") no-repeat center right;
    }

    .sorting_desc {
        background: url("../images/sort_desc.png") no-repeat center right;
    }

    .sorting {
        background: url("../images/sort_both.png") no-repeat center right;
    }

    .sorting_asc_disabled {
        background: url("../images/sort_asc_disabled.png") no-repeat center right;
    }

    .sorting_desc_disabled {
        background: url("../images/sort_desc_disabled.png") no-repeat center right;
    }

    th:active {
        outline: none;
    }

    table.display {
        clear: both;
    }

    /**************************************************************************************************/
    /*******************************   DataTable - custom CSS   ***************************************/
    /**************************************************************************************************/

    #tableID,
    #tableID_wrapper {
        /*width: 1170px;*/
        /*margin-left: auto;
  margin-right: auto;*/
    }

    #tableID {
        border: 1px solid #c2d4da;
        margin-top: 5px;
    }

    a,
    a:link,
    a:visited,
    a:active {
        color: #004990;
        font-weight: normal;
        text-decoration: none;
        word-break: break-all;
    }

    table.display td,
    table.display thead th {
        border-collapse: separate !important;
        color: Black;
        font: 9pt Tahoma;
    }

    tr.odd,
    tr.odd td.sorting_1,
    tr.even td.sorting_1 {
        background-color: transparent;
    }

    table.display thead th {
        background-color: #dcdcdc;
    }

    table.display td {
        border-bottom: 1px solid #c2d4da;
    }

    td.details {
        background-color: transparent;
        border: 1px none #c2d4da;
        border-left: 1px solid #c2d4da;
        border-right: 1px solid #c2d4da;
    }

    table.display thead th {
        border-bottom: 1px none black;
    }

    /**************************************************************************************************/
    /****************************************   NEW CUSTOM   ******************************************/
    /**************************************************************************************************/

    tr.shown td.details-control {
        background: url("../images/details_close.png") no-repeat scroll center center rgba(0, 0, 0, 0);
    }

    tr td.details-control {
        background: url("../images/details_open.png") no-repeat scroll center center rgba(0, 0, 0, 0);
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        background: linear-gradient(to bottom, white 0%, gainsboro 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
        border: 1px solid #cacaca;
        color: #333333 !important;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        color: #333 !important;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        box-sizing: border-box;
        color: #333333 !important;
        cursor: pointer;
        display: inline-block;
        margin-left: 2px;
        min-width: 1.5em;
        padding: 0.5em 1em;
        text-align: center;
        text-decoration: none !important;
    }
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        color: #333 !important;
        text-decoration: none !important;
    }

    /**************************************************************************************************/
    /****************************************   BOOTSTRAP   ******************************************/
    /**************************************************************************************************/

    .table > thead > tr > th,
    .table > tbody > tr > th,
    .table > tfoot > tr > th,
    .table > thead > tr > td,
    .table > tbody > tr > td,
    .table > tfoot > tr > td {
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top: 1px solid #ddd;
    }

    .table-striped > tbody > tr:nth-child(odd) {
        background-color: #f9f9f9;
    }

    .table > caption + thead > tr:first-child > th,
    .table > colgroup + thead > tr:first-child > th,
    .table > thead:first-child > tr:first-child > th,
    .table > caption + thead > tr:first-child > td,
    .table > colgroup + thead > tr:first-child > td,
    .table > thead:first-child > tr:first-child > td {
        border-top: 0;
    }
    .table > thead > tr > th {
        vertical-align: bottom;
        border-bottom: 2px solid #ddd;
    }
    .table > thead > tr > th,
    .table > tbody > tr > th,
    .table > tfoot > tr > th,
    .table > thead > tr > td,
    .table > tbody > tr > td,
    .table > tfoot > tr > td {
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top: 1px solid #ddd;
    }

    #drillDownTable tbody tr td:first-child {
        width: 200px;
    }

    #drillDownTable td {
        padding: 5px;
    }

    #drillDownTable tbody tr td:nth-child(1) {
        width: 175px;
        overflow: hidden;
        display: inline-block;
        white-space: nowrap;
    }

    table {
        border-spacing: 0;
        border-collapse: collapse;
    }

    td {
        color: #605d62;
        font-size: 14px;
        line-height: 20px;
    }

    th {
        text-align: left;
        cursor: pointer;
    }

    input[type="search"] {
        -webkit-appearance: none;
    }

    input {
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
    }
}
