/* For pages with datatable view.  This file should be positioned below main.css in page references. */

form {
    /* Overrides any form border specified in main.css.  Datatables does some funky things with borders which a border around the entire form can't accommodate. */
    border-style: hidden;
}

.topHeader{
    border-radius: 6px 6px 0px 0px;  /* clockwise from top left */
    border-style: solid;
    border-width: 1px;
    border-color: #dfe3c3;
}

.dataTables_wrapper input {
    outline: none;
}

.tablePanel {
    position: relative;
    top: 10px;
    float: right;
    z-index: 1;
    padding: 0px 2px 2px 2px;
    line-height: initial;
}

.tablePanel.noBorder {
    border-style: none;
}

.tablePanel table.dataTable tbody button.tr-button {
    height: 24px;
    width: 24px;
    margin-left: 7px;
}

.dataTables_wrapper .ui-widget-header {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.tablePanel .dataTables_wrapper > div:first-child, .ui-dialog-content .dataTables_wrapper .ui-widget-header:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.tablePanel .dataTables_wrapper > div:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dataTables_wrapper .ui-toolbar:last-child {
/*    margin-top: -1px; */
}

.tablePanel .dataTables_wrapper .ui-toolbar:last-child {
    margin-top: 0px;
}

.dataTables_scrollHead {
    line-height: 14px;
}

div.dataTable {
    margin-top: -3px;
}

table.dataTable caption h3 {
    margin-top: -28px;
    margin-bottom: 0px;
}

button.tr-button
{
    width: 26px;
    height: 26px;
    padding: 6px;
    margin-top: 2px;
    margin-left: 9px;
    border-radius: 14px;    
}

button.tr-button span.ui-button-text {
    position: absolute;
    top: -2px;
    left: -8px;
}

table.dataTable.display tbody tr.highLighted {
    background-color: #d3eac8;
}

td.details-control { /* row buttons from the datatables site */
    background: url('../datatables/images/details_open.png') no-repeat center center;
    cursor: pointer;
}

tr.shown td.details-control {
    background: url('../datatables/images/details_close.png') no-repeat center center;
}

td.row-select, td.row-select input {
    cursor:pointer;
}

td.row-select input {
    margin-left: 8px;
}

/* datatables.css overrides */

table.dataTable.display {
    /* datatables specifies a border-color and no style or width, so no side border shows. */
    border-right-color: #d4ccb0; 
    border-right-style: solid;
    border-right-width: 1px;
    border-left-color: #d4ccb0;
    border-left-style: solid;
    border-left-width: 1px;
    border-collapse: collapse;
}

table.dataTable thead th {
    padding: 9px 18px;
}

#accordion table.dataTable thead th {
    padding: 7px 18px;
}

table.dataTable tbody .td-tr-button {
    padding-top: 0px; 
    padding-bottom: 2px;
}

.tablePanel table.dataTable tbody .td-tr-button {
    padding-left: 8px;  /* assumes column-width of 15px in DataTables setup code */
    padding-right: 0;
}

.tablePanel table.dataTable tbody .td-tr-button:hover {
    cursor: pointer;
}

.dataTables_filter {
    position: relative;
    z-index: 2
}

.dataTables_wrapper .dataTables_paginate a.fg-button,
.dataTables_wrapper .dataTables_paginate a.fg-button:first-child,
.dataTables_wrapper .dataTables_paginate a.fg-button:last-child
{   /* Table-navigation buttons */
    margin-left: 8px;
    margin-top: -2px;
    padding: 5px 10px 6px 10px;
    border-radius: 20px;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 1px;
    padding-bottom: 1px;
    margin-left: 2px;
}

.dataTable span.tableHeader {
    font-size: 17px;
}

.dataTable span.tableHeader, .tablePanel span.tableHeader {
    position: absolute;
    z-index: 1;
    margin: 0;
    width: 100%;
    text-align: center;
    line-height: 37px;
    font-weight: bold;
    color: #429900;
}

table.childTable {
    padding-left: 34px;
}

table.childTable, table.childTable tbody tr, table.dataTable tbody tr.shown+tr, table.dataTable tbody tr.shown+tr:hover {
    background-color: #ecf0df;
}

table.dataTable table.childTable tr.childRow2, table.dataTable.display table.childTable tr.childRow2:hover {
    background-color: #f7f7ee;
}

table.dataTable.display table.childTable tbody tr.odd {
    background-color: #f9f9f9;
}

table.dataTable.display table.childTable tbody tr.even {
    background-color: #fefefe;
}

table.dataTable.display table.childTable tbody tr:hover {
    background-color: #f7f7f7;
}

table.childTable tr.childHeader, table table.childTable tr.childHeader:hover {
    background-color: #73b823; /*#e6dccc;*/
    color: #fdfdfd;
}

table.childTable tr.childHeader th {
    border-color: #459e00;
    border-width: 0 1px 0 0;
    border-style: solid;
}

table.childTable tr.childHeader th.uiButtonHeader {
    width: 64px;
    padding: 4px 6px;
}

table.childTable tr.childHeader th.uiButtonHeader button {
    margin: 1px 3px 0 3px;
}

table.childTable .childRow button {
    height: 24px;
    width: 24px;
    margin-left: 6px;
    opacity: .9;
}

table.childTable .childRow2 td div.childRowSpacer~div {
    width: 90%;
    margin: auto;
}

table.childTable .childRow2 td {
    padding: 0 45px 0 45px;
}

table.childTable .childRow2 td div.childRowSpacer {
    height: 15px;
}

table.childTable .childRow2 td div.childRowSpacer+div {
    border: none;
}

table.childTable .childRow2 td div {
    height: 34px;
}

table.childTable .childRow2  td div+div { /* border on top of all but the first one */
    border-top-width: 1px;
    border-top-style: solid;
    border-color: #d4ccb0;
}

table.childTable .childRow2 td div span.rfqPtsSplsHdr { /* surplus info doesn't fit two to a line */
    float: left;
    width: 25%;
    padding-left: 15px;
}

table.childTable .childRow2 td div span.rfqPtsSpls+span { /* surplus info doesn't fit two to a line */
    width: 70%;
}

table.childTable .childRow2 td div span.rfqPtsSpls {
    float: left;
    padding-left: 20px;
    width: 21%;
}

table.childTable .childRow2 td div span {
    float: left;
    padding-left: 20px;
    width: 21%;
}

table.childTable .childRow2 td div span label {
    line-height: 34px;
}

table.childTable .childRow2 td div>span.rfqPtsSpls label { /* indent surplus info */
    margin-left: 15px;
}

.uiTableHeaderButtons {
    position: absolute;
    margin: 0;
    top: -10%;
    left: 1%;
}

div.buttonTable > div {
    float:left;
    width: 96.67%;
}

div.buttonTable > div:first-child {
    position: absolute;
    padding: 9px 12px;
    text-align: center;
    border-bottom-width: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

div.buttonTable div.ui-widget-content {
    position: absolute;
    top: 38px;
    padding:12px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;    
}

div.buttonTable div.ui-widget-content .dataTables_wrapper {
    margin-top: -3px;
}

div.buttonTable > div.ui-state-disabled {
    opacity: 1;
    background-color: #bbda92;
    border-color: #b0d594;
    color: #f5fbe9;
    background-image: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    height: 21px;                    
}

div.buttonTable > div.ui-state-disabled+div.ui-widget-content {
    display: none;
}

div.buttonTable h3 {
    font-size: 100%;
    line-height: 21px;
}

div.buttonTable .uiTableHeaderButtons { /* width of the header div is 100% so as to properly center the text.  This causes the buttons to drop to the next line, so the negative margin pulls them back up. */
    position: relative;
    float: right;
    width: 64px;
    margin-top: -31px;
    margin-right: 1px;
}

div.buttonTable .uiTableHeaderButtons button:last-child {
    float: right;
    margin-left: 3px;
    margin-right: 3px;
}
