/*
** OVERRIDE DEFAULT BOOTSTRAP STYLES FOR DATATABLES
*/

/*
** HEADING CELLS
*/
.dataTables_wrapper .dataTable th {
    /* background-color: #F1F1F9; */
    background-color: white !important;
    color: #2E3138;
    text-transform: capitalize;
    vertical-align: middle !important;
}

/*
** DATA CELLS
*/
.dataTables_wrapper .dataTable td {
    color: gray;
    /* border: none !important; */
    vertical-align: middle !important;
}

/*
** BUTTONS - some need more specific selectors
*/
.dataTables_wrapper button {
    background-color: #0FABDC !important;
    border-color: #0FABDC !important;
    color: white;
}

.page-item.active a {
    background-color: #0774f8 !important;
}

/*
** ROW HOVER
*/
.dataTables_wrapper tbody tr:hover {
    background-color: #EBEBEB;
    color: black;
  }
   
/* .dataTables_wrapper tbody tr:hover > .sorting_1 {
    background-color: #EBEBEB;
    color: #0774f8;
  }

  .dataTables_wrapper tbody tr.selected > .sorting_1 {
    color: white;
  } */

/*
** SELECTED ROW
*/
table.dataTable>tbody>tr.selected>*,
table.dataTable> tbody > tr.selected:hover > *
   {
      box-shadow: inset 0 0 0 9999px #0FABDC !important;
      box-shadow: inset 0 0 0 9999px #0FABDC !important;
  }

/*
** SEARCHPANES COUNT ICON
*/
.dataTables_wrapper .badge-pill {
    background-color: #ffc107 !important;
}


/* .dataTables_wrapper .icon-link-pdf:hover {
  filter: brightness(150%) hue-rotate(90deg);
}

.dataTables_wrapper .icon-link-csv:hover {
  filter: brightness(150%) hue-rotate(270deg);
}

.dataTables_wrapper .icon-link-edi:hover {
  filter: brightness(150%) hue-rotate(180deg);
}

.dataTables_wrapper .icon-link-zip:hover {
  filter: brightness(150%) grayscale(100%);
} */

.dataTables_wrapper .icon-download-link:hover {
  filter: brightness(150%) !important;
}

.cancelled-row td {
  color: #f82649 !important;
}

.portal-off {
  filter: grayscale(100) !important;
}

.clickable-icon:hover {
  cursor: pointer !important;
  filter: brightness(120%) !important;
}

.disabled-icon {
  filter: grayscale(100%); 
  opacity: 0.5;
}

.dataTables_wrapper .history-icon {
  color: #304484 !important;
  opacity: 0.3 !important;
}

.dataTables_wrapper .history-icon:hover { 
  opacity: 1.0 !important;
}

/*
** ROWGROUP HEADINGS
*/

.dataTables_wrapper .dtrg-group th {
  background-color: #f1f1f9 !important;
}

.from-email {
  word-break: break-all !important;
}

.cases-from-header {
  width: 15% !important;
}

.cases-date-header {
  width: 10% !important;
}

.cases-subject-header {
  width: 30% !important;
}


/* THIS BREAKS RESPONSIVE FEATURE - FORCES COLUMNS INTO HORIZONTAL SCROLL */
/* set minimum width for columns with search bars */
/* .dataTables_wrapper th:has(input) {
  min-width: 8rem !important;
} */

/*
** RELATED ACCOUNTS
*/

#sub-accounts-tab .dataTables_wrapper table thead{
  display: none !important;
}

#sub-accounts-tab .paginate_button {
  font-size: 0.7rem !important;
}

#sub-accounts-tab .dataTables_filter label {
  text-align: right !important;
}


/*
** RECENTLY VISITED ORGS
*/
#recently-visited-organisations-table_wrapper .dataTables_scrollBody {
  border: none !important;
}

#recently-visited-organisations-table_wrapper .sorting_disabled {
  border: none !important;
}

#secondaryCard .card-body.w-100 {
  padding-top: 0 !important;
}

/*
** ALL ORGS
*/

#organisations-datatable tr:hover {
  cursor: pointer !important;
}