html {
  width: 100%;
  overflow-y: auto !important;
}

body {
  overflow-x: hidden !important;
}

.card {
  border-radius: 0.5rem !important;
}

body.show-spinner>main {
  overflow: hidden !important;
}

/* Hide everything under body tag */
body.show-spinner>* {
  opacity: 0;
}

/* Spinner */
body.show-spinner::after {
  content: " ";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: rgba(0, 0, 0, 0.3);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  position: fixed;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

body{
  min-height: calc(100% - 79px);
}

/* menu changes */
.navbar{
  height: 50px;
  padding: 0.5rem 0 0.5rem 0
}

.menu{
  padding-top: 50px;
  height: calc(100% - 50px) !important
}

.logo{
  background-size: 40%;
}

/* main page according to new menu format */
main {
  margin-top: 75px;
  margin-right: 25px;
  margin-bottom: 20px;
  /* margin-left: var(--main-ml)!important; */
  margin-left: 120px!important;
}
@media (max-width: 1439px){
  main {
    margin-left: 110px !important;
  }
}
@media (max-width: 1199px) {
  main {
    margin-left: 100px !important;
  }
}
@media (max-width: 767px){
  main {
    margin-left: 15px !important;
  }
}

/* list table changes */

.data-table-rows table td{
  padding: 0.4rem;
}

table.dataTable td {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* page footer */

footer.page-footer{
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  height: 60px;
}

.logo-mobile {
  background-size: 100%;
}

.formButtonPosition{
  text-align: center;
}

/* Include buttons */
.form-group .btAddItem{
  padding: 2px 4px 2px 4px;
  border-radius: 8px;
}

.custom-scroll-list{
  max-height: 260px;
  overflow-y: scroll;
}

.searchStandardSelected{
  width: 100%;
}

.searchStandardSelected tbody tr td{
  cursor: pointer;
}

.searchStandard tbody tr td{
  cursor: pointer;
}

.w100{
  width: 100%;
}

.mg-left0{
  margin-left:0px
}

.menu .sub-menu {
  
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 192px !important;
}

.fileList {
  padding-top: 10px;
  max-height: 300px;
  overflow-y: scroll;
}

.fileSection {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fileSection p{
  width: 100%;
  height: 15px;
  text-align: center;
  margin: 0px;
}

.fileSection i{
  width: 100%;
  height: 15px;
  text-align: center;
  margin: 0px;
}

.fileSection button{
  padding: 4px 8px 4px 8px;
  margin-left: 2px;
}

.padding4 {
  padding: 4px 4px 4px 4px !important;
}

.card-body {
  padding: 16px 16px 16px 16px !important;
}

.new-list{
  height: 187px;
}


.menu .main-menu {
  height: calc(100% - 50px) !important;
  width: 90px;
  background-color: var(--theme-color-1);
}

.menu .main-menu ul li a {
  color: #fff;
}

.menu .main-menu ul li a:hover {
  color: #d1d1d1;
}

.menu .main-menu ul li a:focus {
  color: #d1d1d1;
}

.menu .sub-menu {
  height: calc(100% - 45px);
  width: 240px;
  left: 80px;
}

#sub-menu ul.list-unstyled li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sub-menu ul.list-unstyled li a {
  flex-grow: 1;
}

.favorite-star {
  cursor: pointer;
  font-size: 16px;
  padding: 10px;
  color: #b0b0b0;
  text-shadow: 0 0 0 transparent;
  transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

.favorite-star.active {
  color: #ffc107!important;
  text-shadow: 0 0 0 #ffc107!important;
}

.logo-mobile {
  background-image: url('../logos/logo.png');
}

.files-container, .dashboard-approvals {
  max-height: 20em;
  height: 20em;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

#home-service-orders-container .card {
  max-height: 20em;
  height: 20em;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

#qrCodePlace {
  text-align: right;
}

.logoImg {
  margin-top: 15px;
  text-align: right;
}

.logoImg img {
  width: 90px;
}

#qr-code-container {
  text-align: right;
}

.logo-img {
  margin-top: 15px;
  text-align: right;
}

.logo-img img {
  width: 90px;
}

.btn-microsoft {
  font-family: 'Segoe UI Regular';
  font-size: 15px;
  font-weight: 600;
  font-color: #5e5e5e;
  background-color: #FFFF;
  border: 1px #8c8c8c8c;
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding-right:12px;
  padding-left: 12px;
  height: 41px;
}

.window {
  font-weight: bold;
  cursor: pointer;
  border:1px solid;
  box-shadow: 0 1px 15px rgba(0, 0, 0, .09), 0 1px 6px rgba(0, 0, 0, .09);
  -o-box-shadow: 0 1px 15px rgba(0, 0, 0, .09), 0 1px 6px rgba(0, 0, 0, .09);
  -webkit-box-shadow: 0 1px 15px rgba(0, 0, 0, .09), 0 1px 6px rgba(0, 0, 0, .09);
  -moz-box-shadow: 0 1px 15px rgba(0, 0, 0, .09), 0 1px 6px rgba(0, 0, 0, .09);
  -moz-border-radius:0.3em;
  border-radius:0.3em;
  width: 10em; height: auto;
  padding: 0.5em 0em;
  text-align:center;
  z-index:1;
  position:absolute;
  background-color:#eeeeef;
  color:black;
  font-family:helvetica;
  font-size:0.9em;
  word-wrap:break-word;
}

.window.active {
  background-color: var(--theme-color-2);
  color: #fff;
}

.window:hover {
  box-shadow: 0px 1px  15px rgba(0,0,0,.3);
  -o-box-shadow: 0px 1px  15px rgba(0,0,0,.3);
  -webkit-box-shadow: 0px 1px  15px rgba(0,0,0,.3);
  -moz-box-shadow: 0px 1px  15px rgba(0,0,0,.3);
}

.hidden {
  display: none;
}

.collapser {
  cursor: pointer;
  border:1px dotted gray;
  z-index:1;
}

._jsPlumb_connector {
  z-index: 1;
}

.errorWindow {
  border: 2px solid red;
}

#treemain {
  height: 500px;
  width: 100%;
  position: relative;
  overflow: auto;
}

#link-sample-observation span {
  color: var(--theme-color-2);
}

.window.hidden._jsPlumb_endpoint_anchor.has-sample-link,
.window._jsPlumb_endpoint_anchor.has-sample-link {
  border-color: var(--theme-color-2);
  color: var(--theme-color-2);
  background-color: var(--foreground-color);
}

._jsPlumb_endpoint {
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  z-index: 4;
}

._jsPlumb_endpoint:hover {
  transform: scale(1.5);
  z-index: 1001;
}

.btn-login span.btn-login-label {
  display: inline-block;
}

.btn-login :is(span.spinner-border, span.visually-hidden) {
  display: none;
}

.btn-login:disabled span.btn-login-label {
  display: none;
}

.btn-login:disabled :is(span.spinner-border, span.visually-hidden){
  display: inline-block;
}

.btn span.btn-label {
  display: inline-block;
}

.btn :is(span.spinner-border, span.visually-hidden) {
  display: none;
}

.btn:disabled span.btn-label {
  display: none;
}

.btn:disabled :is(span.spinner-border, span.visually-hidden){
  display: inline-block;
}

#report-model-elements-container {
  max-height: 50em;
  overflow-y: auto;
  overflow-x: hidden;
}

#report-model-elements li.element-item,
#step-elements-order li.element-item {
  /* border: 1px solid var(--theme-color-2); */
  text-wrap: nowrap;
  /* overflow-x: hidden; */
  overflow-x: clip;
  cursor: pointer;
  margin: 1rem 0;
  padding: 0.5em;
  border-radius: 0.5em;
  box-shadow: 0 1px 15px rgba(0, 0, 0, .09), 0 1px 6px rgba(0, 0, 0, .09);
  min-height: 3.5em;
  list-style-type: none;
}

#step-elements-order > li:first-child .elem-order-up {
  display: none;
}

#step-elements-order > li:last-child .elem-order-down {
  display: none;
}

/* Samples composition tables */
.composition-table {
  width: 100%;
}

.composition-table tr.composition-item {
  cursor: pointer;
  height: 2.5em;
  vertical-align: middle;
}
.composition-table tr.composition-item td div {
  height: 100%;
  padding: 0.5em 0.25em;
  border-radius: 10px;
  transition: all 0.3s;
}

.composition-table tr.composition-item:hover td div {
  border: 0.5px solid var(--theme-color-2);
  color: var(--theme-color-2);
}

.composition-table tr.composition-item.active td div {
  background-color: var(--theme-color-2);
  color: var(--foreground-color)
}

.composition-table .composition-list-observation {
  display: none;
}

.products-table thead th {
  white-space: nowrap;
}

#used-equipments-container,
#transactions-container {
  box-shadow: 1px 1px 13px 5px #eee;
  border-radius: 1.25em;
  padding-top: 1.25em;
  margin-bottom: 1em;
  padding-bottom: 1.25em;
}

/* services labels */
.label-area {
  border: solid;
  border-width: 1px;
  border-radius: 8px;
  padding: 1em;
  display: block;
  height: 100mm;
  /* /* min-width: 75mm; */
  width: 100%; 
}

@media print {
  .label-area {
    height: 85mm;
  }
}

.label-area .qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#profile-signature-container {
  border: 1px solid var(--separator-color);
  border-radius: 5px;
}

#profile-signature-container img {
  width: 100%;
}

.select2-container .select2-results__option.disabled-opt {
  display: none;
}


.answer-highlight {
  color: var(--theme-color-1);
}

button[spinner="true"] span.spinner-border {
  display: none;
}
button[spinner="true"]:disabled span.spinner-border {
  display: block;
}

button[spinner="true"] i {
  display: block;
}

button[spinner="true"]:disabled i {
  display: none;
}

.itens-composition-table tr .col-edit {
  display: none;
}

.itens-composition-table tr .col-view {
  display: block;
}

.itens-composition-table tr.is-editing .col-view {
  display: none;
}

.itens-composition-table tr.is-editing .col-edit {
  display: block;
}

.inline-edit {
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.05);
  font: inherit;
  color: inherit;
}

.blink-highlight-default {
  animation: blink-bg 0.8s linear infinite;
}

@keyframes blink-bg {
  0% { background-color: var(--theme-color-1); }
  50% { background-color: transparent; }
  100% { background-color: var(--theme-color-1); }
}

.blink-highlight-success {
  animation: blink-bg-success 0.8s linear infinite;
}

@keyframes blink-bg-success {
  0% { background-color: var(--success); }
  50% { background-color: transparent; }
  100% { background-color: var(--success); }
}

.table-wrapper {
  position: relative;
}

.table-wrapper .table-responsive {
  max-height: 500px;
  overflow-x: auto;
  overflow-y: auto;
}

.table-wrapper .table th,
.table-wrapper .table td {
  white-space: nowrap;
}

.table-wrapper .table th:first-child,
.table-wrapper .table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;   /* needs a background */
  z-index: 3;
}

.table-wrapper .table th:nth-child(2),
.table-wrapper .table td:nth-child(2) {
  position: sticky;
  left: 0; /* adjust depending on width of first column */
  background: #fff;
  z-index: 2;
}

.table-wrapper .table th:last-child,
.table-wrapper .table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 2;
}

.table-wrapper .table th:nth-child(n+3):not(:last-child),
.table-wrapper .table td:nth-child(n+3):not(:last-child) {
  max-width: 150px;
  min-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

/* JSON highlight */
pre.json-container {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9rem;
}
.json-key { color: brown; }
.json-string { color: green; }
.json-number { color: blue; }
.json-boolean { color: purple; }
.json-null { color: red; }


.installment-item {
  cursor: pointer;
}

table.installments-list-table tr td {
  vertical-align: middle;
}

table.installments-list-table span.due-day-error {
  color: var(--danger);
  font-size: 0.8rem;
}

table.installments-list-table tr.installment-list-total-row td:first-child {
  font-weight: bold;
}

table.installments-list-table tr.installment-list-total-row td.installment-total-cell {
  font-weight: bold;
  text-align: end;
}

table td.numeric-cell {
  text-align: end;
}

.justification-pre {
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

td.label-cell {
  text-align: left;
  font-weight: bold;
}

table.itens-composition-table th.text-qtd,
table.itens-composition-table td:nth-child(2) {
  min-width: 64px;
}

/* Home */
.total-services {
  cursor: pointer;
}

/* STEPS PAGE */
@media (max-width: 991px) {
  #step-elements-order .element-item .col-7 {
    overflow-wrap: break-word;
    white-space: normal;
  }  
}

.expandable-search-container {
  width: fit-content;
}

.search-wrapper input {
  width: 0;
  padding: 0;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

.search-wrapper.active input {
  width: 250px; 
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  opacity: 1;
  margin-right: 8px;
  pointer-events: auto;
}

.result-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.15s ease;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover, .result-item:focus {
  background-color: #f8f9fa;
  outline: none;
}

/* Spinner Animation */
.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#comment-text {
  white-space: pre-wrap;
}