﻿/*// TABLES //*/
th
{
  vertical-align: bottom;
  border-collapse: separate;
}

.table > tbody > tr > td
{
  white-space: normal;
  font-size: 12px;
  padding: 2px;
}

td .form-control
{
  margin-bottom: 0;
  border-radius: 0;
}

table.fixed-cols
{
  table-layout: fixed;
}

.table
{
  margin-bottom: 5px;
}

.table-list th
{
  background-color: #4D4D4D;
  color: #fff;
  padding: 3px !important;
  border: 1px solid #e7e7e7;
  background-clip: padding-box;
  text-align: center;
}

.table-list tbody tr:not(.static):not(.selected):hover td
{
  background-color: #e6e6e6;
}

.table-list td
{
  background-color: #fff;
  border: 1px solid #e7e7e7;
  padding: 0 12px;
}

.table-list th.inverse
{
  background-color: white;
  color: #333;
}

tr.static.total > th,
tr.static.total > td
{
  background-color: #4D4D4D !important;
  color: #fff;
}

.tablesorter-header:not(.sorter-false)
{
  position: relative;
  cursor: pointer;
  padding: 0 5px;
}

.tablesorter-header:not(.sorter-false)::after
{
  font-family: FontAwesome;
  content: "\f0dc";
}

.tablesorter-header.tablesorter-headerAsc::after
{
  font-family: FontAwesome;
  content: "\f0de";
}

.tablesorter-header.tablesorter-headerDesc::after
{
  font-family: FontAwesome;
  content: "\f0dd";
}

.tablesorter-header-inner
{
  /* leave room for sort icons */
  padding-right: 5px;
  display: inline;
}

.negative,
.error,
tr.subtotal > th.negative,
tr.total > td.negative
{
  color: #ff5353 !important;
  font-weight: bold;
}

table.report th
{
  padding: 2px 6px;
  text-align: center;
  background-color: #4D4D4D;
  color: #fff;
  border: 1px solid #fff;
}

table.report th:first-child,
table.report td:first-child
{
  border-left: none;
}

table.report th:last-child,
table.report td:last-child
{
  border-right: none;
}

table.report td
{
  padding: 2px 6px;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

table.alt-rows > tbody > tr:nth-child(odd):not(.even) > td,
table.alt-rows > tbody > tr.odd > td,
table.report > tbody > tr:nth-child(odd):not(.even) > td,
table.report > tbody > tr.odd > td
{
  background-color: #fff;
}

table.alt-rows > tbody > tr:nth-child(even):not(.static):not(.odd) > td,
table.alt-rows > tbody > tr.even > td,
table.alt-rows > tbody > tr:nth-child(even):not(.static) > th,
table.report > tbody > tr:nth-child(even):not(.static):not(.odd) > td,
table.report > tbody > tr.even > td,
table.report > tbody > tr:nth-child(even):not(.static) > th
{
  background-color: #dae3eb;
}

tr.subGroupHeading > th
{
  text-align: left;
  background-color: #fff;
  color: #474747;
  font-size: 14px;
}

tr.subGroupHeading > th,
tr.subGroupHeading > td
{
  border-top: 2px solid #575757;
  border-bottom: 1px solid #4D4D4D;
}

tr.static th, tr.static td
{
  text-align: left;
  background-color: #fff;
  color: #4D4D4D;
  border: 1px solid #fff;
  border-bottom: none;
}

tr.static th.right, tr.static td.right
{
  text-align: right;
}

table.report th hr
{
  margin: 0 -5px; /*counteract <th> padding*/
  border-top: 1px solid #7F7F7F;
}

tr.subtotal > th,
tr.subtotal > td
{
  background-color: #e4e4e4;
  color: #4d4d4d;
  font-weight: normal;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #4D4D4D;
}

tr.static.total > th
{
  background-color: #4D4D4D;
  padding: 0 6px;
  font-weight: bold;
}

/* responsive */
.table-responsive thead th
{
  border-bottom: 1px solid #ddd;
  padding: 8px;
  line-height: 1.42857143;
}

.table-responsive td
{
  word-wrap: break-word;
  white-space: normal;
  padding: 1px;
}

table.table-responsive tr th
{
  padding: 0 5px;
  background-color: #fff;
}

table.table-responsive tr.subhead th
{
  background-color: #4D4D4D;
  color: #fff;
  border: 1px solid #fff;
}

table.table-responsive tr.subsubhead
{
  background-color: #FFFEF1;
}

table.table-responsive tbody tr
{
  border-bottom: 1px solid #ccc;
}

@media only screen and (max-width:767px)
{
  table.table-responsive
  {
    border: none;
    padding: 0;
    border-radius: 5px;
  }

  table.table-responsive,
  table.table-responsive thead,
  table.table-responsive tbody:not(.collapse),
  table.table-responsive tbody.collapse.in,
  table.table-responsive th,
  table.table-responsive td,
  table.table-responsive tr:not(.collapse),
  table.table-responsive tr.collapse.in
  {
    display: block;
  }

  table.table-responsive thead tr
  {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  table.table-responsive tr
  {
    border-bottom: 1px solid #ccc;
  }

  table.table-responsive td
  {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    white-space: normal;
    text-align: left;
    padding-bottom: 2px;
  }

  table.table-responsive td:before
  {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    text-align: left;
    font-weight: bold;
  }

  /* Label the data */
  table.table-responsive td:before
  {
    content: attr(data-title);
  }

  .table-responsive .form-control
  {
    margin-bottom: 0;
  }
}

.panel-table
{
  clear: both;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 100%;
}

.panel-table th,
.panel-table td
{
  padding: 2px;
  word-wrap: break-word;
  white-space: normal;
}

td.number:not(.left),
th.number:not(.left)
{
  text-align: right;
  padding-right: 6px;
}

/* table filter */
.filter-btn
{
  color: #FFFFFF;
  float: right;
  border-radius: 3px;
  padding: 2px;
  line-height: 1;
  background-color: #2674A6;
  border: 1px solid #fff;
}

.filter-panel
{
  position: absolute;
  margin-top: 5px;
  z-index: 1;
}

.filter-panel-list
{
  list-style: none;
  text-align: left;
}

.filter-panel-list
{
  color: #000;
  padding: 0;
}

.filter-panel-list input
{
  vertical-align: sub;
}

.filter-panel-list li label
{
  cursor: pointer;
}

.filter-panel-overlay
{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.filter-section
{
  display: inline;
}

tr.tablesorter-filter-row > td
{
  padding: 6px;
  background-color: #fff !important;
}

.tablesorter-filter-row > td > .form-control
{
  padding: 0 6px;
  border-radius: 0;
}

.subsection
{
  background-color: #757575 !important;
  color: #FFF;
  font-weight: bold;
}

.collapsing
{
  transition: height 0.01s;
}

#report-opts select,
#report-opts textarea
{
  resize: none;
}

.floatThead-container
{
  z-index: 98 !important;
}

.table-wrapper
{
  width: 100%;
  overflow: auto;
  height: calc(100vh - 315px);
  margin-bottom: 10px;
}

.table.small th
{
  padding: 0;
}

table tr.selected td
{
  background-color: #d5ecf9 !important;
}

#plannerMgmtTable tr:not(.tablesorter-childRow) td
{
  border-top: 2px solid black;
}

#plannerMgmtTable td:first-child
{
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 
  ISSUE 20290:
  new setup for sticky table headers that does not involve the floatThead library
*/
table.report.sticky-headers tr th
{
  position: sticky;
  top: -1px;
}

table.report.sticky-headers tr td
{
  z-index: 1;
}