/* --------------------------------------------------------
CP Reports
Styles for the reports pages and their datatables
--------------------------------------------------------- */

/* Reports - bespoke
--------------------------------------------------------- */

/* Table  */

.cp-bespoke-trips__table {
  width: 100%;
  background-color: #fff;
  margin-top: 20px;
}

/* Table header */

.cp-bespoke-trips__table thead {
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}
.cp-bespoke-trips__table th {
  vertical-align: top;
  padding: 3px 10px;
}

/* Tbody */

.cp-bespoke-trips__table  tr:nth-child(even) {
  background-color: #f1f1f1;
}
.cp-bespoke-trips__table  tr td {
  padding: 3px 10px;
  vertical-align: top;
}
.cp-bespoke-trips__table  tr td a {
  display: block;
}

/* Reports - filters
--------------------------------------------------------- */

.report-filters__title {
  font-size: 22px;
}
.report-filters h3 {
  font-size: 15px;
}
.report-filters > ul {
  margin: 10px 0 20px;
}

.report-filters .submit-date-filter {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  font-size: 13px;
}

/* Datepicker */
.ui-datepicker {
  font-size: 13px;
}

.report-filters .vDateField,
.report-filters .filter-button {
  width: 100%;
  display: inline-block;
}

/* Buttons */ 

.report-filters > ul li a,
.report-filters > ul li.selected a,
.report .actions .button,
.report-filters .filter-button {
  background-color: #F05EA3;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  font-size: 11px;
  padding: 5px 10px;
  border: none;
  border-radius: 2px;
}
.report-filters > ul li.selected a:active,
.report-filters > ul li.selected a:hover,
.report-filters > ul li.selected a:focus,
.report .actions .button:active,
.report .actions .button:hover,
.report .actions .button:focus,
.report-filters .filter-button:active,
.report-filters .filter-button:hover,
.report-filters .filter-button:focus {
  color: #fff;
  background-color: #F871B2;
  text-decoration: none;
}

.report-filters > ul li a {
  background-color: #1CACBA;
  margin-bottom: 5px;
  display: block;
}
.report-filters > ul li a:active,
.report-filters > ul li a:hover,
.report-filters > ul li a:focus {
  color: #fff;
  background-color: rgb(56, 195, 207);
  text-decoration: none;
}


/* Reports - datatables
--------------------------------------------------------- */

.report {
  padding: 0;
  margin-top: 20px;
  font-family: sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

/* Actions */

.report .actions {
  background-color: #f1f1f1;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.report .actions > * {
  margin: 0 10px 0 0;
}

@media (max-width: 640px) {
  .report .actions {
    display: block;
  }
}

/* Table  */

.report .results  {
  border: 1px solid #ddd;
  background-color: #fff;
  overflow: hidden;
  overflow-x: auto;
}

/* Table header */

.report thead {
  border-bottom: 1px solid #ddd;
}
.report th {
  padding: 3px;
  white-space: nowrap;
}
.report th.sortable a {
  color: inherit;
  text-transform: none;
}
.report .sortoptions, 
.report .text {
  display: inline-block;
}
.report .sortoptions {
  color: #F05EA3;
}

/* Table heading sort icons from django */


.report th.sorted .sortoptions a {
  width: 14px;
  height: 12px;
  display: inline-block;
}

.report th.sorted .sortoptions a.sortremove {
  background: url(../img/sorting-icons.gif) -4px -5px no-repeat;
}

.report th.sorted .sortoptions a.sortremove:hover {
  background: url(../img/sorting-icons.gif) -4px -27px no-repeat;
}

.report th.sorted .sortoptions a.ascending {
  background: url(../img/sorting-icons.gif) -5px -50px no-repeat;
}

.report th.sorted .sortoptions a.ascending:hover {
  background: url(../img/sorting-icons.gif) -5px -72px no-repeat;
}

.report th.sorted .sortoptions a.descending {
  background: url(../img/sorting-icons.gif) -5px -94px no-repeat;
}

.report th.sorted .sortoptions a.descending:hover {
  background: url(../img/sorting-icons.gif) -5px -115px no-repeat;
}


/* Tbody */

.report tr:nth-child(even) {
  background-color: #f1f1f1;
}
.report tr th, 
.report tr td {
  padding: 3px;
  vertical-align: top;
}
.report tr th input[type="checkbox"] {
  margin: 0;
}

/* Footer */

.report .paginator {
  font-size: 14px;
  padding: 10px 0;
}

.report .paginator a {
  border: 1px solid #ddd;
  padding: 5px 10px;
  line-height: 1;
}

.report .this-page {
  padding: 5px 10px;
  line-height: 1;
}