/* purgecss start ignore */

/* SCP STYLING */

/* START COLORS STYLING */
.infected {
  color: #CC2D30;
}

.shield {
  color: #008d4c;
}

.btn-primary {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2),0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--primary-focus);
  border: 1px solid var(--primary-focus);
  box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2),0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12);
}

.btn-secondary {
  border: 1px solid var(--secondary-border);
  color: var(--secondary);
  background-color: white;
}

.btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled):active {
  background-color: var(--secondary-focus);
  color: var(--secondary);
  border: 1px solid var(--secondary);
  box-shadow: none;
}
/* END COLORS STYLING */

/* START PROJECT LIST STYLING */
.projectList {
  list-style: none;
  padding: 0;
}

.projectList li {
  margin: 0.5em;
}

.projectList li a {
  padding-left: 1.5em;
}
/* END PROJECT LIST STYLING */

/* START SWITCH/SLIDER STYLING */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 25px;
  margin: 0.8em 0.8em 0.8em 5px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings {
  display: grid;
  grid-template-columns: 1fr 20fr;
  position: relative;
}

.settings small {
  grid-column: span 2;
  margin-left: 5px;
  margin-bottom: 1em;
}

.settings div {
  grid-column: span 2;
}

.settings p {
  margin: 0;
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
   background-color: var(--primary)
}

[readonly] {
  pointer-events: none;
}

.switch[readonly] input + .slider {
  background-color: #E9ECEF;
  cursor: default;
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-focus);
}

input:checked + .slider:before {
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
/* END SWITCH/SLIDER STYLING */

/* START LIST FILTERS STYLING */
.filters select, .filters input {
  min-width: 60px;
  margin-bottom: 5px;
  padding: 9px 4px 6px 4px;
  border: 1px solid lightgrey !important;
  border-radius: 5px;
}
/* END LIST FILTERS STYLING */

/* START SLIMSELECT STYLING */
/* Fancy select bar */
.ss-main .ss-multi-selected, .ss-main .ss-single-selected {
  min-height: 38px !important;
  border-radius: 0 !important;
}

.ss-plus {
  margin-top: 4px !important;
}

.form-control {
  height: unset;
}

.ss-value {
  font-size: 1rem !important;
  background-color: #28a745 !important;
}

.ss-list {
  overflow: scroll !important;
}

.invalid .ss-main .ss-single-selected, .invalid .ss-main .ss-multi-selected {
  border: 1px solid #dc3545;
}

/* Special settings for Project Update */
.not-on-project .ss-main .ss-multi-selected, .not-on-project .ss-main .ss-single-selected {
  border: 1px solid #F39C12;
}
.not-on-project .invalid-feedback {
  color: #F39C12;
}
/* END SLIMSELECT STYLING */

/* Add styling for Recommend Container Warning */
#div_id_file_upload-upload .warning {
  font-size: 100%;
  display: block;
  margin-top: .25rem;
}

/* Fix for modal close buttons looking like a button (grey background) in Chrome and WebKit based browsers */
div.modal [type=button] {
  -webkit-appearance: none;
}

/* Fix for text color in disabled field changing color on WebKit based browsers */
.form-control:disabled, .form-control[readonly] {
  -webkit-text-fill-color: #495057;
}

.color-red {
  color: red;
}

/* START TABLE STYLING */
table {
  overflow-wrap: break-word;
}

/* Remove top border of table */
.remove-top-border tr:first-child td {
  border-top: none;
}

td.indent {
  text-indent: 2em;
}

table.remove-top-border {
  width: 100%;
  margin-bottom: 0;
}

table.table-fixed {
  table-layout: fixed;
}

table.remove-top-border td {
  vertical-align: middle;
}
/* END TABLE STYLING */

/* START MY ACCOUNT STYLING */
/* AccountView adjust margins between switches in the same category */
label.notfirst {
  margin-top: 0;
}

td.notfirst {
  vertical-align: top;
}

/* Adjust width of span in list in AccountView */
.scp-account-span {
  min-width: 250px;
}

/* Add padding to card in AccountView */
.scp-account-card {
  margin-bottom: 1em;
  max-width: 1000px;
}

.scp-account-change-form {
  max-width: 850px;
}

.scp-account-change-button {
  min-width: 100px;
  margin-top: 1em;
}

.scp-account-form-button {
  margin-top: 1em;
}
/* END MY ACCOUNT STYLING */

/* START MISCELLANEOUS STYLING */
/* Shows errors */
.invalid-feedback {
  display: block;
}

/* Makes sure buttons with a form are displayed on one line */
.button-form {
  display: inline-block;
}

/* Hides element */
.hidden {
  display: none;
}

/* Shows element */
.block {
  display: block;
}

.collapse:not(show) {
  max-height: 0;
  overflow: hidden;
  display: block !important;
  transition: all 0.3s ease-out;
}

.collapse.show {
  max-height: 100vh;
  transition: all 0.5s ease-in;
}

ul.no-bullets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
/* END MISCELLANEOUS STYLING */

/* purgecss end ignore */
