/* Custom Styles Unique to this App */

/* View-As widget */
#view-as-widget .select2.select2-container {
  min-width: 175px;
}

/* General styles */
.nowrap th {
  white-space: nowrap;
}
.numeric {
  text-align: right;
  font-family: Courier;
  font-size: 1.04em;
}
.table-sm th.numeric-th,
.table-sm td.numeric {
  padding-right: 0.625rem;
}
td.negative.numeric {
  padding-right: 0.15rem;
}
.table-sm td.negative.numeric {
  padding-right: 0;
}

/* Table group tweaks */
table.dataTable tr.dtrg-group.dtrg-level-0 td a {
  color: #2C679B;
}

/* Make tooltips prominent */
[data-toggle=tooltip] {
  border-bottom: 1px dashed #80bdff;
}
.no-tooltip-indicator {
  border-bottom: initial;
}
/* Make tooltips on invalid inputs red */
.tooltip.bs-tooltip-top.is-invalid .arrow:before {
  border-top-color: #dc3545;
}
.tooltip.bs-tooltip-bottom.is-invalid .arrow:before {
  border-bottom-color: #dc3545;
}
.tooltip.is-invalid .tooltip-inner {
    background-color: #dc3545;
}

/* Other text colors */
.text-purple {
  color: #9000ea;
}

/* Other Badge Colors */
.badge-orange {
  /* color: #fff;
  background-color: #ea9800; */
  /* Accessible version: */
  color: #212529;
  background-color: #FFB62E;
}
.badge-purple {
  color: #fff;
  background-color: #9000ea;
}


/*  Forms  */
.form-check {
  padding-left: 1.75rem;
}
.form-check-input {
  margin-left: -1.5rem;
}


/* Fix input display */
input[type=file] {
  line-height: 1;
}
input[type="checkbox"],
input[type="radio"] {
  transform: scale(1.5);
  /* margin-left: 3px;
  margin-top: 10px; */
}

/* Fix focus outlines */
a:focus,
input[type=checkbox]:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  border-radius: 0.2rem;
}

/* Fix focus outlines for selectize inputs */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: 0;
  outline-offset: 0px;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  border-radius: 0.25rem;
}

/* Fix highlighting for selected selectize options */
.selectize-dropdown .option.currently-selected {
  background: #007bff;
  color: #fff;
}

/* Fix dropdowns to appear above tooltips */
.selectize-dropdown, .selectize-dropdown.form-control {
  z-index: 10000;
}

/* Fix outlines for selectize dropdowns */
.selectize-control .selectize-input.focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.is-invalid .selectize-control .selectize-input {
  border-color: #dc3545;
}
.is-invalid .selectize-control .selectize-input.focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Custom extra small button */
.btn-xs {
  padding: 0 0.25rem;
  font-size: 0.775rem;
}

/* Make collapsible card headers look like links */
.card-header[data-toggle=collapse]:hover {
  background-color: rgba(0, 0, 0, 0.07);
  cursor: pointer;
}



/*  Skeleton Loading Animation  */
.loading-wireframe {
  background-color: #f9f9f9;
  overflow: hidden;
  position: relative;
}
.loading-wireframe::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  transform: translateX(-100%);
  background: linear-gradient(to right, transparent 0%, #E8E8E8 50%, transparent 100%);
  animation: load 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}
@-webkit-keyframes load {
  100% {
    transform: translateX(100%);
  }
}
@keyframes load {
  100% {
    transform: translateX(100%);
  }
}


/* Column toggler menu styles */
#columns-menu {
  max-height: 50vh;
  overflow-y: auto;
}
#columns-menu label.dropdown-item {
  margin: 0;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}
#columns-menu label.dropdown-item input {
  transform: scale(1.5);
  margin-right: 10px;
}
