:root {
  --main-color: #663be9;
}

body {
  opacity: 1;
  overflow-x: hidden;
}
body.fader {
  -webkit-transition: all .2s;
  -moz-transition: all .2s;
  transition: all .2s;
  opacity: 0.05;
}

.menu .app-brand {
  height: 64px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.menu .app-brand img {
  max-width: 180px;
}

.hide {
  display: none;
}

.show {
  /* display: block; */
}

.questionaire {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 400px;
}

.group-ou {
  background: #dedede;
  color: #999;
  text-align: center;
  font-size: 10px;
  padding-top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  left: -22px;
  bottom: -18px;
}

.group-use {
  border-left: 1px solid #999;
  position: relative;
}

.group-use .col-form-label {
  padding-left: 25px;
}

.group-use::after,
.group-use::before {
  background-color: #999;
  content: '';
  height: 1px;
  width: 10px;
  left: 0;
  top: 0;
  position: absolute;
}

.group-use::before {
  top: auto;
  bottom: 0;
}

/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

#sidebar {
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 50px 10px;
  background-color: var(--main-color);
  color: white;
}

#sidebar li {
  position: relative;
  margin-bottom: 15px;
}

#sidebar li a {
  color: white;
}

#sidebar li span {
  display: none;
  position: absolute;
  top: 0;
  left: 120%;
  background: var(--main-color);
  color: white;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.8rem;
  width: 150px;
  transition: all .2s ease;
}

#redo-editor {
  z-index: 9998;
  background-color: #fff;
  position: fixed;
  top: 45px;
  left: -105%;
  bottom: 0;
  width: 100%;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: all .3s ease-in;
  overflow-y: auto;
}

#redo-editor.active {
  left: 0;
}

#redo-editor .closer {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #900;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  text-align: center;
  width: 25px;
  height: 25px;
}

.target-editing {
  color: #900 !important;
  text-decoration: underline;
}

.bs-valutech {
  border: 1px solid #663be9;
  border-left-width: 5px;
}

.bdang-valutech {
  border: 1px solid #900;
  border-left-width: 5px;
}

.bg-semi-valutech {
  background-color: #663be970;
}

.bg-muted {
  background-color: #f2f2f2;
}

.bg-hover:hover {
  background-color: rgba(250,250,250,0.3);
}

.bg-body {
  background: hsla(187, 31%, 95%, 1);
  background: radial-gradient(circle, hsla(187, 31%, 95%, 1) 0%, hsla(216, 31%, 90%, 1) 100%);
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

.menu-texts {
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
}

.menu-vertical .menu-inner .menu-header:first-child {
  margin-top: 0;
}

.bg-menu-theme .menu-inner > .menu-item.done > .menu-link {
  color: #137c56;
}

.mode-wizard .badge {
  background-color: #03c3ec52;
}

.mode-wizard .badge-50 {
  background-color: #eee;
}

.mode-advanced .badge {
  background-color: #03c3ec;
}

.mode-advanced .bxs-bulb {
  color: #ffeb00;
}

.bar {
  background: #5dd95d;
  height: 2px;
  font-size: 10px;
  transition: all .2s ease;
}

.send-file {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--main-color);
  color: white;
  display: inline-block;
  text-align: left;
  cursor: pointer;
}

.sent-file {
  color: var(--main-color);
  background: transparent;
  text-align: center;
}

.sent-file span {
  display: table;
  margin: 20px auto;
  color: white;
  background: var(--main-color);
  border-radius: 6px;
  padding: 8px 12px;
}

.send-file input[type=file] {
  position: fixed;
  top: -1000px;
}

.send-file .error {
  display: none !important;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  display: none;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
  border: 1px solid #ddd;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: block;
  background: transparent;
  border: 0;
  font-size: 20px;
  margin: 6px 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border: 0;
  font-weight: 400;
  padding-left: 7px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 5px;
  color: var(--main-color);
}

.select2-container--default .select2-search--inline .select2-search__field {
  border-left: 1px solid #eee;
}

.select2-container--default.select2-container--open .select2-selection--multiple,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--main-color);
}

input[type=radio],
input[type=checkbox] {
  width: auto;
  display: inline-block;
  height: auto;
  accent-color: var(--main-color);
}

.form-label {
  color: #666;
}

.the-input input {
  text-align: center;
}

.the-input input:focus .form-label,
.the-input select:focus .form-label,
.the-input textarea:focus .form-label {
  color: var(--main-color);
}

.the-input {
  display: flex;
  justify-content: start;
  flex-flow: row;
  flex-wrap: wrap;
}

.the-input.centered {
  justify-content: center;
}

@media (min-width: 1200px) {
  .layout-menu-collapsed:not(.layout-menu-hover):not(.layout-menu-offcanvas):not(.layout-menu-fixed-offcanvas) .layout-menu .app-brand .layout-menu-toggle {
    display: block !important;
  }
  .layout-menu-collapsed .layout-menu.hide-menu {
    left: -300px;
  }
  .layout-menu-collapsed .layout-menu .app-brand .layout-menu-toggle {
    transition: all .2s ease;
    left: 300px;
  }
  .layout-menu-collapsed .layout-menu .app-brand .layout-menu-toggle i {
    transform: rotate(180deg);
  }
}

@media (max-width: 767px) {
  #sidebar svg {
    margin-top: -9px;
  }
  /* tabelas responsivas */
  .mobile-table {
    border: 0;
  }
  .mobile-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .mobile-table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  .mobile-table th,
  .mobile-table td {
    width: 100%;
    border-bottom: 1px solid #ddd;
    background: #f9fafb;
    display: block;
    font-size: .8em;
    text-align: left !important;
  }
  .mobile-table td:last-child {
    border-bottom: 0;
  }

  .container {
    margin-top: 60px;
  }
  #sidebar {
    bottom: auto;
    right: 0;
    font-size: 18px;
    padding: 5px;
  }
  #sidebar ul {
    text-align: center;
    width: 100%;
    padding-top: 5px;
  }
  #sidebar ul li {
    display: inline-block;
    margin: 0 15px;
  }
  .col-form-label {
    margin-bottom: 10px;
  }
  .the-input.xs-centered {
    justify-content: center;
  }
}

.checkboxes,
.radios {
  position: relative;
}
.checkboxes input,
.radios input {
  cursor: pointer;
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}
.checkboxes span,
.radios span {
  cursor: pointer;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 0 10px 10px 0;
  background: #f9f9f9;
  color: var(--main-color);
  text-align: center;
  padding: 15px 30px;
  border-radius: 6px;
  /*width: 135px;*/
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid #32488f45;
}
.checkboxes span.max-height,
.radios span.max-height {
  min-height: 175px;
  width: 150px;
}
.checkboxes span.semi-height,
.radios span.semi-height {
  min-height: 70px;
}
.checkboxes span.no-height,
.radios span.no-height {
  min-height: auto;
  padding: 7px 14px;
  font-size: 13px;
}
.checkboxes svg.icon,
.radios svg.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  fill: var(--main-color);
}
.checkboxes:hover input ~ span,
.radios:hover input ~ span {
  background-color: #a2b8ff2b;
}
.checkboxes input:checked ~ span,
.radios input:checked ~ span {
  background-color: var(--main-color);
  color: white;
}
.checkboxes input:checked ~ span svg.icon,
.radios input:checked ~ span svg.icon {
  fill: #fff;
}

.number-type {
  user-select: none;
  display: flex;
  align-items: center;
}

.number-type input {
  max-width: 60%;
  text-align: center;
  margin: 0 5px;
}

.number-type .qtybtn {
  cursor: pointer;
  opacity: 0.4;
  transition: all .2s ease;
  padding-top: 5px;
}
.number-type .qtybtn:hover,
.number-type .qtybtn:focus,
.number-type .qtybtn:active {
  opacity: 1;
}

.swal2-container {
  z-index: 9998 !important;
}

.controles {
  position: absolute;
  right: 70px;
  top: 15px;
  z-index: 90;
  font-size: .7em;
}
.controles a {
  opacity: 0.5;
  transition: all .3s ease;
}
.controles a:hover {
  opacity: 1;
}

/*--------------------------------------------------------------
# Ajuda
--------------------------------------------------------------*/

.helper {
  cursor: help;
}
.helper::before {
  content: url('/form/assets/img/help.png');
  display: inline-block;
  margin-left: 5px;
  transition: all .2s ease;
  -moz-transition: all .2s ease;
  -webkit-transition: all .2s ease;
  vertical-align: middle;
}
.helper:hover::before,
.helper:active::before,
.helper:focus::before {
  filter: invert(1);
}

#help {
  display: none;
  width: 380px;
  position: fixed;
  padding: 30px;
  z-index: 99999;
  background: white;
  top: 0;
  bottom: 0;
  right: -380px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: all .3s ease-in;
  overflow: auto;
}

@-webkit-keyframes slide {
  100% { right: 0; }
}
@keyframes slide {
  100% { right: 0; }
}

#help .close {
  text-align: right;
}
#help .close::before {
  content: 'x';
  cursor: pointer;
  border: 1px solid #900;
  border-radius: 50%;
  color: #900;
  display: inline-block;
  padding: 2px 10px;
  vertical-align: middle;
  text-align: center;
  transition: all .2s ease;
  -moz-transition: all .2s ease;
  -webkit-transition: all .2s ease;
}
#help .close:hover::before,
#help .close:active::before,
#help .close:focus::before {
  color: white;
  background: #900;
}
#help.show {
  display: block;
  -webkit-animation: slide .2s forwards;
  animation: slide .2s forwards;
}
#help h3 {
  margin: 0 0 30px;
}

html.show-calc .layout-wrapper::before,
html.show-help .layout-wrapper::before {
  content: '';
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  position: fixed;
}

.table-sticky th:first-child,
.table-sticky td:first-child {
  background-color: #fff;
  border-right: 1px solid #d6d6d6;
}

@media (min-width: 992px) {
  .table-sticky th:first-child,
  .table-sticky td:first-child {
    left: 0;
    position: sticky;
  }
  #redo-editor {
    top: 0;
    left: -350px;
    width: 350px;
  }
  #redo-editor.active {
    left: 45px;
  }
  #sidebar li:hover span {
    display: block;
  }
  .w-md-50 {
    width: 50%;
  }
}

@media print {
  #intercom-frame,
  #intercom-facade-btn,
  .opacity-50:not(.opacity-100),
  #finished,
  #redo-editor,
  #sidebar {
    display: none !important
  }
}