@import url("./lib/jquery.jgrowl.min.css");

/* Lists */
.ticket-comment,
.ticket-comment-row {
  margin-bottom: 15px;
}
.ticket-new-comments {
  color: green;
}

/* Ticket form */
#ticketForm {
  /*max-width: 800px;*/
}
#ticketForm #ticket-sections {
  max-width: 400px;
}
#ticketForm .error,
#comment-form .error {
  color: brown;
}
#ticketForm [name="content"] {
  display: inline-block;
}
#no-ticket-preview-placeholder {
  background: #fff;
  outline: 5px solid #aaa;
  padding: 5px;
  display: none;
  margin: 10px 0;
  overflow: hidden;
}
#ticketForm .form-actions,
#comment-form .form-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e3e3e3;
}
#ticketForm .form-actions .checkbox,
#comment-form .form-actions .checkbox {
  display: inline;
}
#ticketForm .move-right {
  text-align: right;
}

/* Comments */
.comments {
  position: relative;
  overflow: hidden;
}
.comments-list {
  padding-left: 25px;
}
.ticket-comment {
  list-style-type: none;
  margin-top: 5px;
}
.ticket-avatar {
  display: inline-block;
}
.ticket-comment .ticket-avatar {
  max-width: 24px;
  max-height: 24px;
}
.ticket-comment-author {
  display: inline-block;
  font-weight: bold;
  margin-left: 10px;
}
.ticket-comment-createdon {
  display: inline-block;
  font-size: 0.8em;
  color: #555555;
  margin-left: 10px;
}
.ticket-comment-edited {
  display: inline-block;
  font-size: 0.8em;
  color: #555555;
  margin-left: 10px;
  font-style: italic;
}
.ticket-comment-link {
  display: inline-block;
  margin-left: 15px;
}

.ticket-comment-header {
  position: relative;
}
.ticket-comment:hover > .ticket-comment-body > .ticket-comment-header > .ticket-comment-dot-wrapper {
  display: block;
}
.ticket-comment-dot-wrapper {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}
.ticket-comment-dot {
  width: 500px;
  height: 5px;
  right: 1px;
  top: 9px;
  position: absolute;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAFCAYAAACw/UeDAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUTDRYgxxbUHAAAAFVJREFUGNO1kbENACEMxBwKJCRmICOw/xgZIaxAgZSGb34E4gVOPsNPRFySEAAzu2stxhjMOeX1SImI6+703nF3zjnPjUqtVVSVvTeqSmtNsm5LbfIBwCcf3dkm2FsAAAAASUVORK5CYII=)
    repeat-x 100% 0;
}

.ticket-comment-text {
  margin-top: 5px;
  padding: 10px 5px;

  /*border: 1px solid #f7f7f7;
    border-radius: 5px;
    box-shadow: #efefef 0 0 5px;
    overflow: hidden;*/
}
.ticket-comment-body {
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
}
.ticket-reply-link a {
  font-size: 0.8em;
  text-decoration: none;
  border-bottom: 1px dashed;
}
.ticket-comment-down {
  display: none;
}
/* Guest comment */
.ticket-comment-guest .ticket-comment-author {
  color: #aaa;
}
/* Bad comments*/
.ticket-comment .bad .ticket-comment-text {
  -moz-transition: opacity 1s ease;
  -o-transition: opacity 1s ease;
  -webkit-transition: opacity 1s ease;
}
.ticket-comment .bad.bad5 .ticket-comment-text {
  opacity: 0.2;
}
.ticket-comment .bad.bad4 .ticket-comment-text {
  opacity: 0.35;
}
.ticket-comment .bad.bad3 .ticket-comment-text {
  opacity: 0.5;
}
.ticket-comment .bad.bad2 .ticket-comment-text {
  opacity: 0.65;
}
.ticket-comment .bad.bad1 .ticket-comment-text {
  opacity: 0.8;
}
.ticket-comment .bad.bad:hover .ticket-comment-text {
  opacity: 1;
}

#comment-editor {
  width: 99%;
  display: inline-block;
}
#comment-preview-placeholder {
  background: #fff;
  border: 2px solid #5bc0de;
  padding: 5px;
  display: none;
  margin: 10px 0;
  overflow: hidden;
}

/* Messages */
.tickets-message-success {
  background-color: green !important;
}
.tickets-message-error {
  background-color: brown !important;
}
.tickets-message-info {
  background-color: black !important;
}

/* Panel with spinner */
#comments-tpanel {
  width: 32px;
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  margin-top: -16px;
  z-index: 2;
}

#tpanel {
  width: 32px;
  position: fixed;
  top: 50%;
  opacity: 0.5;
  background: #aaa;
}
#tpanel:hover {
  opacity: 1;
}

#tpanel .change {
  color: #666;
  font-size: 12px;
  text-decoration: none;
  padding: 0 10px;
  position: absolute;
  left: 0;
  top: -15px;
}
#tpanel .divider {
  border-top: solid 1px #5c5c5c;
  border-bottom: solid 1px #dddddd;
  width: 28px;
  height: 0px;
  margin: 0 auto;
}
#tpanel .refresh {
  display: block;
  background: url("../../img/web/refresh.gif") no-repeat left top;
  width: 28px;
  margin: 2px;
  height: 28px;
  background-size: 32px;
}
#tpanel .refresh.loading {
  background: url("../../img/web/loading.gif") no-repeat left top;
  background-size: 32px;
}
#tpanel .new {
  text-decoration: none;
  display: block;
  color: #fff;
  font-size: 12px;
  padding: 0;
  padding-top: 4px;
  padding-bottom: 6px;
  width: 34px;
  text-align: center;
}
.clear {
  float: right;
}

#tpanel-refresh {
  opacity: 0.5;
  cursor: pointer;
}

#tpanel-refresh i.fa {
  padding: 10px;
}
#comment-form {
  display: none;
}
#comment-form.visible {
  display: block;
}
div.mce-edit-area {
  cursor: text;
}

#tpanel-refresh:hover {
  opacity: 1;
}
#tpanel-refresh.loading {
  opacity: 1;
  background-image: url("../../img/web/loading.gif");
  cursor: default;
}

#tpanel-new {
  margin-top: 2px;
  border-top: solid 1px #efefef;
  text-align: center;
  color: darkgreen;
  cursor: pointer;
}

/* Unseen comment */
.ticket-comment-new .ticket-comment-header {
  background-color: #f5f5dc;
}

/* Rating and vote */
.ticket-comment-rating {
  float: right;
  color: #555;
}
.ticket-rating .rating,
.ticket-comment-rating .rating {
  font-weight: bold;
}

.ticket-rating.active .vote,
.ticket-comment-rating.active .vote {
  cursor: pointer;
}

.ticket-rating.active .vote.plus:hover,
.ticket-rating.inactive .vote.plus.voted,
.ticket-rating .rating.positive,
.ticket-comment-rating.active .vote.plus:hover,
.ticket-comment-rating.inactive .vote.plus.voted,
.ticket-comment-rating .rating.positive {
  color: green;
}

.ticket-rating.active .vote.minus:hover,
.ticket-rating.inactive .vote.minus.voted,
.ticket-rating .rating.negative,
.ticket-comment-rating.active .vote.minus:hover,
.ticket-comment-rating.inactive .vote.minus.voted,
.ticket-comment-rating .rating.negative {
  color: red;
}

.ticket-rating.inactive,
.ticket-comment-rating.inactive {
  color: #aaa;
}

.ticket-rating.active .vote.refrain:hover {
  opacity: 0.7;
}

/* Ticket stars*/
.ticket-star.active .star,
.ticket-comment-star.active .star {
  cursor: pointer;
}
.ticket-star .stared,
.ticket-comment-star .stared {
  color: green;
}
.ticket-star .unstared,
.ticket-comment-star .unstared {
  color: gray;
}
.ticket-star.active .unstared:hover,
.ticket-comment-star.active .unstared:hover {
  color: green;
}

/* Ticket meta*/
.ticket-meta,
.section-meta {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid #d3d3d3;
  border-bottom: 1px solid #d3d3d3;
}

/* Form files */
.m-files {
  margin-top: 15px;
}
.ticket-files-container {
  margin-top: 10px;
}
.ticket-files-select {
  font-weight: normal;
  display: inline-block;
}

#ticket-files-list-m .ticket-file-insert {
  display: none;
}
.ticket-files-progress,
.ticket-files-list .ticket-file-template {
  display: none;
}
.ticket-files-progress-count {
}
.ticket-files-progress-percent {
  float: right;
}
.ticket-files-progress-bar {
  height: 1.5em;
  background: lightblue;
  margin-top: 5px;
  width: 0;
}

.clearfix {
  clear: both;
}
#ticket-files-list,
.ticket-files-list {
  padding: 10px 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 1px;
  min-height: 50px;
}
.ticket-files-list .ticket-file {
  width: 120px;
  float: left;
  margin: 5px 0 5px 10px;
  outline: 1px solid #efefef;
}
.ticket-files-list .ticket-file-image-wrapper {
  width: 120px;
  height: 90px;
  overflow: hidden;
}
.ticket-files-list .ticket-file-image {
  width: 120px;
  border: 1px solid #efefef;
}
.ticket-files-list .ticket-file-size {
  color: #777;
  float: right;
}

#ticket-files-list.droppable,
.ticket-files-list.droppable {
  border-width: 1px;
  border-style: dashed;
  border-color: #337ab7;
}
.ticket-files-list.dragover {
  border-color: darkgreen;
}
.ticket-files-list .ticket-file-meta {
  font-size: 0.8em;
  padding: 0 5px;
  position: relative;
}

.ticket-files-list .ticket-file.new {
  outline-color: lightblue;
}
.ticket-files-list .ticket-file.deleted {
  outline-color: darkred;
}

.ticket-files-list .ticket-file .ticket-file-restore {
  color: darkgreen;
}
.ticket-files-list .ticket-file .ticket-file-delete {
  color: darkred;
}

.ticket-files-list .ticket-file .ticket-file-restore,
.ticket-files-list .ticket-file.deleted .ticket-file-delete {
  display: none;
}
.ticket-files-list .ticket-file.deleted .ticket-file-restore {
  display: inline;
}

.ticket-files-list .ticket-ghost-state-highlight {
  background: lightblue;
}

.ticket-file-modal.biblio {
  position: absolute;
  right: 5px;
  text-align: right;
  margin-top: 0;
  display: inline;
}

.ticket-files-list .ticket-file-make-cover {
  font-weight: 600;
  display: inline-block;
}

.ticket-files-list .ticket-file-make-cover:before {
  color: #faaa47;
  content: "Сделать обложкой";
}
.ticket-files-list .ticket-file-link {
  font-size: 0.8em;
  padding: 5px;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
}
.ticket-files-list .biblio.ticket-file.folder-cover {
  outline: 1px solid #6fff6f;
}
.ticket-files-list .biblio.ticket-file.folder-cover .ticket-file-meta {
  visibility: hidden;
}
.ticket-files-list .biblio.ticket-file.folder-cover .ticket-file-make-cover:before {
  color: #f26144;
  content: "Убрать обложку";
}
.ticket-files-list .biblio.ticket-file {
  width: 280px;
  float: left;
  margin: 5px 0 5px 10px;
  outline: 1px solid #efefef;
}
.biblio-image-wrapper {
  height: 370px;
  overflow: hidden;
}
.biblio-image-wrapper .ticket-file-image {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ticket-files-list.flex-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.hidden-element {
  display: none;
}

.mention-unpublished {
  color: red;
}
.ticket-files-list.flex-row .biblio.ticket-file {
  /*-webkit-box-flex: 0;
    -webkit-flex: 0 0 25%;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 280px;*/
  webkit-flex-basis: 0;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  max-width: 25%;
  min-width: 275px;
  margin-right: 10px;
  float: none;
}

#ticket-files-progress,
#ticket-files-list .ticket-file-template {
  display: none;
}
#ticket-files-container {
  margin-top: 10px;
}
.form-wrapper {
  min-height: 20px;
  padding: 5px;
  margin-bottom: 20px;
  background-color: #fffdf5;
  border: 1px solid #f7f0df;
  /*border: 1px solid #f7af25;*/
}
.ticket-file-modal {
  margin-top: 5px;
  display: block;
}
.ticket-file small {
  margin: 5px;
  display: block;
  line-height: 1.2;
  word-wrap: break-word;
}
.ticket-comment-files {
  float: right;
  font-size: 0.8em;
  color: #555555;
}
.ticket-comment-files ul li {
  list-style: none;
  display: inline-block;
  margin-left: 5px;
}
#comment-preview-placeholder .comment-reply {
  display: none;
}
.ticket-comment-up a,
.ticket-comment-down a {
  color: #333;
  text-decoration: none;
  opacity: 0.5;
}
.ticket-comment-up a:hover,
.ticket-comment-down a:hover {
  opacity: 1;
}
.comment-reply a {
  font-size: 0.9em;
}
.comment-reply .edit {
  padding-left: 5px;
}
blockquote {
  font-size: 1em;
  margin-bottom: 5px;
  padding: 5px 10px;
  color: #888;
}
.comments-subscribe {
  margin: 5px 0;
}
.comments-subscribe label {
  margin: 0;
  color: #666;
}
.title {
  display: inline-block;
  margin-top: 5px;
  font-weight: 700;
}
input.locked,
select.locked {
  pointer-events: none;
  user-select: none;
  color: #777;
}

.modal.in .modal-dialog.modal-images {
  margin: 5px auto;
  position: fixed;
  top: 0;
  left: 50%;
  webkit-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  -o-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}
.modal-dialog.modal-images .modal-content {
  height: calc(100vh - 10px);
  overflow: hidden;
}
.modal-dialog.modal-images .modal-content .modal-body {
  height: calc(100vh - 200px);
  overflow-y: auto;
}
.modal-body .images-wrapper {
  /*position: relative;
	overflow-y: auto;
	max-height: calc(100vh - 200px);*/
}
.modal-body .images-wrapper .page-image {
  position: relative;
  display: block;
  margin-bottom: 5px;
}

.modal-body .images-wrapper .page-num {
  position: absolute;
  top: 3px;
  right: 18px;
  width: 3rem;
  line-height: 3rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  background: #337ab7;
  border: 2px solid #fff;
  display: block;
  cursor: pointer;
  display: none;
}
.modal-body .images-wrapper .page-select {
  position: absolute;
  top: 0;
  right: 15px;
  width: 2rem;
  display: block;
}

.modal-body .images-wrapper .page-image img {
  width: 100%;
  height: auto;
  border: 3px solid #fff;
  box-sizing: border-box;
  display: block;
}
.modal-body .images-wrapper .page-image.selected img {
  border-color: #ff7101;
}
.modal-body .images-wrapper .page-image.selected .page-num {
  background: #ff7101;
}
.modal-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.comment-list {
  padding-left: 0;
}

.ticket-meta.forum-meta {
  margin: inherit;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.avatar,
.caption {
  display: inline-block;
  vertical-align: top;
}
.caption {
  padding-left: 5px;
}

.icons {
  margin-top: 10px;
}
.icons i.fa {
  font-size: 14px;
}
.icons i.fa.fa-eye {
  color: #888;
}

.caption strong {
  display: block;
}

.vozm-tasks-group {
  background: #f2f2ff;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
}

#search_query {
  margin-bottom: 5px;
}

.tasks_list {
  padding: 5px;
  /*height: 25rem;*/
  min-height: 40px;
  font-size: 15px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid #d0d0d0;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  border-radius: 3px;
  /*position: relative;*/
}
.tasks_list .item {
  cursor: pointer;
  margin: 0 3px 3px 0;
  padding: 2px 13px 2px 6px;
  background: #f2f2f2;
  color: #303030;
  border: 0 solid #d0d0d0;
  /*position: relative;*/
}
/*#tasks_list .option{
	padding: 3px 5px;
}*/

@media (max-width: 770px) {
  .comments-list {
    padding-left: 10px;
  }
  .ticket-files-list.flex-row .biblio.ticket-file {
    min-width: 200px;
    max-width: 33.3333%;
  }
}
@media (max-width: 420px) {
  .comments-list {
    padding-left: 5px;
  }
  .btn {
    padding: 6px 8px;
    font-size: 13px;
  }

  .ticket-files-list.flex-row {
    display: block;
  }

  .ticket-files-list.flex-row .biblio.ticket-file {
    /*-webkit-box-flex: 0;
    -webkit-flex: 0 0 25%;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 280px;
	webkit-flex-basis: 0;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 25%;min-width: 280px;*/
    flex: unset;

    margin-right: auto;
    margin-left: auto;
  }
}
