html,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Kanit' !important;
}

html {
  min-height: 100%;
  background-color: white;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
.select-wrapper > ul::-webkit-scrollbar,
.custom-autocomplete > ul::-webkit-scrollbar,
.modal::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html,
.select-wrapper > ul,
.custom-autocomplete > ul,
.modal {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

button,
input,
optgroup,
select,
textarea {
  font-family: 'Kanit' !important;
}

.w3-bar .w3-button {
  padding: 16px;
}

.w3-button:hover {
  color: unset !important;
  background-color: unset !important;
}

/* .m-bg {
  background-color: #3F51B5 !important;
}

.m-color {
  color: white !important;
} */

.txt-red {
  color: #FF1744;
}

.success-color {
  color: #26a69a;
}

.warnning-color {
  color: #FDD835;
}

.cursor-none {
  cursor: unset !important;
}

.nav-bar {
  position: fixed;
  top: 0;
  line-height: 45px;
  width: 100%;
  z-index: 2;
  /* background: linear-gradient(319deg, #008bfa, #001bb0); */
  /* background: linear-gradient(319deg, #4461ff, #001ec8); */
  background: linear-gradient(330deg, #3872ff, #001ec8);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

#myNavbar {
  width: 100%;
  overflow: hidden;
  color: white;
  padding-right: 7px;
}

.bar-item-home {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  letter-spacing: 1.3px;
}

.m-btn {
  border: none;
  display: inline-block;
  padding: 8px 16px;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.side-bar-btn {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nav-btn-right {
  padding: 8px 8px;
}

.nav-btn-left {
  padding: 8px 16px;
}

.nav-btn:hover {
  background-color: #9FA8DA !important;
  color: black !important;
}

.nav-item-right {
  float: right !important;
}

.side-bar {
  color: #fff !important;
  /* background-color: #000 !important; */
  background: linear-gradient(319deg, #2243ff, #001693);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  height: 100%;
  width: 200px;
  position: fixed !important;
  z-index: 5;
  overflow: auto;
  top: 0;
}

.side-bar-animate-left {
  position: relative;
  animation: animateleft 0.4s;
}

.side-bar-block,
.side-bar-item {
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
}

.w3-bar .w3-button {
  padding: 16px;
}

.container {
  margin-top: 110px;
  margin-bottom: 120px;
}

/* floating button */
.add-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 4;
}

.btn-floating {
  background-color: #ff4a6d !important;
  /* background: linear-gradient(319deg, #ff4a6d , #ff0031 ) !important; */
}

/* button */
.btn {
  width: 100%;
  background: linear-gradient(319deg, #4662ff, #2441e7);
}

.file-btn {
  width: fit-content;
}

/* input */
.input {
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  padding-left: 15px !important;
  padding-right: 40px !important;
  width: -webkit-fill-available !important;
}

.file-path-wrapper input {
  border-bottom: 1px solid #ccc !important;
}

.input:focus {
  border: 1px solid #2196F3 !important;
  -webkit-box-shadow: 1px 1px 1px 1px #2196F3 !important;
  box-shadow: 0px 0px 3px 0px #2196F3 !important;
}

input.valid[type=text]:not(.browser-default) {
  border-bottom: 1px solid #2196F3 !important;
  -webkit-box-shadow: 0 1px 0 0 #2196F3 !important;
  box-shadow: 0 1px 0 0 #2196F3 !important;
}

/* table */
td {
  padding: 10px 20px;
}

tbody > tr:hover {
  background: #e6e6e6 !important;
}

.td-first {
  padding-left: 20px;
  padding-right: 20px;
}

table i{
  color: gray;
  margin-top: 7px;
}

/* Modal */
.modal {
  max-height: 100% !important;
  overflow-y: unset !important;
}

.modal p, .modal label {
  word-wrap: break-word;
}

.modal-content > .material-icons {
  font-size: 150px;
}

/* Warning modal */
#successModal .modal-content-custom,
#warningModal .modal-content-custom {
  max-width: 400px;
}

#successModal .modal-content,
#warningModal .modal-content {
  text-align: center;
  padding-top: 50px;
}

/* Marker */
.maker-selected,
#marker, 
#editKeywordMarker {
    background: #1ebaac !important;
    z-index: 2;
}

.keyword-marker {
  width: 16px;
  height: 16px;
  background: #FF1744;
  position: absolute;
  z-index: 1;
  cursor: pointer;
  border-radius: 20px;
  border: 1.35px solid white;
  box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0 0px 20px 0 rgba(0, 0, 0, 0.19);
}

.modal-custom {
  width: 100% !important;
  height: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
  overflow: hidden auto !important;
}

.modal-content-custom {
  width: 80%;
  max-width: 625px;
  margin: 10% auto;
  background: white;
  border-radius: 4px;
}

.modal-content-custom>.modal-footer {
  background: white;
}

/* Select */
.select-wrapper input {
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  padding-left: 15px !important;
  padding-right: 40px !important;
  width: -webkit-fill-available !important;
}

.select-dropdown li.disabled, .select-dropdown li.disabled>span, .select-dropdown li.optgroup {
  color: rgba(0,0,0,0.3) !important;
  background-color: transparent;
}

.caret {
  right: 10px !important;
}

/* Checkbox */
[type="checkbox"]:checked:disabled+span:before {
  border-right: 2px solid #26a69a !important;
  border-bottom: 2px solid #26a69a !important;
}

.checkbox span{
  padding-top: 0.97px;
}

/* Switch */
input[type=checkbox][disabled]:checked+.lever:after {
  background-color: #26a69a !important;
}

/* Autocomplete */
.custom-autocomplete {
  position: relative;
  padding: 0px !important;
  margin: 0px !important;
  width: -webkit-fill-available !important;
}

.custom-autocomplete > input{
  margin: 0px !important;
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  padding-left: 15px !important;
  padding-right: 50px !important;
  width: -webkit-fill-available !important;
}

.custom-autocomplete > i {
  position: absolute;
  right: -5px;
  color: #9e9e9e;
  cursor: pointer;
}

.custom-autocomplete > i.active {
  color: #2196F3 !important;
}

.autocomplete:focus {
  border: 1px solid #2196F3 !important;
  -webkit-box-shadow: 1px 1px 1px 1px #2196F3 !important;
  box-shadow: 0px 0px 3px 0px #2196F3 !important;
}

#editFloorBtn {
  margin-top: 25px;
}

#editKeywordBtn {
  margin-top: 10px;
}

@media only screen and (max-width: 769px) {
  .nav-btn-right {
    display: none !important;
  }

  .nav-bar {
    line-height: 30px;
  }

  #myNavbar {
    padding-right: 0px;
  }

  .container {
    margin-top: 65px !important;
  }

  .add-btn {
    bottom: 20px;
    right: 20px;
  }

  /* Table */
  td {
    padding: 10px 10px;
  }

}