:root {
    font-size: 14px;
}

*, ::after, ::before {
    box-sizing: content-box;
}

a {
    text-decoration: none;
}

.modal *, .bs-container * {
    box-sizing: border-box;
}

.bs-container label {
    margin-bottom: .5rem;
}

.bs-container .form-group {
    margin-bottom: 1rem;
}

.bs-container .form-group .form-check label {
    margin-bottom: 0;
}

.bs-container .form-group-upload .layui-input-block {
    margin-left: 0;
}

.bs-container .form-group-upload .layui-input-block .layui-btn {
    height: 30px;
    line-height: 30px;
}

.required-group > label:first-child:after {
    content: '*';
    color: red;
}

.datepicker td, .datepicker th {
    min-width: 35px !important;
    height: 35px !important;
}

.layui-red {
  color: #FF5722 !important;
}

.layui-orange {
  color: #FFB800 !important;
}

.layui-green {
  color: #009688 !important;
}

.link {
  color: #009688 !important;
  text-decoration: underline;
}

.layui-table-tool-temp {
    overflow: hidden;
}

.layui-success {
  color: #5FB878 !important;
}

.layui-cyan {
  color: #2F4056 !important;
}

.layui-dark {
  color: #393D49 !important;
}

.layui-blue {
  color: #1E9FFF !important;
}

.layui-black {
  color: black !important;
}

.layui-silver {
  color: #ddd !important;
}

.layui-gray {
  color: #888 !important;
}

.layui-info {
  color: #01AAED !important;
}

.layui-input:focus, .layui-textarea:focus {
  border-color: #009688 !important;
}

select.form-control {
  appearance: auto;
}

select.form-control.in-grid {
  appearance: auto;
  width: calc(100% - 22px);
  min-width: 50px;
  height: 25px;
  border-color: #eee;
}

body .layui-form-danger + .layui-form-select .layui-input,
body input.layui-form-danger,
body textarea.layui-form-danger,
body select.layui-form-danger {
  border-color: #FF5722 !important;
}

.layui-input-area {
  float: left;
  width: calc(100% - 110px);
}

.layui-input-area .layui-input-inline {
  margin-left: 0;
}

.layui-form-switch {
  width: 38px;
}

.layui-tab-fill {
  height: calc(100% - 40px);
  overflow: hidden;
}

.layui-tab-fill .layui-tab-title {
  z-index: 1;
  background: #eee;
}

.layui-tab-fill .layui-tab-content {
  height: calc(100% - 61px);
  overflow: auto;
}

.layui-form-item.has-suffix-icon .layui-form-mid {
  color: #666 !important;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
}

.layui-card {
  border: 1px solid #e6e6e6;
  margin-bottom: 15px !important;
  box-shadow: none;
}

.layui-card-header {
  background-color: #f2f2f2;
  border-bottom: 1px solid #e6e6e6;
}

.layui-card-header .layui-form-switch {
  margin-top: -3px;
  margin-right: 5px;
}

.layui-layer-content {
  overflow: visible !important;
}

.wild-label {
  padding: 9px 6px;
}

.required-mark {
  color: red;
}

.form-select-fix {
    appearance: auto;
    max-width: calc(100% - 22px);
    padding-left: 4px;
}

body .layui-form-label {
    width: 85px;
}

body .layui-input-block {
    margin-left: 115px;
}

body .layui-input-area {
    width: calc(100% - 115px);
}

body .layui-layout-admin .layui-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-ai {
    border-radius: 52px;
    padding-left: 25px;
    padding-right: 25px;
    background: linear-gradient(45deg, #00f2ff, #7928ca, #ff0080);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(121, 40, 202, 0.3);
    border: none;
}

@media screen and (min-width: 1212px) {
  .layui-body .layui-container {
    width: 970px !important;
  }
}

@media screen and (min-width: 992px) {
  .layui-body .layui-container {
    width: auto;
  }
}

@media screen and (min-width: 768px) {
  .layui-body .layui-container {
    width: auto;
  }
}

.layui-nav-toggle {
  padding: 0;
  display: none;
}

.layui-nav-item-toggle {
  margin-left: -20px;
}

.layui-nav-item-toggle .layui-icon-spread-left {
  display: none;
}

.layui-nav-item-logo {
  display: none !important;
  margin: 0 10px;
  font-size: 16px;
  color: #009688;
}

.layui-nav-itemed > .layui-nav-child {
  padding-left: 20px;
}

.layui-backdrop {
  display: none;
}

.layui-side, .layui-body, .layui-footer, .layui-logo, .layui-layout-left {
  transition: left 300ms;
}

.layui-side dl, .layui-side dd {
    margin-bottom: 0;
}

.layui-layout.collapsed > .layui-side,
.layui-layout.collapsed .layui-logo {
  left: -200px;
}

.layui-layout.collapsed .layui-layout-left,
.layui-layout.collapsed > .layui-body,
.layui-layout.collapsed > .layui-footer {
  left: 0;
}

.layui-layout.collapsed .layui-nav-item-toggle .layui-icon-shrink-right {
  display: none;
}

.layui-layout.collapsed .layui-nav-item-toggle .layui-icon-spread-left {
  display: inline !important;
}

.layui-layout.collapsed .layui-nav-item-logo {
  display: inline-block !important;
}

@media screen and (max-width: 767px) {
  .layui-side {
    top: 0 !important;
    left: -200px;
    z-index: 9999999;
  }

  .layui-header .layui-logo {
    left: 54px !important;
    width: auto;
  }

  .layui-header .layui-nav.layui-layout-left {
    display: none;
  }

  .layui-body {
    left: 0 !important;
    bottom: 0 !important;
  }

  body .layui-footer {
    left: auto !important;
    width: 100px;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
  }

  body .layui-footer .hide-narrow {
    display: none;
  }

  .layui-nav-toggle {
    display: block;
  }

  .layui-row:last-of-type .layui-col-md12 .layui-input-block {
    margin-left: 0;
  }
}

.layui-input-block-inline .layui-form-select,
.layui-input-block-inline .layui-input,
.layui-input-block-inline .layui-textarea,
.layui-input-block-inline .layui-x-select {
  display: inline-block;
  vertical-align: middle;
}

.layui-layout.open .layui-side {
  left: 0;
  box-shadow: 0 0 40px black;
}

.layui-layout.open .layui-backdrop {
  display: block;
  z-index: 9999998;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-color: rgba(0,0,0,0.4);
}

.layui-table.layui-table-dense th,
.layui-table.layui-table-dense td {
  padding: 5px 8px;
}

.layui-table-tool .layui-btn.layui-btn-sm {
  margin-bottom: 0;
}

.layui-table-tool .layui-input {
  height: 32px;
}

.layui-table-tool .layui-inline {
  position: relative;
}

.layui-table-tool .layui-inline .clear {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 30px;
  text-align: center;
}

.layui-table-col-special .layui-btn+.layui-btn {
  margin-left: 3px;
}

.layui-btn.icon-only .layui-icon {
  margin-right: 0;
}

.layui-input:disabled, .layui-select:disabled, .layui-textarea:disabled {
  background-color: #f6f6f6;
  cursor: not-allowed;
}

[data-tippy-root] .tippy-content {
  font-size: 12px;
}

.list-group .list-item {
  display: flex;
  padding: 10px 4px 10px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.list-group .list-item + .list-item:before {
  content: '';
  display: block;
  width: 100%;
  left: 0;
  top: 0;
  position: absolute;
  border-top: 1px solid #d6d6d6;
}

.list-group .list-item:hover {
  background: #f6f6f6;
}

.list-group .list-item-body {
  flex-grow: 1;
}

.list-group .list-item-title {
  font-size: 14px;
  margin-bottom: 4px;
}

.list-group .list-item-content {
  color: #888;
}

.list-group .list-item-content + .list-item-content {
  margin-top: 4px;
}

.list-group .list-item-right {
  width: 30px;
  justify-content: flex-end;
  display: flex;
  align-items: center;
}

.tippy-box {
  max-width: 500px !important;
}

.upload-block .preview-link img {
  max-height: 250px;
  max-width: 100%;
}

.upload-block .files-list {
  margin-top: 10px;
}

.upload-block .files-item {
  border: 1px solid #ccc;
  border-radius: 5px;
  display: inline-block;
  margin-right: 10px;
  overflow: hidden;
  padding: 10px;
}

.upload-block .files-item > a {
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.upload-block .files-item > a > img {
  max-width: 100%;
  max-height: 100%;
}

html.mc .layui-layout-admin .layui-header {
    background-color: #026a7d;
}

html.mc .layui-layout-admin .layui-logo {
    color: white;
}

html.mc .layui-nav-tree {
    background-color: #026a7d !important;
}

.chat-root {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-root .chat-list,
.chat-root .chat-box {
    display: block;
}
.chat-list {
    padding-bottom: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    display: none;
}
.chat-msg-item {
    display: flex;
    align-items: stretch;
    margin: 15px 10px 0;
}
.chat-msg-avatar {
    width: 32px;
    height: 32px;
    background: rgba(3, 96, 217);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
}
.chat-msg-avatar.chat-msg-avatar-ai {
    background-color: #049f00;
}
.chat-msg {
    background-color: white;
    border-radius: 6px;
    padding: 8px;
    flex-grow: 1;
    margin-top: -3px;
    margin-left: 8px;
    position: relative;
    max-width: calc(100% - 36px);
}
.chat-msg-me {
    background-color: #f0f0f0;
}
.chat-msg-me:before, .chat-msg-me:after {
    content: '';
    display: inline-block;
    position: absolute;
    right: -12px;
    top: 13px;
    border: 6px solid transparent;
    border-left: 6px solid #ddd;
}
.chat-msg-me:before {
    border: 5px solid transparent;
    border-left: 5px solid white;
    z-index: 1;
    right: -10px;
    top: 14px;
}
.chat-msg-ai:before, .chat-msg-ai:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: -12px;
    top: 13px;
    border: 6px solid transparent;
    border-right: 6px solid #ddd;
}
.chat-msg-ai:before {
    border: 5px solid transparent;
    border-right: 5px solid white;
    z-index: 1;
    left: -10px;
    top: 14px;
}
.chat-msg-content {
    max-height: 100px;
    overflow: hidden;
    color: #27303e;
}
.chat-msg-content h1 {
    font-size: 1.4rem;
}
.chat-msg-content h2 {
    font-size: 1.3rem;
}
.chat-msg-content h3 {
    font-size: 1.2rem;
}
.chat-msg-content h4 {
    font-size: 1.1rem;
}
.chat-msg-content h5, h6 {
    font-size: 1rem;
}
.chat-msg-content p {
    margin: 0.5rem 0;
    color: #27303e;
}
.chat-msg-content > p:first-child {
    margin-top: 0;
}
.chat-msg-content > p:last-child {
    margin-bottom: 0;
}
.chat-msg-content ul {
    list-style-type: disc;
    padding-left: 16px;
}
.chat-msg-content ul li {
    list-style-type: disc;
}
.chat-msg-content ol {
    list-style-type: inherit;
    padding-left: 16px;
}
.chat-msg-content ol li {
    list-style-type: inherit;
}
@keyframes fade {
    from {opacity: 1}
    to {opacity: 0}
}
.chat-msg-content .cursor,
.chat-box .cursor {
    border: 2px solid #666;
    width: 10px;
    animation: fade 0.7s infinite;
}
.chat-msg-me .chat-msg-content {
    white-space: pre;
    text-wrap: wrap;
}
.chat-msg-content.expanded {
    max-height: none;
}
.chat-msg-expander {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(0deg, white, rgba(255, 255, 255, 0.7));
    position: absolute;
    margin-top: -13px;
    margin-left: -8px;
    border-radius: 8px;
}
.chat-msg-content.expanded + .chat-msg-expander {
    position: relative;
    margin: 0;
}
.chat-msg-item-me {
    flex-direction: row-reverse;
}
.chat-msg-item-me .chat-msg-me {
    margin-left: auto;
    margin-right: 8px;
    flex-grow: 0;
}
.chat-samples .desc {
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
}
.chat-box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: -4px;
}
.chat-box-footer .dropdown-toggle {
    font-size: 12px;
}
.chat-box {
    padding: 10px;
    border-top: 1px solid #ddd;
    box-shadow: 0 -3px 3px #eee;
    background-color: white;
    position: relative;
    display: none;
}
.chat-box textarea {
    height: 60px !important;
    margin-right: 8px;
    border-radius: 6px;
}
.chat-box-title {
    font-weight: 500;
    margin-bottom: 6px;
}
.chat-box-input {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
}
.chat-box-input > .btn {
    display: flex;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 20px;
    border-radius: 6px;
}
.chat-box-tip {
    font-size: 10px;
    color: #aaa;
}
.chat-actions {
    position: absolute;
    top: -30px;
    width: 100%;
    left: 0;
    text-align: center;
}
.chat-action {
    border: 1px solid #aaa;
    border-radius: 20px;
    padding: 4px 8px;
    background: #f6f6f6;
    font-size: 12px;
}
