/* DATATABLE BUTTONS & INPUTS */
.dataTables_wrapper .dt-buttons {
    display: flex;
}

.dataTables_wrapper .dt-button {
    min-width: 90px;
    width: auto !important;
}

.dataTables_wrapper .dt-button.buttons-pdf.buttons-html5 {
    display: none;
}

.dataTables_wrapper .paginate_button {
    color: var(--font-color1)  !important;
    font-size: var(--font-size2) !important;
    border: none !important;
    border-radius: 3px !important;
}

.dataTables_wrapper .paginate_button .current {
    background: linear-gradient(to top, var(--background-color2) 0%, var(--background-color3) 100%) !important;
    color: var(--font-color2) !important;
}

.dataTables_wrapper .dataTables_processing>div:last-child>div {
    background: var(--border-color2) !important;
}

.dataTables_wrapper .paginate_button:not(.disabled):hover {
    box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset !important;
    background-image: linear-gradient(144deg, rgba(0, 177, 255, 0.9), rgba(0, 70, 151, 0.9), rgba(88, 5, 205, 0.9) 85%) !important;
    color: var(--font-color2) !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: var(--font-size2) !important;
    color: var(--font-color1)  !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    font-size: var(--font-size3) !important;
    font-weight: bold !important;
    color: var(--font-color2) !important;
    border: outset 1px var(--border-color2) !important;
    border-radius: 4px !important;
    padding: 4px !important;  
    background-color: transparent !important;
    box-sizing: border-box !important;
}

.dataTables_wrapper .dataTables_length label select option {
    background-color: var(--background-color2) !important;
    color: var(--font-color1)  !important;
}

.dataTables_wrapper .dataTables_length label select option:hover {
    background-color: var(--background-color3) !important;
    color: var(--font-color2)  !important;
}

.table-header {
	display: flex;
	flex-direction: row;
  align-items: center;
  justify-content: center;
	gap: 5px
}
.table-header .help-message {
	display: flex;
	align-items: center;
    justify-content: center;
	color: var(--border-color2);
	background-color: var(--background-color1);
	border: var(--border-primary);
	border-radius: 50%;
	height: var(--icon-size-normal);
	width: var(--icon-size-normal)
}
span[data-title]:hover:after {
  font-weight: normal;
  content: attr(data-title);
  padding: 4px 8px;
  color: var(--font-color1);
  position: absolute;
  white-space: nowrap;
  -moz-border-radius: var(--border-radius);
  -webkit-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
  margin: var(--border-radius);
  -moz-box-shadow: 0px 0px 5px 2px var(--background-color1);
  -webkit-box-shadow: 0px 0px 5px 2px var(--background-color1);
  box-shadow: 0px 0px 5px 2px var(--background-color1);
  background-color: var(--background-color2);
  transform: translateY(100%);
  z-index: 10000000
}

table {
    display: none;
    table-layout: fixed !important;
    background-color: transparent;
    border-collapse: collapse !important;
    margin-inline-start: auto;
    margin-inline-end: auto;
    text-indent: initial;
    color: var(--font-color1);
    font-size: var(--font-size1);
    width: 100%;
    min-width: 100%;
    max-height: 100%;
    height: calc(100% - 60px);
    outline: none;
    border-radius: 10px;
    overflow: auto;
    border: 0;
  }
  
  div.dataTables_wrapper {
    display: flex;
    width: 100%;
    /* max-width: 100%; */
    height: 100%;
    margin: 0 auto;
    color: var(--font-color2);
    flex-flow: row wrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    flex-direction: row;  
    padding: 5px;
    /* gap: 5px; */
  }
  
  .dataTables_info {
    flex-grow: 10;
  }
  
  table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%
  }
  
  table.dataTable > tbody > tr.child ul.dtr-details > li {
    border-bottom: 1px solid var(--background-color4) !important;
    margin: 2px 0.5em 2px 15em !important;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
  }
  
  table.dataTable.dtr-column > tbody > tr > td.dtr-control,
  table.dataTable.dtr-column > tbody > tr > th.dtr-control,
  table.dataTable.dtr-column > tbody > tr > td.control,
  table.dataTable.dtr-column > tbody > tr > th.control {
    display: flex  !important;
    align-items: center;
    justify-items: start;
    justify-content: space-between;
    align-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
  }
  
  table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
  table.dataTable.dtr-column > tbody > tr > th.dtr-control:before, 
  table.dataTable.dtr-column > tbody > tr > td.control:before, 
  table.dataTable.dtr-column > tbody > tr > th.control:before {
    left: 0% !important;
    position: relative !important;
    margin: 0 !important;
  }
  
  table.dataTable tbody tr.child ul.dtr-details li .dtr-title {
    text-align: left;
  }
  
  table.dataTable tbody tr.child ul.dtr-details li .dtr-title::first-letter {
    text-transform: capitalize;
  }
  
  table.dataTable tbody tr.child ul.dtr-details li .dtr-data {
    text-align: right;
  }
  
  table thead {
    display: table;
    table-layout: fixed !important;
    top: 0px;
    width: 100%;
    position: sticky;
    border-radius: 0;
    text-align: center;
    vertical-align: middle;
    z-index: 2;
  }
  
  table thead tr {
      background-color: var(--background-color3);
  }
  
table th, 
table td {
    box-sizing: border-box !important;
    border: none !important;
    text-align: center !important;
    width: 10em !important;
    text-align: right;
}
table td.dataTables_empty {
  text-align: start !important
}
  
table tbody {
    background-color: var(--background-color3) !important;
}
  
table td span {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    gap: 5px;
}

table td span input {
  background-color: var(--background-color2) !important
}

table td span.not-default {
  opacity: 0.2;
}
table td span.not-default input {
  color: var(--font-color3);
  border-color: var(--font-color3) !important
}

table td span.not-in-system {
  opacity: 0.6
}
table td span.not-in-system input {
  font-weight: normal;
}
  
table td input {
  width: 6em !important;
}

table.dataTable thead tr>.dtfc-fixed-left,
table.dataTable thead tr>.dtfc-fixed-right,
table.dataTable tfoot tr>.dtfc-fixed-left,
table.dataTable tfoot tr>.dtfc-fixed-right,
table.dataTable tbody tr>.dtfc-fixed-left,
table.dataTable tbody tr>.dtfc-fixed-right {
  background-color: var(--background-color4) !important;
}
  
  table.dataTable thead > tr > th.sorting {
    text-align: center;
  }
  
  table thead th::first-letter {
    text-transform: capitalize;
  }
  
  table tbody {
      display: table;
    table-layout: fixed !important;
    width: 100%;
      vertical-align: middle;
      overflow: auto;
    z-index: 1;
  }
  
  table tr {
    border: 1px solid var(--background-color2);
  }
  
  table tbody tr td:first-child {
    text-align: left;
  }
  
  table thead:hover {
    background-color: var(--background-color2);
    border-collapse: collapse;
    border: none !important;
    border-top-left-radius:10px !important;
    border-top-right-radius:10px !important;
  }
  
  table tr:first-child td:last-child{
    border-top-right-radius:10px;
  }
  table tr:last-child td:first-child{
    border-bottom-left-radius:10px;
  }
  table tr:last-child td:last-child{
    border-bottom-right-radius:10px;
  }
  table tr:first-child:hover td:last-child{
    border-top-right-radius:10px;
  }
  table tr:last-child:hover td:first-child{
    border-bottom-left-radius:10px;
  }
  table tr:last-child:hover td:last-child{
    border-bottom-right-radius:10px;
  }

#subsPlanTable tr th:first-child, #subsPlanTable tr td:first-child {
    width: 15em !important;
}

/* #subsPlanTable_wrapper {
  min-width: calc(15em + 13 * 10em) !important;
  overflow-x: auto
} */
#subsPlanTable {
  width: calc(15em + 13 * 10em) !important;
  min-width: 100%;
  overflow-x: auto
}
#subsPlanTable tbody, #subsPlanTable thead {
  width: calc(15em + 13 * 10em) !important;
  min-width: 100%;
  overflow-x: auto
}

/* PIPELINE MODE */
#substitution-plan-page.single-mode .pipeline-mode-extra-options,
#substitution-plan-page.single-mode #subsPlanTable_pipeline_wrapper {
  display: none;
}
#substitution-plan-page.single-mode #subsPlanTable_wrapper {
  display: flex;
}
#substitution-plan-page.single-mode #subsPlanTable {
  display: block;
}
/* SINGLE-PIPE MODE */
#substitution-plan-page.pipeline-mode .pipeline-mode-extra-options,
#substitution-plan-page.pipeline-mode #subsPlanTable_pipeline_wrapper {
  display: flex;
}
#substitution-plan-page.pipeline-mode #subsPlanTable_pipeline {
  display: block;
}
#substitution-plan-page.pipeline-mode #subsPlanTable_wrapper {
  display: none;
}

#pipelineTableMessage {
  float: right;
  color: darkorange
}

.dataTables_wrapper .bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}