.jot-err {border: 1px solid red; color: red; font-weight: bold; padding: 5px; margin-bottom: 10px;}
.jot-cfm {border: 1px solid green; color: green; font-weight: bold; padding: 5px; margin-bottom: 10px;}
.jot-nav {margin: 10px 0; padding: 0px; text-align: center;}
.jot-list ul {list-style-position: inside; margin-bottom: 10px; padding: 0; text-align: left;}
.jot-subscribe {margin-bottom: 10px;}

/* form */
.jot-form-wrap {/*clear: both;*/ font: 13px/1.2 'PFSquareSansPro-Medium',sans-serif; padding: 10px 0; width:410px; max-width: 100%;margin: 0 auto;}
.jot-reply-title {background: none; border: 0; color: #000; display: block; font: 18px/1.2 'PFSquareSansPro-Medium',sans-serif; padding:0; margin: 0 0 10px; text-align: center; text-transform: none;}
.jot-info {background: #f5f5f5; border: 1px solid #ccc; border-radius: 3px; font-size:11px; margin-bottom: 12px; padding: 4px; width: 400px;}
.jot-form {margin-bottom: 6px;}
.jot-input-prepend {display: flex; *display: inline; *zoom: 1; margin-right: 5px;width: 100%; }
.jot-controls {margin-bottom: 6px; display: flex; max-width: 400px;}
.jot-controls textarea,
.jot-controls input {
  background-color: #fff; border: 1px solid #ccc; color: #000; display: inline-block; font-size: 13px; height: 39px; line-height: 18px; margin: 0; padding: 4px; width: 400px;
  border-radius: 3px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);font-family: 'PFSquareSansPro-Medium';max-width: 100%;
}
.jot-controls input:-moz-placeholder,
.jot-controls textarea:-moz-placeholder{color: #999;}
.jot-controls textarea {height:auto; overflow: auto; vertical-align: top;}
.jot-input-prepend input {position: relative; vertical-align: middle; width: 100%; border-radius: 0 3px 3px 0;}
.jot-controls textarea:focus,
.jot-controls input[type="text"]:focus {border-color: rgba(82, 168, 236, 0.8); outline: 0; z-index: 2; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);}
.jot-captcha {border: 1px solid #ccc; float: right;}
.jot-input-prepend .jot-add-on {
  background-color: #eee; border: 1px solid #ccc; display: flex;align-items: center; justify-content: center; font-weight: normal; /*height: 39px;*/ line-height: 39px; margin: 0 -1px; min-width: 16px; padding: 1px 5px; 
  text-align: center; text-shadow: 0 1px 0 #fff; vertical-align: middle; width: auto; border-radius: 0;
}
.jot-input-prepend .jot-add-on:first-child {border-radius: 3px 0 0 3px;}
.jot-input-prepend + .jot-input-prepend {
  display: none;
}

/* comment */
.jot-row .jot-comment-entry {border: 1px solid #ddd; /*background-color: #f9f9f9;*/ margin-bottom: 10px; padding:7px;}
/*.jot-row-alt .jot-comment-entry {background-color: #f5f5f5;}*/
/*.jot-row-author .jot-comment-entry {background-color: #FFFFE1;}*/
.jot-row-me .jot-comment-entry {background-color: #FDF5E6;}
.jot-row-up .jot-comment-entry {border: 1px solid red;}
.jot-row-new .jot-comment-entry {border: 1px solid green;}
.jot-comment {font: 11px/1.2 'PFSquareSansPro-Medium',sans-serif; margin-bottom: 15px;}
.jot-comment-head {padding: 5px 0; min-height: 45px; display: flex; align-items: center;}
.jot-avatar {float: left; margin-right: 5px;}
.jot-avatar img {    
  width: 30px;
  height: 30px;
  object-fit: cover;
}
.jot-subject {font-size: 16px; font-weight: bold; display: block; margin:0 0 5px;word-break: break-all;}
.jot-name {font-size: 16px; font-weight: bold; display: block;}
.jot-date {color:#666; font-size: 12px; margin: 0 10px;}
.jot-perma {margin-right: 5px;}
.jot-perma a {color: #666; font-size: 10px; text-decoration: none;}
.jot-extra a {color:#666; font-size: 10px; font-weight:normal; text-decoration:none;}
.jot-perma a:hover,
.jot-extra a:hover {color: #f00;}
.jot-message {font-size: 14px; line-height: 1.4;word-break: break-all;}

/* moderation buttons */
.jot-mod {float: right; text-align: right; margin-top: 3px;}
.jot-btn {
  background-color: #fff;   
  border: 1px solid #ddd;
  color: #000; cursor: pointer; display: inline-block; /*font: 12px/16px 'PFSquareSansPro-Medium',sans-serif;*/ margin-bottom: 0; min-width: 33px; padding: 6px 12px; 
  text-align: center; text-decoration: none; vertical-align: middle; white-space:nowrap;
  *border:0; *display: inline; *zoom: 1; *line-height: 18px;
}
.jot-btn-active {
  background-color: #b90000; *background-color: #b90000;
  border: 1px solid #b90000;
  background-image: none; outline: 0;
  pointer-events: none;
}
.jot-btn:not(:nth-child(1)):not(:nth-child(2)) {
  margin-left: -5px;
}
.jot-btn-submit {
  /*background-color: #0074cc; *background-color: #970201; background-image: -ms-linear-gradient(top, #ba0000, #970201);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ba0000), to(#970201)); background-image: -webkit-linear-gradient(top, #ba0000, #970201);
  background-image: -o-linear-gradient(top, #ba0000, #970201); background-image: -moz-linear-gradient(top, #ba0000, #970201);
  background-image: linear-gradient(top, #ba0000, #970201); background-repeat: repeat-x; border-color: #970201 #970201 #003580;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); min-width:auto;*/
  background-image:none;
  background-color: #b90000;
  color: #fff;
  border: 0;
  text-align: left;
  padding: 5px 30px;
  cursor: pointer;
  height: 40px;
  border-radius: 5px!important;
  outline: none;
  font-family: 'PFSquareSansPro-Medium';
  font-size: 18px!important;
  margin: 0 auto;
  display: block;
  margin-top: 10px;
}
.jot-btn:hover {color: #333; background-color: #e6e6e6; *background-color: #d9d9d9; background-position: 0 -15px; text-decoration: none;}
.jot-btn.jot-show-all:hover {
  background-color: #970201;
}
.jot-btn-submit:hover {color: #fff; background-color: #970201; *background-color: #004ab3; background-position: 0 -15px; text-decoration: none;}
.jot-btn-pub,
.jot-btn-unpub {width:71px;}
.jot-icon-del,
.jot-icon-pub,
.jot-icon-unpub,
.jot-icon-user,
.jot-icon-mail,
.jot-icon-edit {background-image: url("../img/glyphicons-halflings.png");  background-repeat: no-repeat; display: inline-block;  height: 14px; *margin-right: .3em; line-height: 14px; vertical-align: text-top; width: 14px;}
.jot-icon-del {background-position: -456px 0;}
.jot-icon-pub {background-position: -192px -96px;}
.jot-icon-unpub {background-position: -216px -96px;}
.jot-icon-edit {background-position: 0 -72px;}
.jot-icon-user {background-position: -168px 0;}
.jot-icon-mail {background-position: -72px 0;}

.jot-checkbox {display: inline-block; font-size: 13px; font-weight: normal; line-height: 18px; margin:0; min-height: 18px; padding: 0 0 0 5px; vertical-align: middle;}
.jot-checkbox input {background: transparent; border:0; cursor:pointer; display: inline-block; float: left; font-size: 13px; font-weight: normal; height:auto; line-height: normal; margin: 3px 3px 0 0; *margin-top: 0; padding:0; vertical-align: middle; width: auto;}
.jot-show-all {
  float:right;
  background-image: none;
  background-color: #b90000;
  color: #fff !important;
  border: 0;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
  height: 29px;
  border-radius: 5px!important;
  outline: none;
  font-family: 'PFSquareSansPro-Medium';
  font-size: 13px!important;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.jot-rss {float:left;}
.jot-icon-rss {background: url("../img/icon-rss.gif") no-repeat; display: inline-block; height: 14px; *margin-right: .3em; line-height: 14px; vertical-align: text-top; width: 14px;}

#new_document_attachment {
    position: relative;
    margin-bottom: 10px;
    max-width: 400px;
}
#document_attachment_doc{
  opacity: 0;
  position: absolute;
  z-index: 9999;
  top: 0;
  left:0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.document_attachment_doc_label {
  width: 100%;
  height: 33px;
  background-color: #b90000;
  color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: 'PFSquareSansPro-Medium';
  font-size: 14px;
}
.document_attachment_doc_label::before{
  content: '';
  display: block;
  width: 33px;
  height: 20px;
  margin-right: 5px;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='512px' version='1.1' height='512px' viewBox='0 0 64 64' enable-background='new 0 0 64 64' class=''%3E%3Cg%3E%3Cg%3E%3Cg fill='%231D1D1B'%3E%3Cpath d='M64,41.733c0-1.345-1.089-2.435-2.435-2.435c-1.347,0-2.436,1.09-2.436,2.435v14.115H4.946V41.733 c0-1.345-1.089-2.435-2.437-2.435c-1.346,0-2.435,1.09-2.435,2.435v15.535c0,0.18,0.067,0.338,0.103,0.507 c-0.035,0.169-0.103,0.328-0.103,0.507c0,1.345,1.089,2.436,2.435,2.436h59.056c1.346,0,2.435-1.091,2.435-2.436 c0-0.179-0.064-0.338-0.102-0.507C63.936,57.606,64,57.448,64,57.269V41.733z' data-original='%23000000' class='active-path' data-old_color='%23000000' fill='%23FFFFFF'/%3E%3Cpath d='m32.19,2.967c-1.346,0-2.437,1.091-2.437,2.436v35.576l-10.605-10.607c-0.951-0.951-2.492-0.951-3.443,0s-0.951,2.493 0,3.444l14.764,14.764c0.475,0.476 1.099,0.713 1.722,0.713 0.622,0 1.245-0.238 1.722-0.713l14.764-14.764c0.951-0.951 0.951-2.493 0-3.444-0.952-0.951-2.493-0.951-3.443,0l-10.609,10.607v-35.576c0-1.345-1.089-2.436-2.435-2.436z' data-original='%23000000' class='active-path' data-old_color='%23000000' fill='%23FFFFFF'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#outImage {
  width: 100%;
  display: grid;
  grid-gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
#outImage img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 15px;
}
@media only screen  and (max-width: 400px) {
  .jot-controls {
    flex-direction: column;
  }
  .jot-input-prepend + .jot-input-prepend {margin-top: 5px;}
}

.rating_wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 10px;
}
.rating_header {
  font-size: 18px;
}
.star-rating img {
  width: 28px;
}