/*
Copyright (C) 2001-2020 OTRS AG, https://otrs.com/
Copyright (C) 2021-2023 Centuran Consulting, https://centuran.com/

This software comes with ABSOLUTELY NO WARRANTY. For details, see
the enclosed file COPYING for license information (GPL). If you
did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
*/

/**
 * @package     Skin "Default"
 * @section     TicketDetails
 */

@media screen,projection,tv,handheld {

/**
 * @subsection  Headline
 */
div.Headline {
    height: 24px;
    margin: 5px 0px;
    position: relative;
}

div.Headline h1 {
    font-size: 15px;
    line-height: 24px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.Headline h1 span {
    padding: 0 3px;
}

div.Headline .Flag + h1 {
    margin-left: 30px;
}

.RTL div.Headline .Flag + h1 {
    margin-left: 0;
    margin-right: 30px;
}

div.Headline .Flag {
    position: absolute;
    top: 5px;
    left: 0px;
    width: 20px;
    height: 15px;
}

.RTL div.Headline .Flag {
    left: auto;
    right: 0;
}

/**
 * @subsection  Article view settings
 */

.ArticleView {
    position: absolute;
    right: 3px;
    top: 7px;
}

/**
 * @subsection  Article table head
 */

.ActionRow .TableContextSettings + .TableSmall {
    margin-right: 17px;
}

/**
 * @subsection  Article table body
 */

#ArticleItems .Header h2 {
    float: left;
}

#ArticleItems .WidgetSimple .Header {
    overflow: hidden;
}

#ArticleItems .WidgetSimple .Header h2 {
    max-width: 80%;
}

#ArticleItems .WidgetSimple .Header .AdditionalInformation {
    position: static;
    line-height: 22px;
    font-size: 11px;
    float: right;
}

#ArticleItems .WidgetMenu .LightRow {
    background: #E8E8E8;
    border-bottom: none;
}

#ArticleTableBody {
    position: relative;
    overflow: hidden;
    border-bottom: none;
    margin: 0px;
}

#ArticleTableBody .Scroller {
    height: 82px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

#ArticleTableBody .Scroller::-webkit-scrollbar-track {
	background-color: #F5F5F5;
    border-left: 1px solid #ccc;
}

#ArticleTableBody .Scroller::-webkit-scrollbar {
	width: 8px;
	background-color: #F5F5F5;
}

#ArticleTableBody .Scroller::-webkit-scrollbar-thumb {
	background-color: #bbb;
}

#ArticleTableBody .Scroller .DataTable {
    border: 0px;
}

.ArticleMailHeader {
    font-size: 11px;
    margin: 10px 0px -5px 0px;
}

.Outgoing .ArticleMailHeader fieldset.TableLike.FixedLabelSmall > label,
.Outgoing .ArticleMailHeader fieldset.TableLike.FixedLabelSmall > .Row > label {
    width: 105px;
    float: left;
}

#ArticleItems .ItemActions {
    padding: 0px 10px;
    box-sizing: border-box;
    margin-right: 105px;
    margin-right: 115px;
    min-height: 28px;
    position: relative;
    top: -4px;
}

#ArticleItems .ItemActions li .InputField_Container {
    margin-left: 3px;
}

@media only screen and (min-width: 0px) and (max-width: 1024px) {

    #ArticleItems .ItemActions li .InputField_Container {
        width: auto;
    }

}

#ArticleItems .ItemActions li .InputField_Container input[type=text] {
    padding: 2px;
}

#ArticleItems .Outgoing .ItemActions {
    margin-left: 75px;
    margin-right: 0px;
}

#ArticleItems .ArticleMailHeader label,
#ArticleItems .ArticleMailHeader p.Value {
    display: block;
    margin: 0px;
    padding: 0px;
    line-height: 2.4em;
}

#ArticleItems .ArticleMailHeader p.Value {
    width: calc(100% - 112px);
    float: right;
}

#ArticleItems .Incoming .ArticleMailHeader p.Value {
    width: calc(100% - 103px);
}

.ArticleMailContent {
    padding: 3px 12px;
    line-height: 1.3;
    position: relative;
}

.ArticleMailContent .ArticleMeta {
    background: #fff;
    padding: 12px 12px 4px 12px;
    text-align: right;
    box-sizing: border-box;
    margin-left: 75px;
    margin-top: -9px;
    border-top: 1px solid #ddd !important;
    position: relative;
    z-index: 2;
}

.Incoming .ArticleMailContent .ArticleMeta {
    margin-left: 0px;
    margin-right: 75px;
}

.ArticleMailContent .ArticleMeta h2 {
    font-size: 12px;
    color: #999;
    display: inline-block;
    margin-right: 10px;
}

.ArticleMailContent .ArticleMeta ul {
    display: inline-block;
}

.ArticleMailContent .ArticleMeta ul li {
    display: inline-block;
}

.ArticleMailContent .ArticleMeta ul li a {
    white-space: nowrap;
    display: block;
    background: #eee;
    color: #333;
    font-size: 11px;
    padding: 3px 7px;
    margin-bottom: 4px;
}

.Avatar {
    border: 1px solid #eee;
    position: absolute;
    top: 30px;
    background: #fff;
    padding: 5px;
    width: 50px;
    height: 50px;
}

.Avatar img {
    width: 100%;
    height: 100%;
}

.Outgoing .Avatar {
    left: 7px;
}

.Incoming .Avatar {
    right: 6px;
}

#ArticleItems .ArticleMailContentHTMLWrapper,
#ArticleItems .ArticleHTML,
#ArticleItems .ArticleBody {
    -webkit-overflow-scrolling: touch;
   margin-left: 75px;
   position: relative;
}

#ArticleItems .Incoming .ArticleMailContentHTMLWrapper,
#ArticleItems .Incoming .ArticleHTML,
#ArticleItems .Incoming .ArticleBody {
    margin-left: 0px;
    margin-right: 75px;
}

body.TouchDevice #ArticleItems .ArticleMailContentHTMLWrapper {
   overflow-x: scroll;
}

.Outgoing .ArticleMailContentHTMLWrapper:before,
.Incoming .ArticleMailContentHTMLWrapper:before,
.Outgoing .ArticleHTML:before,
.Incoming .ArticleHTML:before,
.Outgoing .ArticleBody:before,
.Incoming .ArticleBody:before,
.Outgoing .ArticleMailContentHTMLWrapper:after,
.Incoming .ArticleMailContentHTMLWrapper:after,
.Outgoing .ArticleHTML:after,
.Incoming .ArticleHTML:after,
.Outgoing .ArticleBody:after,
.Incoming .ArticleBody:after {
    border-color: rgba(255, 255, 255, 0);
    top: 24px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.Outgoing .ArticleMailContentHTMLWrapper:before,
.Incoming .ArticleMailContentHTMLWrapper:before,
.Outgoing .ArticleHTML:before,
.Incoming .ArticleHTML:before,
.Outgoing .ArticleBody:before,
.Incoming .ArticleBody:before {
    border-right-color: #fff;
	border-width: 10px;
    margin-top: -10px;
    z-index: 2;
    left: -18px;
}

.Outgoing .ArticleMailContentHTMLWrapper:after,
.Incoming .ArticleMailContentHTMLWrapper:after,
.Outgoing .ArticleHTML:after,
.Incoming .ArticleHTML:after,
.Outgoing .ArticleBody:after,
.Incoming .ArticleBody:after {
	border-width: 13px;
	margin-top: -13px;
    z-index: 1;
    left: -24px;
}

.Outgoing .ArticleMailContentHTMLWrapper:after,
.Outgoing .ArticleHTML:after,
.Outgoing .ArticleBody:after {
	border-right-color: #eee;
}

.Incoming .ArticleMailContentHTMLWrapper:after,
.Incoming .ArticleHTML:after,
.Incoming .ArticleBody:after {
	left: auto;
    right: -24px;
	border-left-color: #eee;
}

.Incoming .ArticleBody:after {
    right: -26px;
}

.Incoming .ArticleMailContentHTMLWrapper:before,
.Incoming .ArticleHTML:before,
.Incoming .ArticleBody:before {
	left: auto;
    right: -18px;
	border-left-color: #fff;
    border-right-color: transparent;
}

.Incoming .ArticleBody:before,
.Incoming .ArticleHTML:before {
    right: -20px;
}

.Outgoing .ArticleBody:before,
.Outgoing .ArticleHTML:before {
    left: -20px;
}

.Outgoing .ArticleBody:after,
.Outgoing .ArticleHTML:after {
    left: -26px;
}

.Incoming.NotVisibleForCustomer .ArticleMailContentHTMLWrapper:after,
.Incoming.NotVisibleForCustomer .ArticleHTML:after,
.Incoming.NotVisibleForCustomer .ArticleBody:after {
    border-left-color: #ffcccc;
}

.Outgoing.NotVisibleForCustomer .ArticleMailContentHTMLWrapper:after,
.Outgoing.NotVisibleForCustomer .ArticleHTML:after,
.Outgoing.NotVisibleForCustomer .ArticleBody:after {
    border-right-color: #ffcccc;
}

.ArticleSenderInitials {
    text-align: center;
}

.ArticleSenderInitials span {
    font-size: 22px;
    line-height: 50px;
    color: #CCC;
}

.ArticleMailContent iframe {
    background: #fff;
    padding: 5px;
    box-sizing: border-box;
    height: 60px;
}

.DataTable tbody td a.Attachment {
    font-size: 12px;
}

#ArticleItems .WidgetSimple .Content label.Switchable {
    cursor: pointer;
}

/**
 * @subsection  ControlRow Icons
 */

.ArticleFilter,
.ArticlePages {
    float: left;
    margin-left: 10px;
}

.RTL .ArticleFilter,
.RTL .ArticlePages {
    float: right;
}

.ControlRow .Icons a {
    width: 26px;
    height: 24px;
    line-height: 24px;
    vertical-align: middle;
    display: block;
    float: left;
}

.ControlRow .Icons a.Active {
    background: #5D5D5D;
}

.ControlRow .Icons a:hover {
    background-color: #ccc;
}

.ControlRow .Icons a {
    text-align: center;
}

.ControlRow .Icons a i {
    color: #777;
    font-size: 15px;
    margin-top: 5px;
    display: block;
}

.ControlRow .Icons a.Active i {
    color: #fff;
}

.ControlRow .Icons a span {
    margin: 4px auto;
    width: 16px;
    height: 16px;
    text-indent: -9999px;
    display: block;
}

.ControlRow .ArticleFilter.Icons .Active span {
    background-position: 0 -16px;
}

/**
 * @subsection  Attachment Dialog Content
 */

.Dialog > .Content > .Attachment.InnerContent {
    padding: 0;
}

.AttachmentContent {
    width: 300px;
    height: 500px;
    overflow: hidden;
    overflow-y: scroll;
}

.AttachmentElement {
    margin: 5px 9px;
    border-bottom: 1px solid #E6E6E6;
    padding-bottom: 2px;
}

.AttachmentElement:last-child {
    border-bottom: 0px;
}

.AttachmentPreview {
    height: 80px;
    width: 60px;
    border: 1px solid #DDD;
    float: left;
    margin-right: 15px;
    background-color: #E6E6E6;
    background-position: center;
    background-repeat: no-repeat;
    clear: left;
}

.AttachmentPreview a {
    display: block;
    height: 100%;
    width: 100%;
}

.AttachmentElement h3 {
    font-size: 12px;
    font-weight: bold;
}

/**
 * @subsection  ItemRow
 * @note        contains random items and is positioned in the sidebar
 */

.ItemRow {
    margin-left: 15px;
}

.RTL .ItemRow {
    margin-left: 0;
    margin-right: 15px;
}

.ItemRow li {
    padding: 3px 0 5px 8px;
}

.RTL .ItemRow li {
    padding: 3px 8px 5px 0;
}

.ItemRow a {
    line-height: 14px;
    color: #000;
    text-decoration: underline;
}

.ItemRow a:hover {
    color: #666;
}

/**
 * @subsection  ArticleBody
 * @note        Styles for article body
 */

.SmallBox,
.MessageBrowser {
    margin: 11px 11px 6px 11px;
    position: relative;
}

.WidgetSimple .WidgetMessage.Top {
    margin-top: -8px !important;
}

.MessageBrowser p {
     padding: 5px 25px 5px 25px;
     background-color: #DDD;
     font-size: 11px;
     text-align: center;
}

.SmallBox p {
     padding: 5px 25px 5px 25px;
     font-size: 11px;
     text-align: center;
}

.MessageBrowser a.Close {
    display: block;
    width: 12px;
    height: 12px;
    position: absolute;
    right: 4px;
    top: 4px;
    color: #5D5D5D;
}

.MessageBrowser a.Close:hover {
    color: #000;
}

/**
 * @subsection  ArticleColors
 * @note        article colors
 */

#ArticleTable.DataTable tbody td {
    border-right-style: dashed;
}

#ArticleTable.DataTable tbody td:last-child {
    border-right: 0px;
}

.UseArticleColors td,
.UseArticleColors tr:nth-child(even) td {
    transition: background ease 0.3s;
    background: #fff;
    border-color: #ccc;
    border-bottom: 1px solid #eee;
}

.UseArticleColors tr.Active > td,
.UseArticleColors tr:hover > td {
    background-color: #f2f2f2 !important;
    border-color: #f2f2f2;
    border-right-color: #ccc !important;
}

.UseArticleColors tr.NotVisibleForCustomer > td {
    background: #FFCCCC !important;
    border-bottom-color: #e7abab;
    border-color: #e7abab;
}

.UseArticleColors tr.NotVisibleForCustomer.Active > td,
.UseArticleColors tr.NotVisibleForCustomer:hover > td {
    background-color: #e7abab !important;
    border-color: #e7abab;
}

.UseArticleColors tr.system > td {
    background: #fff7be !important;
    border-bottom-color: #ffef80;
    border-color: #ffef80;
}

.UseArticleColors tr.system.Active > td,
.UseArticleColors tr.system:hover > td {
    background-color: #ffef80 !important;
    border-color: #ffef80;
}

.ArticleMailContent iframe,
.ArticleMailContent .ArticleBody,
.ArticleMailContent .ArticleHTML,
.ArticleMailContent .ArticleMeta {
    border: 2px solid #eee;
    border-radius: 3px;
}

.UseArticleColors #ArticleItems .NotVisibleForCustomer .ArticleMailContent iframe,
.UseArticleColors #ArticleItems .NotVisibleForCustomer .ArticleMailContent .ArticleBody,
.UseArticleColors #ArticleItems .NotVisibleForCustomer .ArticleMailContent .ArticleHTML,
.UseArticleColors #ArticleItems .NotVisibleForCustomer .ArticleMailContent .ArticleMeta {
    border: 2px solid #FFCCCC;
}

.UseArticleColors .Incoming.NotVisibleForCustomer .ArticleMailContentHTMLWrapper:after,
.UseArticleColors .Incoming.NotVisibleForCustomer .ArticleHTML:after,
.UseArticleColors .Incoming.NotVisibleForCustomer .ArticleBody:after {
    border-left-color: #ffcccc;
}

.UseArticleColors .Outgoing.NotVisibleForCustomer .ArticleMailContentHTMLWrapper:after,
.UseArticleColors .Outgoing.NotVisibleForCustomer .ArticleHTML:after,
.UseArticleColors .Outgoing.NotVisibleForCustomer .ArticleBody:after {
    border-right-color: #ffcccc;
}

.UseArticleColors #ArticleItems .system .ArticleMailContent iframe,
.UseArticleColors #ArticleItems .system .ArticleMailContent .ArticleBody,
.UseArticleColors #ArticleItems .system .ArticleMailContent .ArticleHTML,
.UseArticleColors #ArticleItems .system .ArticleMailContent .ArticleMeta {
    border: 2px solid #ffef80;
}

.UseArticleColors .Incoming.system .ArticleMailContentHTMLWrapper:after,
.UseArticleColors .Incoming.system .ArticleHTML:after,
.UseArticleColors .Incoming.system .ArticleBody:after {
    border-left-color: #ffef80;
}

.UseArticleColors .Outgoing.system .ArticleMailContentHTMLWrapper:after,
.UseArticleColors .Outgoing.system .ArticleHTML:after,
.UseArticleColors .Outgoing.system .ArticleBody:after {
    border-right-color: #ffef80;
}

.UseArticleColors #ArticleTable a {
    color: #000;
}

.UseArticleColors #ArticleTable i.fa-spin {
    color: #333;
}

/*
* Agent article types
*/
.UseArticleColors .agent-phone > td,
.UseArticleColors .agent-phone .Header {
    background: #d1e8d1 !important;
}
.UseArticleColors .agent-email-external > td,
.UseArticleColors .agent-email-external .Header {
    background: #D3E5B5 !important;
}
.UseArticleColors .agent-email-internal > td,
.UseArticleColors .agent-email-internal .Header {
    background: #ffd1d1 !important;
}
.UseArticleColors .agent-note-external > td,
.UseArticleColors .agent-note-external .Header {
    background: #d1d1d1 !important;
}
.UseArticleColors .agent-note-internal > td,
.UseArticleColors .agent-note-internal .Header {
    background: #FFCCCC !important;
}

/*
* System article types
*/
.UseArticleColors .system-note-internal > td,
.UseArticleColors .system-note-internal .Header,
.UseArticleColors .system-note-external > td,
.UseArticleColors .system-note-external .Header,
.UseArticleColors .system-note-report > td,
.UseArticleColors .system-note-report .Header,
.UseArticleColors .system-email-external > td,
.UseArticleColors .system-email-external .Header,
.UseArticleColors .system-email-internal > td,
.UseArticleColors .system-email-internal .Header,
.UseArticleColors .system-email-notification-int > td,
.UseArticleColors .system-email-notification-int .Header,
.UseArticleColors .system-email-notification-ext > td,
.UseArticleColors .system-email-notification-ext .Header {
    background: #ffffd1 !important;
}

/*
* Customer artcle types
*/

.UseArticleColors .customer-webrequest > td,
.UseArticleColors .customer-webrequest .Header,
.UseArticleColors .customer-email-external > td,
.UseArticleColors .customer-email-external .Header,
.UseArticleColors .customer-note-external > td,
.UseArticleColors .customer-note-external .Header,
.UseArticleColors .customer-phone > td,
.UseArticleColors .customer-phone .Header {
    background: #D4DEFC !important;
}

.UseArticleColors .agent-phone:hover > td,
.UseArticleColors .agent-email-external:hover > td,
.UseArticleColors .agent-email-internal:hover > td,
.UseArticleColors .agent-note-external:hover > td,
.UseArticleColors .agent-note-internal:hover > td,
.UseArticleColors .system-note-internal:hover > td,
.UseArticleColors .system-note-external:hover > td,
.UseArticleColors .system-note-report:hover > td,
.UseArticleColors .system-email-external:hover > td,
.UseArticleColors .system-email-internal:hover > td,
.UseArticleColors .customer-webrequest:hover > td,
.UseArticleColors .customer-email-external:hover > td,
.UseArticleColors .customer-note-external:hover > td,
.UseArticleColors .customer-phone:hover > td {
    background: #FCB24B !important;
}

/**
 * @subsection  Timeline View
 */

.TimelineView {
    position: relative;
    padding: 5px 5px 15px 5px;
}

.TimelineView:after {
    content: ' ';
    width: 4px;
    height: 20px;
    background-color: #F5F5F5;
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -2px;
    top: 16px;
}

.TimelineView > ul {
    display: block;
    width: 49.9%;
    float: left;
    margin-top: 20px;
    border-left: 1px solid #aaa;
    margin-left: -1px;
    padding-bottom: 65px;
}

.TimelineView > ul:first-child {
    margin-right: 0px;
    border-right: 1px solid #aaa;
    border-left: 0px;
}

.TimelineView > ul > li {
    background-color: #fff;
    margin: 0px 20px 0px 25px;
    padding: 10px 10px 5px 10px;
    border: 1px solid #ddd;
}

.TimelineView > ul:first-child > li {
    margin-right: 25px;
    margin-left: 20px;
}

.TimelineView > ul:first-child > li.NoEvents {
    width: 500px;
    position: absolute;
    left: 50%;
    top: 15px;
    margin-right: 0px;
    margin-left: -253px;
    z-index: 100;
    padding: 5px;
    text-align: center;
    border: 0px;
    background-color: #F5F5F5;
}

.TimelineView > ul > li:first-child {
    margin-top: -7px;
}

.TimelineView > ul > li h3 {
    margin: -10px -10px 5px -10px;
    padding: 6px 10px;
    background: #fff;
    font-size: 12px;
    position: relative;
}

.TimelineView > ul > li.NewTicket h3 {
    background: #ddd;
}

.TimelineView > ul > li h3 .fa-info-circle {
    display: none;
}

.TimelineView > ul > li.Important h3 .fa-info-circle {
    display: inline-block;
    color: #777;
}

.TimelineView > ul > li.Important:hover h3 .fa-info-circle {
    color: #000;
}

.TimelineView > ul > li.HasArticle h3 strong {
    font-weight: bold;
}

.TimelineView > ul > li h3 strong,
.TimelineView > ul > li.Seen h3 strong {
    font-weight: normal;
}

.TimelineView > ul > li h3 a {
    float: right;
    color: #666;
}

.TimelineView > ul > li p {
    max-height: 106px;
    white-space: pre;
    overflow: hidden;
    position: relative;
}

.TimelineView > ul > li.TypeTicketAction p {
    max-height: none;
}

.TimelineView > ul > li.NoFixedMaxHeight p {
    max-height: none;
}

.TimelineView > ul > li p span.FadeOut {
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: 0px;
    left: 0px;
}

.TimelineView > ul > li.NoFadeOut .FadeOut {
    display: none;
}

.TimelineView > ul > li.Connected * {
    font-size: 11px;
}

.TimelineView > ul > li.Connected h3 {
    padding: 4px 10px;
}

.TimelineView > ul > li.Connected p {
    margin-bottom: -4px;
}

.TimelineView > ul > li.Connected h3 span {
    display: none;
}

.TimelineView > ul > li.Connected {
    margin-right: 40px !important;
    margin-left: 40px !important;
    padding-bottom: 10px;
}

.TimelineView > ul > li h3 a:hover {
    color: #000;
}

.TimelineView > ul > li h3:last-child {
    margin-bottom: -10px;
}

.TimelineView > ul > li h3:after {
    right: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(221, 221, 221, 0);
    border-right-color: #ccc;
    border-width: 13px;
    margin-top: -13px;
}

.TimelineView ul.ListLeft li h3:after {
    left: 100%;
    border-left-color: #ddd;
    border-right-color: transparent;
}

.TimelineView > ul > li.Connected h3:after {
    left: 50%;
    content: "";
    right: auto;
    border-color: #ccc;
    top: -7px;
    height: 3px;
    margin-top: 0px;
    border-width: 2px;
}

.TimelineView ul.ListLeft li h3 > span {
    right: -31px;
    left: auto;
}

.TimelineView > ul > li h3 > span {
    display: block;
    position: absolute;
    top: 6px;
    left: -31px;
    background-color: #aaa;
    height: 9px;
    width: 9px;
    z-index: 1;
    -webkit-transition: all 0.1s ease-in;
    -moz-transition: all 0.1s ease-in;
    -o-transition: all 0.1s ease-in;
    transition: all 0.1s ease-in;
}

.TimelineView > ul > li h3 > span span {
    position: absolute;
    width: 160px;
    background-color: #777;
    color: #fff;
    font-size: 11px;
    text-align: center;
    left: 50%;
    top: -37px;
    margin-left: -80px;
    padding: 7px 0px;
    display: none;
}

.TimelineView > ul > li h3 > span:hover {
    z-index: 99;
}

.TimelineView > ul > li h3 > span:hover span {
    display: block;
    z-index: 999;
}

.TimelineView > ul > li h3 > span span:after {
    top: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(119, 119, 119, 0);
    border-top-color: #777;
    border-width: 8px;
    margin-left: -8px;
}

.TimelineView > ul > li:hover h3 > span,
.TimelineView > ul > li h3 > span:hover {
    width: 15px;
    height: 15px;
    left: -34px;
    top: 4px;
    background-color: #000;
}

.TimelineView ul:first-child li:hover h3 > span,
.TimelineView ul:first-child li h3 > span:hover {
    right: -34px;
    left: auto;
    top: 4px;
}

.TimelineView li ul {
    font-size: 11px;
    background-color: #f2f2f2;
    margin: -5px -10px 5px -10px;
    padding: 2px 10px 5px 10px;
    border-top: 1px solid #ddd;
    position: relative;
}

.TimelineView li ul li {
    margin-top: 3px;
}

.TimelineView li ul li.subject,
.TimelineView li ul li.from,
.TimelineView li ul li.to,
.TimelineView li ul li.cc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.TimelineView li ul li.AttachmentsLink {
    background: #ddd;
    color: #555;
    cursor: pointer;
    font-size: 13px;
    padding: 3px 5px;
    position: absolute;
    right: 0px;
    top: 5px;
}

.TimelineView li ul li.AttachmentsLink:hover {
    color: #000;
}

.TimelineView > span {
    display: block;
    margin: 70px 0px;
    font-size: 18px;
    text-align: center;
}

.TimelineView > .CallForAction {
    margin: 0px auto;
    display: block;
    width: 120px;
}

.TimelineView > ul > li.NewTicket {
    left: 50%;
    bottom: 10px;
    margin-left: -86px;
    position: absolute;
    width: 150px;
    text-align: center;
    border: 0px;
}

.TimelineView > ul > li.NewTicket h3 {
    font-weight: bold;
    padding-top: 5px;
}

.TimelineView > ul > li.NewTicket h3:after {
    display: none;
}

.TimelineView > ul > li.NewTicket:after {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(136, 183, 213, 0);
    border-bottom-color: #DDDDDD;
    border-width: 10px;
    margin-left: -10px;
}

.TimelineView > ul > li.NewTicket h3 > span {
    display: block;
    position: static;
    text-align: center;
    background: none;
    width: auto !important;
    height: auto !important;
    font-weight: normal;
}

.TimelineView > ul > li.NewTicket h3 > span span {
    display: block;
    position: static;
    text-align: center;
    background: none;
    width: auto;
    color: #000;
    margin: 0px;
    padding: 0px;
    margin-top: 4px;
}

.TimelineView > ul > li.NewTicket h3 > span span:after {
    display: none;
}

.TimelinePlainText {
    white-space: pre-wrap;
    height: 400px;
    width: 800px;
    padding: 10px;
    overflow: auto;
}

.TimelineView .PlainText > div.ChatMessage {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
}

.TimelineView .PlainText > div.ChatMessage.SystemGenerated {
    font-style: italic;
    color: #aaa;
}

.TimelineView .PlainText > div.ChatMessage span {
    font-weight: bold;
    font-style: normal;
}

.TimelinePlainText .ArticleHTML {
    max-height: none;
    line-height: 120%;
    font-size: 12px;
}

.TimelineArticleiFrame {
    width: 800px;
    height: 400px;
}

.ActionsTimelineView .Actions li select {
    max-width: 120px;
}

.ActionsTimelineView .ItemActions {
    cursor: default;
    position: relative;
    overflow: hidden;
    background: #EEEEEE;
    border-bottom: 1px solid #CCC;
}

/* Define colors for different event types */

.UseArticleColors .TimelineView .TypeIncoming h3 {
    background-color: #fff;
}

.UseArticleColors .TimelineView .TypeIncoming h3:after {
    border-right-color: #ddd;
}

.UseArticleColors .TimelineView .TypeTicketAction h3 {
    background-color: #eee;
    color: #555;
}

.UseArticleColors .TimelineView .TypeTicketAction {
    background: #f7f7f7;
}

.UseArticleColors .TimelineView .TypeIncoming.SenderType_customer.ArticleType_email-internal h3 {
    background-color: #fff;
}

.UseArticleColors .TimelineView .TypeIncoming.SenderType_customer.ArticleType_email-internal h3:after {
    border-right-color: #ddd;
}

.UseArticleColors .TimelineView .TypeTicketAutoAction h3 {
    background-color: #ffffd1;
    color: #000;
}

.UseArticleColors .TimelineView ul.ListLeft .TypeTicketAutoAction h3:after {
    border-left-color: #EAEAAF;
}

.UseArticleColors .TimelineView .TypeNoteInternal h3 {
    background-color: #FFCCCC;
    color: #000;
}

.UseArticleColors .TimelineView ul.ListLeft .TypeNoteInternal h3:after {
    border-left-color: #EFB1B1;
}

.TimelineView > ul > li.Seen div.UnreadArticles,
.TimelineView li div.UnreadArticles {
    display: none;
}

.TimelineView li.HasArticle div.UnreadArticles {
    padding: 0px !important;
    margin-left: 0px;
    display: inline-block;
    height: 10px;
    width: 12px;
    cursor: pointer;
}

.TimelineView div.UnreadArticles i:first-child {
    font-size: 13px;
}

.TimelineView div.UnreadArticles i {
    font-size: 11px;
}

.ItemRow i.Unsupported,
.ItemRow a.Unsupported {
    opacity: 0.4;
}

.ArticleAttachments {
    clear: both;
    margin: 10px 0px -10px 75px;
    overflow: hidden;
}

.Incoming .ArticleAttachments {
    margin: 10px 105px -10px 0px;
}

.ArticleAttachments li {
    float: left;
    margin: 0px 10px 10px 0px;
    background: #e8e8e8;
    padding: 8px 45px 8px 12px;
    font-size: 11px;
    color: #777;
    position: relative;
}

.ArticleAttachments li h5 {
    font-size: 12px;
    color: #000;
    margin-bottom: 1px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ArticleAttachments li div {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 30px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ArticleAttachments li div a {
    height: 50%;
    display: block;
    background: #eee;
    line-height: 250%;
    text-align: center;
    color: #aaa;
    transition: all ease 0.3s;
}

.ArticleAttachments li div a:first-child:last-child {
    height: 100%;
    line-height: 450%;
}

.ArticleAttachments li div a:hover {
    color: #333;
}

.ArticleAttachments li div a + a {
    border-top: 1px solid #ccc;
    margin-top: -1px;
}

@media only screen and (min-width: 0px) and (max-width: 1024px) {

    .Avatar,
    .ArticleMailContentHTMLWrapper:after,
    .ArticleHTML:after,
    .ArticleBody:after,
    .ArticleMailContentHTMLWrapper:before,
    .ArticleHTML:before,
    .ArticleBody:before {
        display: none;
    }

    #ArticleItems .ArticleMailContentHTMLWrapper,
    #ArticleItems .ArticleHTML,
    #ArticleItems .ArticleBody,
    .ArticleMailContent .ArticleMeta,
    .ItemActions,
    .ArticleAttachments {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    #ArticleItems .ItemActions .Actions li {
        white-space: nowrap;
    }

    #ArticleItems .ItemActions .Actions li form {
        width: auto;
        overflow: visible;
    }

    #ArticleItems .ArticleMailHeader > fieldset {
        margin-left: 20px;
    }

    #ArticleItems .ArticleMailHeader label,
    #ArticleItems .ArticleMailHeader p.Value {
        font-size: 1.2em;
        width: auto;
        float: none;
        display: inline;
    }

    #ArticleItems .ItemActions li .InputField_Container {
        opacity: 1;
    }

}

} /* end @media */
