/*
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

html,
body {
  overflow: auto;
  height: 100%;
}

.main-content {
  margin-top: 60px;
}

.tab-container {
  margin-top: -8px;
}

.tab-content {
  margin: 0;
  padding: 13px 0 0;
}

.view-header {
  padding: 15px 20px;
  height: 61px;
  border-bottom: 1px solid #e6e6e6;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background-color: #fff;
  background-color: rgba(255, 255, 255, 0.9);
}

.view-header .header-icon {
  float: left;
}

.view-header .title {
  line-height: 1.428571;
  display: inline-block;
  margin: 0;
  font-weight: 300;
  font-size: 1.538rem;
  max-width: 80%;
}

.view-header > span > .close {
  font-size: 1.638rem;
  opacity: 0.6;
  padding: 1rem;
  height: 40px;
  margin: -10px -1rem -1rem auto;
}

.view-header > span > .close.sm {
  font-size: 1.45rem;
  margin-right: -7px;
}

.view-header > span > .close:hover {
  opacity: 0.8;
}

.rbview-form > .row .form-group {
  padding-top: 4px;
  padding-bottom: 4px;
}

.rbview-form .form-control-plaintext {
  min-height: 37px;
}

/* .rbview-form .img-field .img-thumbnail:hover,
.rbview-form .file-field .img-thumbnail:hover {
  opacity: 0.8;
} 

.rbview-form .file-field .img-thumbnail {
  width: 100%;
  margin: 0;
}
*/

.rbview-form .type-NTEXT .form-control-plaintext {
  max-height: 72px;
  position: relative;
}

.rbview-form .type-NTEXT .form-control-plaintext.mdedit-content {
  max-height: 134px;
  word-break: break-all;
}

.rbview-form .type-NTEXT .form-control-plaintext > p {
  margin: 0;
  line-height: 1.428571;
}

.nav-tabs > li.nav-item a.nav-link {
  padding: 11px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tabs,
.nav-tabs > li.nav-item {
  position: relative;
}

.nav-tabs .vtab-settings {
  position: absolute;
  right: 0;
  top: 4px;
  padding: 9px 8px;
  font-size: 15px;
  opacity: 0.6;
  display: none !important;
}

.nav-tabs .vtab-settings:hover {
  opacity: 0.8;
}

.nav-tabs:hover .vtab-settings {
  display: inline-block !important;
}

.nav-tabs .badge {
  position: absolute;
  top: -1px;
  right: -4px;
  font-size: 0.8462rem;
  font-weight: normal;
  line-height: 1.2;
}

.related-list {
  min-height: 200px;
}

.related-list .card {
  border: 1px solid #ebebeb;
  padding: 0;
  margin-bottom: 9px;
}

.related-list .card:hover {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.related-list .card .header-title {
  padding: 10px 0;
  margin: 0;
  cursor: default;
  position: relative;
}

.related-list .card .header-title::after {
  position: absolute;
  font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
  content: '\f278';
  color: #aaa;
  right: 15px;
  margin-top: 2px;
  font-size: 1.2rem;
}

.related-list .card .header-title .col-2.text-right {
  padding-right: 30px;
}

.related-list .related-toolbar {
  margin-bottom: 13px;
}

.related-list .related-toolbar.feeds {
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 13px;
}

.view-operating {
  padding-top: 3px;
}

.view-operating > div{
  margin-top: 15px;
}

.view-operating > div.view-action {
  margin-top: 30px;
}

.view-operating .form-line {
  margin-bottom: 10px;
}

.view-operating dt {
  font-weight: normal;
}

.view-action .col-lg-6 {
  margin-bottom: 0.769231rem;
}

.view-action .col-lg-6:nth-child(odd) {
  padding-right: 5px;
}

.view-action .col-lg-6:nth-child(even) {
  padding-left: 5px;
}

.view-action .col-lg-6 .btn {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991px) {
  .view-action .col-lg-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

.view-date .col-lg-4,
.view-user .col-lg-4 {
  padding-right: 0;
  color: #222;
}

.view-user .col-lg-8 {
  min-height: 30px;
  margin-top: -6px;
  margin-bottom: 0;
  padding-right: 0;
  padding-left: 0;
}

.view-date .col-lg-8 {
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 991px) {
  .view-user .col-lg-8,
  .view-date .col-lg-8 {
    padding-left: 15px;
    margin-top: 5px;
  }
}

.view-user .row ul > li {
  margin-bottom: 0;
  margin-right: 7px;
  line-height: 1;
}

.view-user .row ul > li:last-child {
  margin-right: 0;
}

.view-user .row:last-child {
  margin-bottom: 0;
  margin-top: 18px;
  min-height: 36.5px;
}

.view-user .user-show {
  line-height: 1;
}

.sharing-list .user-avatar {
  line-height: 30px;
  color: #444;
}

.sharing-list .badge-light {
  font-weight: normal;
}

.sharing-list .table > tbody td {
  padding: 8px 10px;
}

.load-mores {
  border-top: 1px solid #eee;
  height: 34px;
  margin-top: 34px;
}

.load-mores .btn {
  width: 160px;
  line-height: 1.8rem;
  min-height: 2.6rem;
  border-radius: 99px;
  font-size: 12px;
}

.load-mores > div {
  width: 180px;
  background-color: #fff;
  margin: -1.4rem auto 0;
}

.load-mores > .btn {
  display: inline-block;
  margin-top: -1.4rem;
}

.load-mores.load-end {
  border: 0 none;
  margin: 15px 0;
  height: auto;
}

.load-mores.load-end > div {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  margin: 0 auto;
  border-radius: 99px;
}

/* editable */

.rbview-form .form-group.editable a.edit {
  position: absolute;
  right: 0;
  top: 0;
  color: #aaa;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  text-align: center;
  border-radius: 2px;
  background-color: #f8f9fa;
  display: none;
}

.rbview-form .form-group.editable a.edit::before {
  font-family: 'Material-Design-Iconic-Font';
  content: '\f158';
  font-size: 16px;
  display: inline-block;
}

.rbview-form .form-group.editable a.edit:hover {
  color: #4285f4;
}

.rbview-form .form-group.editable a.edit:active {
  box-shadow: inset 0 2px 0 #e6e6e6;
  background-color: #f0f0f0;
}

.rbview-form .form-group.editable > div:hover > a.edit {
  display: block;
}

.rbview-form .form-group.editable > div .edit-oper {
  text-align: right;
}

.rbview-form .form-group.editable > div .edit-oper .btn {
  width: 28px;
  height: 28px;
  overflow: hidden;
  line-height: 1.1;
  padding: 0;
  min-width: 0;
  min-height: 0;
  font-weight: bold;
}

.rbview-form.readonly .form-group.editable a.edit {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.type-AVATAR .edit-oper,
.type-BOOL .edit-oper,
.type-FILE .edit-oper,
.type-MULTISELECT .edit-oper,
.type-IMAGE .edit-oper,
.type-SIGN .edit-oper {
  border-top: 1px solid #dbdbdb;
}

.type-AVATAR .edit-oper,
.type-SIGN .edit-oper {
  margin-top: 7px;
}

.type-IMAGE .edit-oper {
  margin-top: -2px;
}

.type-BOOL .edit-oper {
  margin-top: -8px;
}

.type-MULTISELECT .edit-oper {
  margin-top: -1px;
}

.rbview-form .img-field .img-upload.img-thumbnail.zoom-in {
  background-color: transparent;
}

.rbview-form.inside {
  display: none;
  padding: 10px 15px;
}

.rbview-form.inside > .rb-loading {
  height: 60px;
}

.rbview-form.inside > .alert {
  margin: 10px auto !important;
}

.card.active .rbview-form.inside {
  display: block;
}

.card.active .header-title {
  background-color: #eee;
}

.card.active .header-title::after {
  content: '\f273';
}

.modal-body .feed-options.related {
  display: none;
}

.view-history .view-history-items {
  padding: 0;
  margin: 0;
  position: relative;
}

.view-history .view-history-items::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 20px;
  width: 2px;
  background: #ddd;
  left: 6px;
}

.view-history .view-history-items > li {
  position: relative;
  padding-left: 24px;
  height: 28px;
  color: #777;
}

.view-history .view-history-items > li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 1px;
  width: 12px;
  height: 12px;
  background-color: #ddd;
  border-radius: 50px;
  border: 2px solid #fff;
}

.view-history .view-history-items > li b:first-child {
  font-weight: normal;
  min-width: 60px;
  display: inline-block;
}

.CodeMirror-fullscreen {
  top: 110px;
}

.editor-toolbar.fullscreen {
  top: 60px;
}

.mdedit-content p,
.editor-preview p {
  margin-bottom: 0.75em !important;
  line-height: 1.6 !important;
}

/* over Feeds */

.feeds-list.inview {
  border-top: 1px solid #eee;
}

.feeds-list.inview > div {
  position: relative;
  padding: 12px 1px 2px;
  border-bottom: 1px solid #eee;
  margin: 0;
}

.feeds-list.inview .feeds + .actions {
  border: 0 none;
  padding: 0;
  margin: -32px 0 0;
}

.feeds-list.inview .feeds > .content .rich-content > .appends a:not([href]):not([tabindex]) {
  cursor: default;
}

.feeds-list.inview .J_relatedRecord a {
  color: #444;
  cursor: text;
}

.tasks-list.inview .card:hover {
  box-shadow: 0 0 0 #fff;
}

.tasks-list.inview .header-title .title {
  padding-left: 45px;
}

.tasks-list.inview .header-title .title .custom-control {
  position: absolute;
  left: 15px;
  margin: -1px 0 0;
}

.tasks-list.inview .header-title::after {
  content: '';
}

.tasks-list.inview .header-title .task-meta {
  text-align: right;
  color: #878787;
}

.tasks-list.inview .header-title .task-meta .avatar {
  position: absolute;
  top: -4px;
  right: 15px;
  margin-left: 15px;
}

.tasks-list.inview .header-title .task-meta .avatar img {
  width: 26px;
  height: 26px;
}

.tasks-list.inview .card.priority-2 .header-title,
.tasks-list.inview .card.priority-3 .header-title {
  border-left: 4px solid #f7b904;
}

.tasks-list.inview .card.priority-3 .header-title {
  border-left-color: #ea3f30;
}

.tasks-list.inview .card.priority-2 .header-title .title,
.tasks-list.inview .card.priority-3 .header-title .title {
  padding-left: 41px;
}

.tasks-list.inview .card.priority-2 .header-title .title .custom-control,
.tasks-list.inview .card.priority-3 .header-title .title .custom-control {
  left: 11px;
}

.tasks-list.inview .card.status-1 .title {
  color: #8c8c8c;
  opacity: 0.5;
}

.tasks-list.inview .card.status-1 .title a {
  color: #8c8c8c;
}

.map-show {
  height: 100px;
  margin-bottom: 4px;
}

.type-LOCATION.col-sm-6 .map-show {
  height: 200px;
}

.type-LOCATION.col-sm-9 .map-show {
  height: 300px;
}

.type-LOCATION.col-sm-12 .map-show {
  height: 400px;
}

.form-control-plaintext.multi-values {
  padding-top: 6px;
  padding-bottom: 4px;
}

.form-control-plaintext.multi-values > a,
.form-control-plaintext.multi-values > span {
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 3px;
  margin-bottom: 3px;
  display: inline-block;
  border: 1px solid #ddd;
  background-color: #fff;
  line-height: 17px;
}

.file-list.inview {
  border-top: 1px solid #eee;
}

.file-list.inview .file-list-item {
  padding-left: 10px;
  padding-right: 1px;
}

.file-list.inview .file-list-item:hover {
  background-color: transparent !important;
}
