:root {
  --section-color: #b168aa;
  --primary-color: #b168aa;
  --smarties-purple: #b168aa;
  --smarties-purple-50: #faf3fa;
  --smarties-purple-100: #f6e9f5;
  --smarties-purple-200: #f1dff0;
  --smarties-purple-300: #e7d0e7;
  --smarties-purple-400: #dcc1dd;
  --smarties-purple-500: #d1b2d3;
  --smarties-purple-600: #c6a3c9;
  --smarties-purple-700: #c094bf;
  --smarties-purple-800: #bb85b4;
  --smarties-purple-900: #b168aa;
}

h1 {
  font-size: 2em;
  line-height: 1;
}

.h2 {
  color: #f37021;
  font-size: 1.5em;
}

.sidebar-feature-orange .h2 {
  color: #ffffff;
}

.sidebar-feature h2 {
  font-size: 1.5em;
  color: #fff;
  text-shadow: none;
}

.h3 {
  color: var(--smarties-purple);
  font-weight: bold;
}

.header2 {
  color: var(--smarties-purple);
  font-size: 1.23em;
  font-weight: bold;
}

.message,
div.error,
.sidebar-feature div.error {
  background: linear-gradient(to bottom, #f37021, #db6531);
  color: #ffffff !important;
  font-weight: bold;
  padding: 15px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.ok {
  font-weight: bold;
  padding: 15px;
  border: 0;
  background: linear-gradient(to bottom, #a8ed95, #3eaf1f);
  color: #fff;
  border-radius: 3px;
}

.warning,
div.warning,
table tr.warning {
  color: #dc291e;
  background: none;
}

.panel {
  border: 1px solid #ddd;
}

table {
  font-size: 1em;
}

.content {
  /* padding: 10px; */
}

.sidebar-feature table {
  width: auto;
}

.sidebar-feature tbody {
  border-top: none;
}

.sidebar-feature a {
  color: #ff9151;
}

.sidebar-feature input,
.sidebar-feature .dijitButton {
  color: #000;
}

table {
  width: 100%;
}

tr td,
tr th {
  padding: 0;
  border: none;
}

tbody {
  border: none;
}

.sidebar-feature h1 {
  color: #fff;
  font-size: 1.5em;
}

#div_password_retrieval {
  background-color: var(--smarties-purple-50);
  padding: 20px;
  border-radius: 10px;
}

.panel {
  border: 1px solid #ddd;
}

.login-cue {
  padding-bottom: 10px;
}

.boxed {
  /*background-color: #f2f2f2;*/
  border: 1px solid #ddd;
  padding: 2rem;
  border-radius: 10px;
}

.boxed table {
  background-color: #fff;
  width: 100%;
}

.boxed table td,
.boxed table th {
  border: 1px solid #ddd;
  color: #666;
}

.gray-panel {
  background: var(--smarties-purple-50);
  border: 0;
  border-radius: 5px;
  padding: 20px;
  color: black !important;
}

.na {
  color: #ccc;
}

table.campaigns_table {
  border-collapse: collapse;
}

table.campaigns_table td.subh {
  background-color: #f2f2f2;
}

table.campaigns_table thead {
  position: sticky;
  top: 0;
}

table.campaigns_table td,
table.campaigns_table th {
  padding: 4px;
}

table.campaigns_table td.combined {
  border-top: none;
  border-bottom: none;
}

.campaigns_table.nopadding th,
.campaigns_table.nopadding td {
  padding: 2px !important;
}

/**
 * Hack to style the "Grand total" row as bold.
 * The ID of the last item doesn't have an ID number, that's how we know.
 */
#tblCart.campaigns_table.last_row_bold tr#tblCart_item_grand_total td {
  font-weight: bold;
  color: black !important;
}

#tblCart.campaigns_table.last_row_bold tr#tblCart_item_grand_total td:last-child {
  border-bottom: 5px double black;
}

#tblCart.campaigns_table td.item_total_cell {
  border-bottom: 1px solid black;
}

.noborder td {
  border: none !important;
}

table.reports_table {
  border: 4px solid #ddd;
}

table.reports_table td {
  padding: 20px;
}

table.campaigns_table th {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px;
  border: 1px solid #ffffff;
  border-top: 0;
  border-bottom: 0;
}

table.campaigns_table td {
  border: 1px solid #f2f2f2;
  color: #333;
  padding: 14px;
}

table.tight td {
  padding: 4px;
}

table.campaigns_table.gantt td {
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
  height: 40px;
}

tr td.number,
tr th.number {
  text-align: right;
}

.cart {
  padding: 2px;
  background-color: #ccc;
  color: #000;
  font-size: 9px;
  border-radius: 3px;
}

.paid {
  padding: 2px;
  background-color: #090;
  color: #fff;
  font-size: 9px;
  border-radius: 3px;
}

.highlight {
  background-color: #ffff00;
}

#progressBar {
  border: 3px solid #eee;
  border-radius: 15px;
  padding: 10px;
  width: calc(100% - 15px);
  margin-bottom: 20px;
}

table.progress_table {
}

.progress_table td {
  text-align: center;
}

.progress_table td.active {
  background: #b168aa;
  color: #fff;
  border-radius: 100rem;
  font-weight: bold;
}

.step_sub {
  font-size: 0.8em;
  color: #ccc;
}

.fakeLink {
  color: #f37021;
  cursor: pointer;
}

label {
  display: inline;
  line-height: 1.4em;
}

.gray_bg {
  background: #eee;
  border: 1px solid #ddd;
}

.clear_float {
  clear: both;
}

.receipt_table td {
  padding: 30px;
}

.scorecard {
  font-size: 32px;
  font-weight: bold;
  padding: 12px 7px 3px;
  background: #fff;
  color: var(--smarties-purple);
}

.confidential {
  text-transform: uppercase;
  color: #ccc;
  font-size: 24px;
}

table.score_table {
  border-collapse: collapse;
}

table.score_table td {
  background-color: #ffffff;
  padding: 4px;
}

table.score_table td.h {
  background: none repeat scroll 0 0 transparent;
}

.noCloseIcon .dijitDialogCloseIcon {
  background:;
  width: 0px;
}

table.categories th,
table.categories td {
  padding: 3px;
}

table.categories td {
  border-bottom: 1px solid #ddd;
}

table.categories tr.highlighted {
  background-color: var(--smarties-purple-100);
}

.dimmed {
  color: #bbb;
}

.outlier {
  background-color: #eee;
}

/* fix for bootstrap / highslide conflict */
body.modal-open {
  height: auto;
}

.highslide-heading {
  background-color: #ffffff;
  margin-right: 25px !important;
}

tr.success * {
  color: green;
}

tr.danger * {
  color: red;
}

tr.warning * {
  color: #dc291e;
}

.glyphicon-remove {
  color: red !important;
}

.extension-popup {
  display: none;
  background: white;
  width: 800px;
  min-height: 200px;
  padding: 50px;
}
@media (max-width: 760px) {
  .extension-popup {
    width: 90%;
    min-height: 300px;
    padding: 15px;
  }
}
@media screen and (min-width: 760px) and (max-width: 1180px) {
  .extension-popup {
    width: 600px;
    min-height: 300px;
    padding: 30px;
  }
}

a.boxclose {
  float: right;
  position: absolute;
  right: -15px;
  top: -15px;
  cursor: pointer;
  color: #fff;
  border: 2px solid #ffffff;
  border-radius: 30px;
  background: #000000;
  font-size: 19px;
  font-weight: bold;
  display: inline-block;
  line-height: 0px;
  padding: 12px 8px;
  width: 31px;
  height: 31px;
}

a.boxclose:hover {
  color: #fff;
  text-decoration: none;
}
.boxclose:before {
  content: '×';
}

#sidebar-second {
  position: -webkit-sticky;
  position: sticky;
  top: 40px;
}

table.campaigns_table.voting_active td.subh {
  background-color: #d3ffde;
}

.judge-active {
  position: relative;
  font-size: 16px;
  border: 2px solid #64c56b;
  background-color: #c8e6c9;
  color: black;
  border-radius: 1000px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.judge-active .score {
  position: absolute;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  background-color: #0072ba;
  border-radius: 1000px;
  border: none;
  color: white;
  bottom: -8px;
  right: -10px;
  height: 18px;
}

.observer {
  background-color: #f2f2f2;
  border: 2px solid #aaa;
}

.incomplete {
  border-style: dashed;
  background-color: #ffffff;
}

.observer .score {
  background-color: #bbb;
}

.conflicted {
  background-color: #e6c8c8;
  border-color: #c56b6b;
}

.conflicted .score {
  background-color: #dc291e;
}

.desaturate {
  filter: grayscale(100%);
  opacity: 0.2;
}

.campaigns_table .tr-hover:hover td {
  background-color: #ffffe0;
}

.ellipsis {
  width: 20px;
  font-size: 11px;
  display: block;
  height: 11px;
  width: 13px;
}

.ellipsis-animated {
  display: inline-block;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(4, end) infinite;
  text-align: left;
  font-size: 8px;
  line-height: 14px;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 15px;
  }
}

.well {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 5px;
  background-color: var(--smarties-purple-50);
}

/* Styles for disabled grid rows */
.disabled-row {
  opacity: 0.5;
  background-color: #f5f5f5 !important;
}

.disabled-row input,
.disabled-row select,
.disabled-row .dijitTextBox,
.disabled-row .dijitSelect {
  background-color: #e5e5e5 !important;
  color: #999 !important;
}

.checkbox-label {
  cursor: pointer;
}

button {
  border-radius: 100rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background: var(--primary-color);
}

.btn {
  background: var(--primary-color);
  color: white;
  font-weight: 900;
  transition: all 0.3s;
}

.btn:hover {
  background: #ddd;
  color: var(--primary-color) !important;
}

.btn.btn-small {
  background: var(--primary-color);
  color: white;
  font-weight: 900;
  transition: all 0.3s;
}

.btn.btn-small:hover {
  background: #ddd;
  color: var(--primary-color);
}

.input.textarea {
  position: relative;
}

textarea {
  resize: vertical;
  outline: none !important;
}

button {
  outline: none !important;
}

meter {
  height: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
}

table .deletable:nth-child(-n + 9) .fakeLink.delete {
  display: none !important;
  pointer-events: none;
}

.smaller {
  font-size: 10px;
}

.smaller.source:not(:empty) {
  padding-top: 10px;
}

.smaller.source:not(:empty)::before {
  content: 'Source: ';
}

table.data-table {
  margin-top: 10px;
  margin-bottom: 10px;
}

table.data-table th,
table.data-table td {
  padding: 5px;
}

table.data-table th {
  background-color: var(--smarties-purple-200);
  color: black;
  font-weight: bold;
}

table#Contributor td label,
table#Contributor td span label {
  font-weight: normal !important;
}

/* IntlTelInput styling */
#phone-container {
  margin-top: 2px;
}

.iti {
  width: 100%;
  max-width: 300px;
}

.iti__flag-container {
  z-index: 0;
}

.iti-container {
  .iti__flag-container {
    z-index: 1;
  }
}

#phone-input,
#secondary-phone-input {
  width: 210px;
  padding: 4px;
  border: 1px solid #b3b3b3;
  border-radius: 3px;
}

/* NDA Agreement Styles */
#nda-content-container {
  background: #fff;
  /* box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); */
  padding: 10px;
  border-radius: 5px;
}

#scroll-required-message {
  font-weight: 500;
}

#acceptance-ui-wrapper {
  position: relative;
}

#acceptance-ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  border-radius: 5px;
}

.scroll-indicator {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

#acceptance-ui {
  .dijitCheckBox {
    border-color: var(--smarties-purple);
    &.dijitCheckBoxDisabled {
      border-color: #ccc;
      &.dijitCheckBoxChecked {
        border-color: var(--smarties-purple);
      }
    }
  }

  & label {
    font-weight: normal;
    cursor: pointer;
    user-select: none;
  }

  & input[type='text']#acceptance-name {
    width: 100%;
    border: 2px solid var(--smarties-purple);
    border-radius: 4px;
    font-size: 21px;

    &:disabled {
      background-color: #f8f9fa;
      border-color: #ccc;
      cursor: not-allowed;
    }

    &:focus {
      border-color: #66afe9;
      outline: none;
      box-shadow: 0 0 0 0.2rem rgba(102, 175, 233, 0.25);
    }
  }
}

#begin-judging-bottom {
  transition: all 0.2s ease;

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    &:hover {
      color: white !important;
    }
  }

  &:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Override Bootstrap 3 Safari-specific line-height fix that causes text offset */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  input[type=date].form-control,
  input[type=time].form-control,
  input[type=datetime-local].form-control,
  input[type=month].form-control {
    line-height: normal;
  }
}
