html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;
}

html, body, #app {
  width: 100%;
  height: 100%;
  font-family: "微软雅黑", "Helvetica", "Arial", "Tahoma", "sans-serif";
  overflow: hidden;
  background-color: var(--bg-color1);
}

canvas {
  touch-action: none;
}

textarea {
  resize: none;
  outline: none;
  border-radius: .2rem;
  padding: 10px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

textarea::-webkit-scrollbar {
  display: none;
}

ul, ol, li {
  list-style: none;
}

.cursor-pointer {
  cursor: pointer;
}

.word-break {
  word-break: break-all;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
}

::-webkit-scrollbar-button {
  height: 0;
}

/*breadcrumb*/
.breadcrumb {
  background-color: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb .breadcrumb-item:not(:last-child) {
  cursor: pointer;
}

.breadcrumb .breadcrumb-item:last-child {
  color: var(--text-color3);
}

/*表单元素*/
.input-hover:hover {
  border-color: var(--border-color5);
}

.input-focus:focus {
  border-color: var(--border-color5);
}

input[type=checkbox] {
  -webkit-appearance: none;
  background-color: transparent;
  width: 13px;
  height: 13px;
  border: 0;
  outline: none;
  color: #d8d8d8;
  vertical-align: middle;
  display: inline-block;
  line-height: 13px;
  border-radius: 2px;
  cursor: pointer;
}

input[type=checkbox]:checked {
  background-color: #007bff;
  color: #fff;
  outline: none;

}

input[type=checkbox]:after {
  content: '';
  display: block;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  text-align: center;
  font-size: 12px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  line-height: 9px;
  box-sizing: border-box;
}

input[type=checkbox]:hover::after {
  border-color: #007bff;
}

input[type=checkbox]:checked:after {
  content: 'L';
  transform: matrix(-0.766044, -0.642788, -0.642788, 0.766044, 0, 0);
  border-color: transparent;
  background-color: transparent;
}

label {
  color: var(--text-color1);
  font-weight: 500;
  white-space: nowrap;
}

input::placeholder, textarea::placeholder, .form-control::placeholder {
  color: var(--text-color4);
}

.form-control {
  font-size: var(--text-14);
  padding: 8px 15px;
  border-radius: 4px;
  height: 32px;
  border: 1px solid var(--border-color3);
}

.form-control:hover {
  border: 1px solid var(--border-color5);
}

.form-control:focus {
  color: var(--text-color1);
  background-color: var(--bg-color10);
  box-shadow: none;
  border-color: var(--border-color5);
}

.sidePanel-input {
  width: 90px;
  padding: 3px 5px;
  border-radius: 2px;
  background-color: var(--bg-color2);
  color: var(--text-color2);
  user-select: contain;
  -ms-user-select: element;
  -webkit-user-select: text;
  -moz-user-select: text;
  border: 0;
}

.sidePanel-input:hover {
  border: 0;
}

.sidePanel-input:focus {
  background-color: var(--bg-color2);
  color: var(--text-color2);
}

/*btn*/
button:focus {
  outline: unset;
}

.btn-light {
  color: var(--text-color2);
  background-color: var(--bg-color2);
}

.btn-light:hover {
  color: var(--text-color2);
  background-color: var(--bg-color9);
}

.btn-primary {
  color: #ffffff;
  background-color: var(--bg-color12);
}

.btn-primary:not(:disabled):hover {
  background-color: var(--bg-color15);
}

.btn-primary.focus, .btn-primary:focus {
  background-color: var(--bg-color15);
}

.btn.focus, .btn:focus {
  box-shadow: unset;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
  background-color: var(--bg-color15);
}


.btn-warning {
  color: #ffffff;
  background-color: var(--bg-color13);
  transition: all .2s;
}

.btn-warning:hover {
  color: #ffffff;
  background-color: #c59039;
}

.btn-warning:not(:disabled):not(.disabled).active, .btn-warning:not(:disabled):not(.disabled):active, .show > .btn-warning.dropdown-toggle {
  color: #ffffff;
  background-color: #c59039;
}

/*modal*/
.modal-dialog {
  margin-top: 12vh;
  margin-bottom: 12vh;
}

.modal-content {
  background-color: var(--bg-color1);
  border: 0;
  border-radius: 4px;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, .2), 2px 6px 10px 0 rgba(0, 0, 0, .19);
}

.modal-header {
  border-bottom: 0;
  color: var(--text-color1);
  font-size: var(--text-18);
  align-items: unset;
}

.modal-body {
  padding: 0.5rem 1rem;
}

.modal-body .form-control {
  font-size: var(--text-12);
  color: var(--text-color1);
  background-color: var(--bg-color10);
  border: 1px solid var(--border-color3);
}

.modal-body .dropdown-item {
  color: var(--text-color2);
  background-color: var(--bg-color2);
  padding: .25rem 1rem;
}

.modal-body .dropdown-item:hover {
  background-color: var(--bg-color9);
}

.modal-body .form-control:hover, .modal-body .form-control:focus {
  border-color: var(--border-color5);
}

.modal-body .text-danger {
  font-size: 12px;
  color: #e62323!important;
}

.modal-footer {
  border-top: 0;
}

.modal-footer .btn {
  font-size: 14px;
}

/*下拉菜单*/
.dropdown-menu {
  min-width: inherit;
  max-width: max-content;
  overflow: hidden;
  padding: 0;
  background-color: var(--bg-color2);
  margin-top: 4px;
  border-radius: 4px;
  transform: unset !important;
  top: 100% !important;
}

.dropdown-menu > .dropdown-item {
  text-align: center;
  color: var(--text-color2);
  padding: 7px 15px;
  font-size: var(--text-12);
  transition-duration: .2s;
  -webkit-transition-duration: .2s;
  cursor: pointer;
}

.dropdown-menu > .dropdown-item:hover {
  background-color: var(--bg-color9);
}

.dropdown-item.active, .dropdown-item:active {
  color: var(--text-color2);
}

#pullDown > .btn {
  color: var(--text-color1);
}

/*ISoroll*/
.iScrollIndicator {
  background-color: var(--bg-color6) !important;
  border: 0 !important;
}

/*图标*/
.bi-paperclip {
  transform: rotateZ(45deg);
}

/*select option*/
select:focus {
  outline: none;
}

.navBar div .btn-light {
  font-size: 0;
}

.navBar div .btn-light {
  background-color: var(--bg-color2);
}

.navBar div .btn-light:hover {
  background-color: var(--bg-color9);
}

/*Logo*/
.logo-img{
  transform: translate(0,0);
  transition:all linear .2s;
  -webkit-transition: all linear .2s;
  -moz-transition: all linear .2s;
}

.logo-img:hover{
  transform: translate(1px,1px);
}

/*清除input在谷歌浏览器下的默认背景色*/
input.form-control:-webkit-autofill {
  -webkit-text-fill-color: var(--text-color1);
  transition: background-color 5000s ease-in-out 0s;
}

/*聚焦*/
:focus {
  outline: unset;
}

:focus-visible {
  outline: unset;
}

.text-align-center {
  text-align: center;
}

/*iscroll*/
.iScrollVerticalScrollbar {
  right: 0!important;
}

.invisible {
  visibility: hidden;
}