:root {
  --highlight-color : #f2f5f7;
  --tooltip-color : #333;
  --tooltip-text-color : #FFF;
  --input-error-color : #dc3545;
  --input-ok-color : #28a745;
  --input-shadow : inset 0 1px 1px rgba(0,0,0,.075);
}

/* BASIC 
--------------------------------------------------*/
.cursor-pointer{
  cursor: pointer !important;
}


/* SCROLLBAR
-------------------------------------------------- */

div#spinner {
  display:none;
  
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin-left: -100px;
  margin-top: -100px;

  background: url(../images/loader.gif) no-repeat center;
  z-index: 10000;
}

/* SCROLLBAR
-------------------------------------------------- */

::-webkit-scrollbar {
	width: 8px !important;
}
::-webkit-scrollbar {
    border-radius: 0px !important;
    background: #FEFEFE !important;
    border: 0px solid var(--ion-color-light-shade) !important;
}

::-webkit-scrollbar-thumb {
    border-radius: 0px !important;
    /*background: linear-gradient(to left,var(--ion-color-primary-contrast),  var(--ion-color-light-shade));*/
    background: #DDD !important;
    border: 0px solid var(--ion-color-medium) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ion-color-light) !important;
}

::-webkit-scrollbar-thumb:active {
    /*background: linear-gradient(to left,  var(--ion-color-light),  var(--ion-color-medium));*/
    background: #DDD !important;
}

/* PLACEHOLDER
-------------------------------------------------- */

input::-webkit-input-placeholder { /* Edge */
    color: #CCC !important;
}
input::-moz-placeholder {
    color: #CCC !important;
}
input::-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #CCC !important;
}
input::placeholder {
    color: #CCC !important;
}

/* FORM
--------------------------------------------------- */

  .custom-file-input {
    z-index: 1;
  }

  textarea.form-control{
    height: 80px !important;
  }

  /*icon input*/
  .has-icon{
    position: relative;
  }
  .has-icon .form-control {
    padding-left: 2.375rem;
  }
  .has-icon .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 18px;
    height: 18px;
    /*line-height: 2.3rem;*/
    top:8px;
    left:9px;
    text-align: center;
    pointer-events: none;
    /*font-size: 20px;*/
    color: #666;
  }

  .has-shadow{
    border-width: 0px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  }

  /*datetimepicker*/
  .bootstrap-datetimepicker-widget table th{
    height: 35px;
  }
  .bootstrap-datetimepicker-widget table td.day {
    height: 30px;
  }
  
  /*validation*/
  .custom-file-input.invalid~.custom-file-label, .was-validated .custom-file-input.invalid~.custom-file-label,
  input.invalid , .was-validated select.select2:invalid + .select2 .select2-selection, .was-validated .bootstrap-tagsinput.invalid{
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + .75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    box-shadow: var(--input-shadow) !important;
  }
  input.valid, .was-validated select.select2:valid + .select2 .select2-selection, .was-validated .bootstrap-tagsinput.valid{
    border-color: #28a745 !important;
    padding-right: calc(1.5em + .75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    box-shadow: var(--input-shadow) !important;
  }
  .was-validated select.select2:invalid + .select2-container--default .select2-selection--single .select2-selection__arrow,
  .was-validated select.select2:valid + .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 25px;
  }
  /*intl tel input*/
  .iti {
    display: block;
  }
  
  
  /*select2*/
  .select2-container{
    display: block;
    width:100% !important;
  }
  .select2-dropdown {
    border: 1px solid #ddd;
  }
  .select2-container .select2-selection--single{
    height: 32px;
    padding: 4px 8px 4px 0px;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: var(--input-shadow);
  }
  .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
  }
  .select2-container--default .select2-selection--single .select2-selection__clear {
    height: 5px;
    margin-right: 30px;
  }
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 7px;
  }
  .select2-container .select2-selection--multiple{
    background-image: none;
    border: 1px solid #CCC;
    border-radius: 4px;
    box-shadow: var(--input-shadow);
  }
  .select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #CCC 1px;
  }
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
  }
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 1px solid #ced4da;
    color: #495057;
  }
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #495057;
  }
  .select2-container--default .select2-results__option--selected{
    background-color: #e9ecef;
  }
  .select2-results__option--disabled{
    display:none;
  }
  .select2-container--default .select2-results__option[aria-selected=true], .select2-container--default .select2-results__option[aria-selected=true]:hover {
    color: #495057;
    background-color: #eee;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e9ecef;
    color: #495057;
}

.select-textonly .select2-container .select2-selection--single{
	height: 28px;
	border : none;
	box-shadow : none;
}
.select-textonly span.select2-selection.select2-selection--single[aria-expanded=true] {
    border: 1px solid #ccc;
    box-shadow: var(--input-shadow);
}
.select-textonly .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 28px;
	/*display:none;*/
}
.select-textonly .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 25px;
    font-size: 16px;
    padding-left: 5px;
}

  /*tooltip*/
  .tooltip.show {
    opacity: 0.8;
    font-size: 11px;
  }
  /*.tooltip-arrow {
    border-bottom-color: var(--tooltip-color) !important;
  }
  .bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: var(--tooltip-color);
  }
  .bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: var(--tooltip-color);
  }
  .bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: var(--tooltip-color);
  }
  .bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: var(--tooltip-color);
  }
  .tooltip-inner {
    background-color: var(--tooltip-color) !important; 
    color: var(--tooltip-text-color) !important;
  }*/
  
  /*js confirm*/
  .jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button, .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button{
    font-weight: normal;
    text-transform: initial;
  }
  .jconfirm .jconfirm-box {
    border-width: 3px !important;
  }
  .jconfirm.jconfirm-white .jconfirm-bg, .jconfirm.jconfirm-light .jconfirm-bg {
    background-color: rgba(0,0,0,0.6);
    opacity: 1;
  }
  
  /*quill*/
  .ql-toolbar{
    margin-top:10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }
  .ql-toolbar.ql-snow .ql-formats {
    margin-bottom: 5px;
  }
  .ql-editor {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  .ql-container.ql-snow {
    border: 1px solid #ccc;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }

/*tagsinput*/
.bootstrap-tagsinput {
  display: block;
  width: 100%;
  min-height: calc(1.5em + .375rem + 2px);
  padding: .375rem .375rem;
  padding-bottom: 0px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.bootstrap-tagsinput input{
  border:none;
  outline:none;
}

.bootstrap-tagsinput .tag{
  padding: 1px 5px;
  margin-right: 20px;
  margin-bottom: 5px;
  display: inline-block;
  position: relative;
}

.bootstrap-tagsinput .tag [data-role="remove"] {
  padding: 0px 5px;
  height: 22px;
  display: inline-block;
  position: absolute;
  top: -1px;
  right:-20px;
  background: #dee2e6;
  cursor: pointer;
}

/*readmore*/
.addReadMore .readMore,
.addReadMore .readLess {
    font-weight: normal;
    white-space: nowrap;
    margin-left: 2px;
    color: blue;
    cursor: pointer;

    display: block;
    margin-top: 5px;
    text-align: right;
}

.addReadMore.showmorecontent .SecSec{
    -webkit-transition: all .9s linear;
    -o-transition: all .9s linear;
    transition: all .9s linear;
}

.addReadMore.showlesscontent .dots,
.addReadMore.showmorecontent .SecSec{
  display: inline;
}

.addReadMore.showlesscontent .readMore,
.addReadMore.showmorecontent .readLess{
    display: block;
}


.addReadMore.showlesscontent .readLess,
.addReadMore.showmorecontent .dots,
.addReadMore.showmorecontent .readMore,
.addReadMore.showlesscontent .SecSec{
    display: none;
}



/*mailbox*/
.mailbox-attachments li {
  float: left;
  width: 200px;
  border: 1px solid #eee;
  margin-bottom: 10px;
  margin-right: 10px;
  list-style: none;
}
.mailbox-attachment-name {
  font-weight: bold;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
}
.mailbox-attachment-icon,
.mailbox-attachment-info,
.mailbox-attachment-size {
  display: block;
}
.mailbox-attachment-info {
  padding: 10px;
  background: #f4f4f4;
  overflow:hidden;
}
.mailbox-attachment-size {
  color: #999;
  font-size: 12px;
}
.mailbox-attachment-icon {
  text-align: center;
  font-size: 65px;
  color: #666;
  padding: 20px 10px;
  min-height: 140px;
  max-height: 140px;
  height:140px;
  display: flex;
  vertical-align: middle;
  align-items: center;
}
.mailbox-attachment-icon > svg{
    margin:auto;
}
.mailbox-attachment-icon.has-img {
  padding: 0;
}
.mailbox-attachment-icon.has-img > img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: auto;
}
.mail_body blockquote {
  background: #f9f9f9;
  border-left: 6px solid #ccc;
  padding: 20px 15px;
  quotes: "\201C""\201D""\2018""\2019";
}
.mail_body blockquote:before {
  color: #ccc;
  content: '\f10d';
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  font-size: 2em;
  line-height: 0.1em;
  margin-right: 0.5em;
  vertical-align: 0.4em;
}
.mail_body blockquote p {
  display: inline;
}

.rounded-top-0{
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}

/*checkbox toggle*/
.toggle.btn-xs {
  min-width: 2.5rem;
}

form label:not(.custom-file-label) {
  max-width: calc(100% - 50px);
}