/****** IGNORE ******/
/*body {
    width: 400px;
    margin: 100px auto;
    background-color: #f5f5f5;
    font-family: Helvetica, Arial, sans-serif;
}*/

html {
    
}
@font-face {
  font-family: Avenir;
  src: url('../fonts/Avenir-Medium-09.ttf')  format('truetype');
}

body,#pdf-viewer{
  
}

h1,
.copyright a{
  font-family: Avenir;
}
body{
  font-size: 14px;
  font-family: Avenir !important;
}


textarea:focus, input:focus, select{
  outline: none;
}

.container.thg-merger-container {
padding-bottom: 100px;
}
.container.thg-merger-container .boutique-select{
  max-width: 350px;
  margin:auto;
}

hr{
  border: 1px solid #707070;
}
h1{
  text-align: center;
  font-size: 32px !important;
  letter-spacing: 0px;
  color: #000000;
  opacity: 1;
}

.file-upload p {
  text-align: left;
}

.copyright {
  display: block;
  /*margin-top: 100px;*/
  text-align: center;
  font-size: 12px;
  font-weight: bold;


  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  margin: 0;
  z-index: 9;
}

.copyright a,
.add-more a {
  text-decoration: none;
  
}

.button-upload {
  margin-top: 2rem;
  text-align: center;
}

.button-upload .btn{
  height: 46px;
}

div#merge-response.success,
div#merge-response.error{
  animation: fadeIn 2s;
  -webkit-animation: fadeIn 2s;
  -moz-animation: fadeIn 2s;
  -o-animation: fadeIn 2s;
  -ms-animation: fadeIn 2s;
}
div#merge-response {
  margin-top: 1.3rem;
  text-align: center;
  font-weight: 500;
  min-height: 48px;
}

@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-moz-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-o-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-ms-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}


div#merge-response.error {
  color: #DB7979;
}

div#merge-response.error .fa-plus-circle{
  transform: rotate(43deg);
}

div#merge-response.success {
  white-space: nowrap;
}

div#merge-response.success i{
  color:#78C191;
}

div#merge-response a{
  display: block;
  text-align: center;
}

.copyright a,
.add-more a,
.file-select .select2-container--default .select2-selection--single .select2-selection__placeholder{
  color: #000 !important;
}
.select2-container .select2-selection--single{
  border:none !important;
  height:inherit;
}
.select2-container .select2-selection__rendered{
  z-index:inherit;
  background-color: transparent;
  font-weight: bold;
  padding-left: 13px !important;
}

.file-name input[type=text], 
select, 
.select2-selection__rendered {
  z-index: 100;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  filter: alpha(opacity=0);
  display: block;
  border: none;
  border-radius: 5px;
  color: #34495e;
  cursor: pointer;
  line-height: 44px !important;
  text-align: left;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
  padding: 0px;
}

.custom-select {
  position: relative;
  font-family: Arial;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
  background-color: DodgerBlue;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div, .select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

/*.boutique-field {
  padding-bottom: 1rem;
}*/

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}


/****** CODE ******/
.file-upload{
  position:relative;
  display: flex !important;
  flex-direction: column;
}
.file-upload, .file-select {
  display: block;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  font-size: 14px;
}


.frameset span.required{
  position: absolute;
  top: -2px;
  right: -1px;
}
span.required{
  color:#DB7979;
  font-size: 14px;
  
}


.file-upload .file-select {
  display: block;
  border: 1px solid #0000001A;
  color: #34495e;
  cursor: pointer;
  line-height: 44px;
  height: 45px;
  text-align: left;
  background: #FFFFFF;
  /*overflow: hidden;*/
  position: relative;
  border-radius: 5px;
}

.file-upload .file-select .file-select-button {
  padding: 0 12px;
  display: inline-block;
}

.file-upload .file-select .file-select-button span:not(.required){
  color: #000000;
  opacity: 0.3;
}
.file-select .select2-hidden-accessible{
  width: 100% !important;
  height: 100% !important;
}
.file-upload .file-select .file-select-name {
  display: inline-block;
  padding: 0 12px;
  color:#000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 82%;
}

.file-upload .file-select:hover {
  /*border-color: #34495e;
  transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;*/
}

.file-upload .file-select:hover .file-select-button {
  background: none;
  transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
}

.file-upload.active .file-select {
  /*border-color: #3fa46a;*/
  transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
}

.file-upload.active .file-select .file-select-button {
  background: #FFFFFF;
  transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
}

.file-upload .file-select input[type=file] {
  z-index: 1;
  cursor: pointer;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  filter: alpha(opacity=0);
}
.file-upload.active .clearfile {
  transform: matrix(-0.71, -0.71, 0.71, -0.71, 0, 0);
  z-index: 2;
}
.file-upload .clearfile {
  position: absolute;
  right:11px;
  z-index: 0;
  top:10px;
  font-size: 27px;
}
.file-upload.active .previewfile {
  display: block;
}
.file-upload .previewfile {
  position: absolute;
  right:35px;
  z-index: 2;
  top:14px;
  font-size: 27px;
  display: none;
}

.file-upload .file-select.file-select-disabled {
  opacity: 0.65;
}

.file-upload .file-select.file-select-disabled:hover {
  cursor: default;
  display: block;
  border: 2px solid #dce4ec;
  color: #34495e;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  margin-top: 5px;
  text-align: left;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.file-upload .file-select.file-select-disabled:hover .file-select-button {
  background: #dce4ec;
  color: #666666;
  padding: 0 10px;
  display: inline-block;
  height: 40px;
  line-height: 40px;
}

.file-upload .file-select.file-select-disabled:hover .file-select-name {
  line-height: 40px;
  display: inline-block;
  padding: 0 10px;
}


.dynamicfield span.removefile{
  position: absolute;
  right: -30px;
  z-index: 1;
  top: 10px;
}
.dynamicfield span{
  text-align:right;
  cursor:pointer;
}
.dynamicfield span .fa{
  margin: 10px 0;
  cursor:pointer;
}

#but_upload{
  background: #000000 0% 0% no-repeat padding-box;
  border-radius: 5px;
  width: 100%;
  height: 46px;
  color:#ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*.dynamicfield span .fa-minus-circle{
 color:grey;
 text-align:right;
}

.dynamicfield span .fa-plus-circle{
  text-align:left;
  padding:10px;
  background:#000;
  color:#fff;
  display:inline-block;
  clear:left;
}*/

ul#ul_o {
  list-style: none;
  margin:0;
  padding:0;
}	

/*#ul_o li {
display: inline-block;
-webkit-margin-before: 0;
-webkit-margin-after: 0;
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
width:100%;
list-style-type:none;
}

#ul_o li:last-child:nth-child(2) {
display: block;
}
  
@media only screen and (min-width: 768px) {
  ul.twoColumns {
    moz-column-count:2;
    -webkit-column-count:2;
    column-count:2;
    column-gap: 3em;
  }
  
  .form-select {
      padding: 0.5rem 2.25rem 0.4rem 0.75rem !important;
  }
}*/

header img{
  max-width: 400px;
}


.boutique-field .file-select .file-select-button{
  position: absolute;
}
.frameset{
  position: absolute;
  font-size: 9px;
  top: -6px;
  left: 8px;
  background: #fff !important;
  line-height: normal;
  height: auto;
  padding:0 5px !important;
  z-index: 1;
}

#thg-merger .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  position: absolute;
  top: 0;
  right: 17px;
  width: 20px;
}


#thg-merger .select2-container .select2-selection--single{
  height:44px;
  background-color: transparent;
}
#thg-merger .select2-container--default .select2-selection--single .select2-selection__arrow b {
  background-image: url(../img/drop-icon.svg);
  background-position: center;
  background-color: transparent;
  background-size: contain;
  border: none !important;
  background-repeat: no-repeat;
  height: 100%;
  width: 28px !important;
  margin: auto !important;
  top: auto !important;
  left: auto !important;
  /*-webkit-animation: anim 0.3s linear;*/
}


/*@-webkit-keyframes anim {
  0% {
      transform: rotate(180deg);
  }
  100% {
      transform: rotate(0deg);
  }
}


#thg-merger .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg);
  transition: transform 0.3s linear;
  
}*/

.select2-container--open .select2-dropdown--below{
    border: none !important;
}


/* List Numbering */
li:not(.dynamicfield,.add-more,.merge-preview):before {
  /* margin-right: 10px; */
  content: counter(item)". ";
  /* background: lightblue; */
  border-radius: 100%;
  /* color: white; */
  width: 1.2em;
  text-align: center;
  /* display: inline-block; */
  position: absolute;
  left: -30px;
  top: 13px;
  z-index: 9;
}

li {
  counter-increment: item;
  position: relative;
}
ul#ul_o{
list-style: none;
  counter-reset: item;
}



.select2-container--open .select2-dropdown{
  margin-top:6px !important;
  border-radius: 6px !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: #E6E6E6;
  padding: 10px 15px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #E6E6E6 !important;
  color: #000000 !important;
  
}
.select2-results__option--selectable {
  color: #6F6F6F;
  padding: 5px 15px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown{
  border: 1px solid #0000001A !important;
  border-radius: 5px;
 
}
.select2-dropdown{
  box-shadow: 0px 3px 6px #00000029;
}
.select2-search--dropdown{
  padding:8px !important;
  font-size: 16px;
}
.select2-search--hide + .select2-results,
.select2-search--hide + .select2-results .select2-results__option:first-child{
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}



/* Dynamic Field Animation */
.dynamicfield{
  animation: fadeIn 0.5s;
-webkit-animation: fadeIn 0.5s;
-moz-animation: fadeIn 0.5s;
-o-animation: fadeIn 0.5s;
-ms-animation: fadeIn 0.5s;
}

.dynamicfield.off{
  animation: fadeOut 0.5s;
-webkit-animation: fadeOut 0.5s;
-moz-animation: fadeOut 0.5s;
-o-animation: fadeOut 0.5s;
-ms-animation: fadeOut 0.5s;
}

@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-moz-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-o-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@-ms-keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

@keyframes fadeOut {
  0% {opacity:1;}
  100% {opacity:0;}
}

@-moz-keyframes fadeOut {
  0% {opacity:1;}
  100% {opacity:0;}
}

@-webkit-keyframes fadeOut {
  0% {opacity:1;}
  100% {opacity:0;}
}

@-o-keyframes fadeOut {
  0% {opacity:1;}
  100% {opacity:0;}
}

@-ms-keyframes fadeOut {
  0% {opacity:1;}
  100% {opacity:0;}
}


.thg-lightbox {
  /* Default to hidden */
  display: none;

  /* Overlay entire screen */
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  


  /* Translucent background */
  background: rgba(0, 0, 0, 0.8);
}

html.noscrollbar{
  overflow: hidden;
}
/*.thg-lightbox .close-lb{
  right: 10px;
  cursor: pointer;
  z-index: 2;
  position: absolute;
}*/
.thg-lightbox #pdf-viewer{
  overflow-y: scroll;
  /*width: 90%;
  max-width: 874px;
  height: 100%;*/
  height: 95vh;
  margin: auto;
  width: 100%;
}

.thg-lightbox #lightbox-merge-btn{
  position: absolute;
  bottom: 5%;
  width: 197px;
  z-index: 1;
  right: 5%;
}

/*.thg-lightbox canvas.pdf-page-canvas {
  width: 100%;
  position: relative;
}*/
.thg-lightbox #pdf-viewer #pdf-viewer-wrapper{
  margin:auto;
  position: relative;
}
.thg-lightbox canvas.pdf-page-canvas {
  /*width: 41vw;
  height: 90vh;*/
  width: 100%;
  /*max-height: 95vh;*/
  position: relative;
  display: block;
  
  margin: 0 auto 2vh auto;
}


.thg-lightbox #pdfthumb-viewer{
  overflow-y: scroll;
  height: 100vh;
  background: #000;
}
.thg-lightbox #pdfthumb-viewer canvas {
  display: block;
  margin: 10px auto 5px auto;
  height: 110px;
  /*width: 79px;*/
  max-width: 66%;
  cursor: pointer;
  opacity: 0.7;
}

.thg-lightbox .close-lb span{
  background:url(../../assets/img/preview_close_button.svg) center center;
  width: 15px;
  height: 15px;
  display: block;
  cursor: pointer;
}

#prv-zoompercentage{
  background: none;
}

.thg-lightbox #prv-zoomin,
.thg-lightbox #prv-zoomout{
  cursor: pointer;
}

.thg-lightbox .preview-actions #prv-zoomin.disabled,
.thg-lightbox .preview-actions #prv-zoomout.disabled{
  opacity: 0.6;
  cursor: default;
}
/*.preview-actions{
  margin: auto;
  position: absolute;
  font-size: 13px;
  width: 100%;
  text-align: center;
  z-index:1;
  bottom:30px;
}*/
.preview-actions{
  font-size: 14px;
}

.preview-actions .btn-outline-light{
  height:29px;
}

.preview-actions .pdfname{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.btn{
  height: 38px;
  align-items: center;
  display: flex !important;
  justify-content: center;
}
.preview-actions .btn{
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
  white-space: nowrap;
  position: absolute;
  right:5%;
}


#pdfpanel{
  position: relative;
}

#pdfpanel span#lightbox-pagination{
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 9;
  width: 100px;
  height:23px;
  border-radius: 12px;
  box-shadow: 0px 3px 6px #00000029;
  font-size: 12px;
  text-align: center;
  padding: 0;
  cursor: default;
}
/*.preview-actions .btn{
  background: #ad3131 0% 0% no-repeat padding-box;
  border-radius: 5px;
  color:#ffffff;
  border: none;
  height: 46px;
}*/


.merge-preview{
  margin-top:14px;
}


/*PDF thumb Counter*/

#pdfthumb-viewer span:before {
  /* margin-right: 10px; */
  content: counter(item);
  /* background: lightblue; */
  border-radius: 100%;
  color: #fff !important;
  text-align: center;
  /* display: inline-block; */
  width: 100%;
  display: block;
  font-size: 10px;
}

#pdfthumb-viewer canvas.active-thumb{
  border:2px solid #000;
  outline-style: solid;
  outline-color: #fff;
  outline-width: thin;
  cursor: default;
  opacity: 1;
}


#pdfthumb-viewer span {
  position: relative;
  counter-increment: item;
  display: block;
}

.daily-title{
  font-size:10px;
}


/* ToolTip */
.popover {
  /*width:88px;*/
  border-color: #5d5d5d !important;
}

.bs-popover-bottom > .popover-arrow::after{
  border-bottom-color: #5d5d5d !important;
  
}
.popover.bs-popover-bottom .popover-arrow{
  transform: translate3d(5px, 0px, 0px) !important;
}

.bs-popover-end > .popover-arrow{
  transform: translate3d(0px, 4px, 0px);
  top:3px;
}

.popover,
.popover .popover-body{
  background:#5D5D5D !important;
  border-radius: 2px !important;
}
.popover .popover-body {
  color:#fff;
  padding: 4px 7px;
  font-size: 8px;
  
}


.popover.custom-popover.bs-popover-end{
  left: -8px !important;
  top: -1px !important;
}


.bs-popover-end > .popover-arrow::before{
  border:none !important;
}
.bs-popover-end > .popover-arrow::after{
  border-width: 0.3rem 0.4rem 0.3rem 0 !important;
  border-right-color: #5D5D5D !important;
  background: none !important;
  top: 3px;
  left:2px !important;
}
.bs-popover-bottom > .popover-arrow::after{
  border-width: 0 0.3rem 0.4rem 0.3rem !important;
  top: 2px !important;
}

.pdfp-rightpanel{
  border-left: 1px solid #000;
}
/* Scroll Bar */
html {
  --scrollbarBG:transparent;
  --thumbBG: #515151;
}

div#pdfthumb-viewer::-webkit-scrollbar,
div#pdf-viewer::-webkit-scrollbar {
  width: 7px;
}

div#pdfthumb-viewer,
div#pdf-viewer {
 
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
div#pdf-viewer::-webkit-scrollbar-track,
div#pdfthumb-viewer::-webkit-scrollbar-track {
  background: var(--scrollbarBG);
}
div#pdf-viewer::-webkit-scrollbar-thumb,
div#pdfthumb-viewer::-webkit-scrollbar-thumb {
  background-color: var(--thumbBG) ;
  border-radius: 5px;
}
/*div#pdfthumb-viewer::-webkit-scrollbar-track {
  margin: 10px 0;
}*/


/* Individual delete */
.idelete{
  position: absolute;
  color: #000000;
  z-index: 999999999;
  right: 0px;
  cursor: pointer;
  width: 50px;
}

.idelete img{
  width: 100%;
}

.preview-actions .btn-outline-light:active{
  color:#FFF !important;
  background-color: inherit !important;

}

@media only screen and (max-width: 767px) {

  .popover{
    display:none !important;
  }
  .thg-lightbox #pdf-viewer-wrapper{
    width:100% !important;
  }
  .thg-lightbox canvas.pdf-page-canvas {
      width: 100%;
      /*height:60vh;*/
  }

  h1 {
      font-size: 26px !important;
  }

  .container.thg-merger-container{
      padding-left: 40px;
      padding-right: 40px;
  }

  header img{
      max-width: 250px;
  }

  div#merge-response.success{
      white-space: inherit;
  }

  .thg-lightbox #pdf-viewer{
      width: 100%;
      margin-top: 20px;
  }

  .daily-title{
      font-size:9px;
  }

  #pdfpanel span#lightbox-pagination{
      top: -10px;
      bottom: inherit;
  }

  .thg-lightbox #lightbox-merge-btn{
      left: 0;
      right: 0;
      background: rgb(0 0 0 / 69%) 0% 0% no-repeat padding-box;
      box-shadow: 0px 3px 6px #00000029;
      color: #ffffff;
      margin: auto;
      bottom: 10%;
      position: fixed !important;
  }
  /*.preview-actions {
      width: 92%;
  }*/

  /*.preview-actions .btn {
      max-width: 92%;
      margin-bottom: 5px;
  }*/

  /*.preview-actions .justify-content-end{
      justify-content: center !important;
  }*/

  .preview-actions .btn{
      position: inherit;
  }
  .thg-lightbox .close-lb {
      right: 10px;
      top: 10px;
  }

  .preview-actions .pdfsummary{
      max-width: 60%;
  }

  div#pdfthumb-viewer::-webkit-scrollbar,
  div#pdf-viewer::-webkit-scrollbar {
      width: 0px;
  }

}