
.ticket_info th {
    text-align:left;
}

.ticket_info {
    background:#F4FAFF;
}

.ticket_info.custom-data thead th {
    border-bottom: 2px solid #ccc;
    background-color: white;
}
.custom-data th, .custom-data td {
    padding: 3px;
}
table.custom-data {
    margin-bottom: 1em;
}

.right_align { text-align:right; }

/*h2 .reload {
    display:inline-block;
    width:16px;
    height:16px;
    background:url(../images/icons/refresh.gif) top left no-repeat;
    outline:none;
    text-indent:-9999px;
}

#assigned_message {
    margin:10px 0;
    padding:5px 5px 5px 30px;
    background:url(../images/icons/assigned_ticket.gif) 5px 50% no-repeat #ffd;
    border:1px solid #f90;
}*/

#ticket_actions {
    padding:5px;
    background:#eee;
    border:1px solid #aaa;
    border-bottom:none;
    margin:0;
}
/***** top page ticket response buttons *****/
a#post-note:hover {
    background-color:#fff9e2;
    color:#555!IMPORTANT;
}

.thread-entry {
    margin-bottom: 15px;
    z-index: 0;
}
.thread-entry::after {
  content: "";
  border-bottom: 2px solid white;
  display: block;
}
.thread-entry::before {
  content: "";
  display: block;
  border-top: 2px solid white;
}
.thread-entry.avatar-ticket {
    margin-left: 60px;
}
.thread-entry.message.avatar-ticket {
    margin-right: 60px;
    margin-left: 0;
}
.thread-entry > .avatar-ticket {
    margin-left: -60px;
    display:inline-block;
    width:48px;
    height:auto;
}
.avatar-ticket {
    border-radius: 12%;
}
.thread-entry.message > .avatar-ticket {
    margin-left: initial;
    margin-right: -60px;
}
img.avatar-ticket {
    border-radius: inherit;
    vertical-align: middle;
    margin-right: 5px;
}
.avatar-ticket > img.avatar-ticket {
    width: 100%;
    height: auto;
}
.thread-entry .header {
    padding: 8px 0.9em;
    border: 1px solid #ccc;
    border-color: rgba(0,0,0,0.2);
    border-radius: 5px 5px 0 0;
}
.thread-entry.avatar-ticket .header:before {
  position: absolute;
  top: 7px;
  right: -8px;
  content: '';
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #9cadcc;
  display: inline-block;
}
.thread-entry.avatar-ticket .header:after {
  position: absolute;
  top: 7px;
  right: -8px;
  content: '';
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  display: inline-block;
  margin-top: 1px;
}

.thread-entry.avatar-ticket .header {
    position: relative;
}

.thread-entry.message .header {
    background:#C3D9FF;
}
.thread-entry.avatar-ticket.message .header:after {
    border-left: 7px solid #C3D9FF;
    margin-right: 1px;
}

.thread-entry.response .header {
    background:#FFE0B3;
}
.thread-entry.avatar-ticket.response .header:before,
.thread-entry.avatar-ticket.note .header:before {
    top: 7px;
    left: -8px;
    right: initial;
    border-left: none;
    border-right: 8px solid #CCC;
}
.thread-entry.system .header {
    background-color: #f4f4f4;
}

.thread-entry.avatar-ticket.response .header:before {
    border-right-color: #ccb3af;
}
.thread-entry.avatar-ticket.note .header:before {
    border-right-color: #ccccb0;
}
.thread-entry.avatar-ticket.response .header:after,
.thread-entry.avatar-ticket.note .header:after {
    top: 7px;
    left: -8px;
    right: initial;
    border-left: none;
    border-right: 7px solid #FFE0B3;
    margin-left: 1px;
}

.thread-entry.note .header {
    background:#FFE;
}
.thread-entry.avatar-ticket.note .header:after {
    border-right-color: #FFE;
}
.thread-entry .header .title {
    max-width: 500px;
    vertical-align: bottom;
    display: inline-block;
    margin-left: 15px;
}
.thread-entry .header .button {
    margin-top: -4px;
}

.thread-entry .thread-body {
    border: 1px solid #ddd;
    border-top: none;
    border-bottom:2px solid #aaa;
    border-radius: 0 0 5px 5px;
}
.thread-body .attachments {
  background-color: #f4faff;
  margin: 0 -0.9em;
  position: relative;
  top: 0.9em;
  padding: 0.3em 0.9em;
  border-top: 1px dotted #ccc;
  border-top-color: rgba(0,0,0,0.2);
  border-radius: 0 0 6px 6px;
}
.thread-body .attachments:empty {
    display: none;
}
.thread-body .attachments .filesize {
  margin-left: 0.5em;
  line-height: 1em;
}
.thread-body .attachment-info {
    margin-right: 10px;
    display: inline-block;
    width: 48%;
}
.thread-body .attachment-info .filename {
  max-width: 80%;
  max-width: calc(100% - 70px);
}
.thread-body > div {
    padding: 15px;
    word-break: break-word;
}

#ticket_notes table td {
    padding:5px;
}

#ticket_notes td {
    background:#f9f9f9;
}

.thread-entry .info, #ticket_notes .info {
    padding:5px;
    background:#F4FAFF;
    height:16px;
    line-height:16px;
}

#ticket_notes .info {
     background:#f9f9f9;
}

.faded {
    color: #666;
    color: rgba(0,0,0,0.5);
}
.faded b {
    color: #333;
    color: rgba(0,0,0,0.75);
}
.faded strong {
    color: #444;
    color: rgba(0,0,0,0.6);
}
.faded-more {
    color: #aaa;
    color: rgba(0,0,0,0.35);
}
time[title]:hover {
    text-decoration: underline;
}
.truncate {
    width: auto;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.truncate.bleed {
    text-overflow: hidden;
}
.icon-pdf{
  content: url('../images/pdf.png');
}
.icon-excel{
  content: url('../images/excel.png');
  width: 25px;
}
.icon-word{
  content: url('../images/word.png');
  width: 25px;
}
.icon-image{
  content: url('../images/image.png');
  width: 25px;
}
.icon-document{
  content: url('../images/inventory_incomplete.png');
  width: 25px;
}
#tickets > tbody > tr.selected{
  background-color: rgba(49, 147, 54, 0.59);
}
.table-ticket_free > tbody > tr.selected{
  background-color: #ffdd7de3;
  border-right: 1px solid red;
  border-left: 1px solid red;
}
.badge-notification{
  position: relative;
}
.badge-notification::after{
  content: attr(data-num-tickets);
  position: absolute;
  top: -10px;
  right: -12px;
  background-color: red;
  padding: 2px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  box-sizing: border-box;
  box-shadow: 0px 0px 1px 1px black;
  border-radius: 50px;
}
#thread-items::before {
  border-left: 2px dotted #ddd;
  border-bottom-color: rgba(0,0,0,0.1);
  position: absolute;
  margin-left: 74px;
  z-index: -1;
  content: "";
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}
#thread-items {
  z-index: 0;
  position: relative;
  padding-top: 0;
  padding-bottom: 15px;
  margin-top: 5px;
}
.thread-event {
    padding: 0 2px 15px;
    margin-left: 60px;
}
.thread-event a {
    color: inherit;
}
.thread-icon {
    border-radius: 8px;
    background-color: #ffe0b3;
    padding: 4px 6px;
    margin-right: 5px;
    text-align: center;
    display: inline-block;
    font-size: 1.1em;
    border: 1px solid #eee;
    vertical-align: top;
    position: relative;
}
.thread-event .thread-icon::after {
  content: "";
  /*border: 1px solid #ff9700;*/
  position: absolute;
  top: -3px;
  bottom: 0;
  left: -3px;
  right: 0;
  z-index: -1;
}
.thread-remove-file{
  position: relative;
  bottom: 32px;
  right: 3px;
  cursor: pointer;
}
.thread-remove-file:hover{
  color: red;
  transition: color .35s linear;
}