html {
  font-size: 100%;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body{
  display: grid;
  grid-template-rows: 80% 20%;
  grid-template-columns: 100%;
  grid-template-areas: "container"
                       "footer"
  ;
}

.container{
  display: grid;
  grid-template-rows: 15% 5% auto;
  grid-template-columns: 100%;
  grid-template-areas: "header"
                       "nav"
                       "contenf";

  grid-area: container;
}

.landing_page{
  display: flex;
  flex-direction: row-reverse;
}

.sidebar{
  flex: 75;
}
.main-content{
  flex: auto;
}

body {
  margin: 0;
  font-size: 14px;
  line-height: 1.231;
  padding: 0;
}
body,
input,
select,
textarea {
  font-family: "Helvetica Neue", sans-serif;
  color: #000;
}
b,
strong {
  font-weight: bold;
}
blockquote {
  margin: 1em 40px;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
small {
  font-size: 85%;
}
ul,
ol {
  margin: 1em 0;
  padding: 0 0 0 30px;
}
img {
  border: 0;
  vertical-align: middle;
}
form {
  margin: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
label {
  cursor: pointer;
}
input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}
input {
  line-height: normal;
  *overflow: visible;
}
table input {
  *overflow: auto;
}
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
}

textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th,
td {
  vertical-align: top;
}
th {
  text-align: left;
  font-weight: normal;
}
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset {
  margin: 0;
  padding: 0;
}
/* Typography */
a, .link {
  color: #0072bc;
  text-decoration: none;
  display: inline;
}
a:hover, .link:hover {
    border-bottom: 1px dotted #0072bc;
    margin-bottom: 0;
    cursor: pointer;
}
h1 {
  color: #00AEEF;
  font-weight: normal;
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
h2, .subject {
  font-size: 16px;
  color: black;
}
/* Helpers */
.centered {
  text-align: center;
}
.clear {
  clear: both;
  height: 1px;
  visibility: none;
}
.hidden {
  display: none;
}
.faded {
  color: #666;
}
/* Pagination */
#pagination {
  border: 0;
  margin: 0 0 40px 0;
  padding: 0;
}
#pagination li {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 11px;
  list-style: none;
  display: inline;
}
#pagination li a {
  margin-right: 2px;
  display: block;
  float: left;
  padding: 3px 6px;
  text-decoration: none;
}
#pagination li a:hover {
  color: #ff0084;
}
#pagination .previousOff,
#pagination .nextOff {
  color: #666;
  display: block;
  float: left;
  font-weight: bold;
  padding: 3px 4px;
}
#pagination .next a,
#pagination .previous a {
  font-weight: bold;
}
#pagination .active {
  color: #000;
  font-weight: bold;
  margin-right: 2px;
  display: block;
  float: left;
  padding: 3px 6px;
  text-decoration: none;
}
/* Alerts & Notices */
#msg_notice {
  margin: 0;
  padding: 5px 10px 5px 36px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 10px;
  border: 1px solid #0a0;
  background: url('../images/icons/ok.png') 10px 50% no-repeat #e0ffe0;
}
#msg_warning, .warning-banner {
  margin: 0;
  padding: 5px 10px 5px 36px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 10px;
  border: 1px solid #f26522;
  background: url('../images/icons/alert.png') 10px 50% no-repeat #ffffdd;
}
#msg_error {
  margin: 0;
  padding: 5px 10px 5px 36px;
  height: 16px;
  line-height: 16px;
  margin-bottom: 10px;
  border: 1px solid #a00;
  background: url('../images/icons/error.png') 10px 50% no-repeat #fff0f0;
}
#msg_info { margin: 0; padding: 5px; margin-bottom: 10px; color: #3a87ad; border: 1px solid #bce8f1;  background-color: #d9edf7; }
.warning {
  background: #ffc;
  font-style: italic;
}
.warning strong {
  text-transform: uppercase;
  color: #a00;
  font-style: normal;
}
.error {
  color: #f00;
}
.error input {
  border: 1px solid #f00;
}
.button,
.button:visited {
  background: #222;
  border: none;
  display: inline-block;
  font-size: 16px;
  padding: 4px 16px 4px 16px;
  max-width: 220px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  font-family: helvetica, arial, sans-serif;
}
.button:hover {
  background-color: #111;
  color: #fff;
}
.button:active {
  top: 1px;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
}
.button,
.button:visited,
.green.button,
.green.button:visited {
  background-color: #91bd09;
}
.green.button:hover {
  background-color: #749a02;
}
.blue.button,
.blue.button:visited {
  background-color: #00AEEF;
}
.blue.button:hover {
  background-color: #0299d2;
}
body {
  background: url('../images/page_bg.png') top left repeat-x #c8c8c8;
}
.container {
  background: #fff;
  width: 840px;
  margin: 0 auto;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}
#header {
  grid-area: header;
  display: flex;
  flex-direction: row-reverse;
  position: relative;
  height: 71px;
  padding: 0 20px;
}
#logo {
  flex: 50%;
  height: 100%;
  width: 0;
}
#header #logo img {
  max-height: 60px;
  max-width: 380px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.valign-helper {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}
#header p {
  width: 375px;
  margin: 0;
  padding: 10px 0 0;
}
#nav {
  grid-area: nav;
  margin: 0 20px;
  padding: 2px 10px;
  height: 20px;
  background: url('../images/nav_bg.png') top left repeat-x;
  border-top: 1px solid #aaa;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0 3px 2px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0 3px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
#nav li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline;
}
#nav li a {
  display: inline-block;
  width: auto;
  height: 20px;
  line-height: 20px;
  text-align: center;
  padding: 0 10px 0 32px;
  margin-left: 10px;
  color: #333;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  background-position: 10px 50%;
  background-repeat: no-repeat;
}
.rtl #nav li a {
  background-position: right center;
  background-position: calc(100% - 10px) center;
  padding-left: 10px;
  padding-right: 32px;
  margin-right: 10px;
  margin-left: 0;
}
#nav li a.active,
#nav li a:hover {
  background-color: #dbefff;
  color: #000;
}
#nav li a:hover {
  background-color: #ededed;
  color: #0054a6;
}
#nav li a.home {
  background-image: url('../images/icons/home.png');
}
#nav li a.kb {
  background-image: url('../images/icons/kb.png');
}
#nav li a.new {
  background-image: url('../images/icons/new.png');
}
#nav li a.status {
  background-image: url('../images/icons/status.png');
}
#nav li a.tickets {
  background-image: url('../images/icons/tix.png');
}
#content {
  grid-area: contenf;
  padding: 20px 0;
  margin: 0 20px;
  height: auto !important;
  height: 350px;
  min-height: 350px;
}
.footer {
  grid-area: footer;
  text-align: center;
  font-size: 11px;
  color: #333;
}
.footer a {
  color: #333;
}
.footer p {
  margin: 10px 0 0 0;
}
.footer #poweredBy {
  display: block;
  width: 126px;
  height: 23px;
  outline: none;
  text-indent: -9999px;
  margin: 0 auto;
  background: url('../images/poweredby.png') top left no-repeat;
  background-size: auto 20px;
}
.front-page-button {
}
.main-content {
  width: 565px;
}
#landing_page #new_ticket {
  margin-top: 40px;
  background: url('../images/new_ticket_icon.png') top left no-repeat;
}
#landing_page #new_ticket,
#landing_page #check_status {
  width: 295px;
  padding-left: 75px;
}
#landing_page #check_status {
  margin-top: 40px;
  background: url('../images/check_status_icon.png') top left no-repeat;
}
#landing_page h1, #landing_page h2, #landing_page h3 {
    margin-bottom: 10px;
}
/* Landing page FAQ not yet implemented. */
#faq {
  clear: both;
  margin: 0;
  padding: 5px;
}
#faq ol {
  font-size: 15px;
  margin-left: 0;
  padding-left: 0;
  border-top: 1px solid #ddd;
}
#faq ol li {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #999;
}
#faq ol li a {
  display: block;
  padding: 5px 0;
  height: auto !important;
  overflow: hidden;
  margin: 0;
  border-bottom: 1px solid #ddd;
  line-height: 16px;
  padding-left: 24px;
  background: url('../images/icons/page.png') 0 50% no-repeat;
}
#faq ol li a:hover {
  background-color: #e9f5ff;
}
#faq .article-meta {
  padding: 5px;
  background: #fafafa;
}
#kb {
  margin: 2px 0 69px 0;
  padding: 5px;
  overflow: hidden;
}
#kb > li {
  padding: 10px;
  height: auto !important;
  overflow: hidden;
  margin: 0;
  background: url(../images/kb_category_bg.png) bottom left repeat-x;
  border-bottom: 1px solid #ddd;
  display: block;
}
#kb > li h4 span {
  color: #666;
}
#kb > li h4 a {
  font-size: 14px;
}
#kb > li > i {
  display: block;
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 6px;
  background: url(../images/kb_large_folder.png) top left no-repeat;
}
.featured-category {
    margin-top: 10px;
    width: 49.7%;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: top;
}
.category-name {
    display: inline-block;
    font-weight: 400;
    font-size: 120%;
}
.featured-category i {
    color: rgba(0,174,239, 0.8);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    display: inline-block;
    vertical-align: middle;
}
.article-headline {
    margin-left: 34px;
}
.rtl .article-headline {
    margin-left: 0;
    margin-right: 34px;
}
.article-teaser {
    font-size: 90%;
    line-height: 1.5em;
    height: 3em;
    overflow: hidden;
}
.article-title {
    font-weight: 500;
}
.faq-content .article-title {
    font-size: 17pt;
    margin-top: 15px;
}
#kb-search {
  padding: 10px 0;
  overflow: hidden;
}
#kb-search div {
  clear: both;
  overflow: hidden;
  padding-top: 5px;
}
#kb-search #query {
  margin: 0;
  display: inline-block;
  float: left;
  width: 200px;
  margin-right: 5px;
}
#kb-search #cid {
  margin: 0;
  display: inline-block;
  float: left;
  width: 200px;
  margin-right: 5px;
  position: relative;
  top: 2px;
}
#kb-search #topic-id {
  margin: 0;
  display: inline-block;
  float: left;
  width: 410px;
}
#kb-search #searchSubmit {
  margin: 0;
  display: inline-block;
  float: left;
  position: relative;
  top: 2px;
}
#kb-search #breadcrumbs {
  color: #333;
  margin-bottom: 15px;
}
#kb-search #breadcrumbs #breadcrumbs a {
  color: #555;
}
#ticketForm div.clear,
#clientLogin div.clear {
  clear: both;
  padding: 3px 0;
  overflow: hidden;
}
#ticketForm div label,
#clientLogin div label {
  display: block;
}
label.required, span.required {
  font-weight: bold;
}
#ticketForm div label.required,
#clientLogin div label.required {
  text-align: left;
}
#ticketForm div input,
#clientLogin div input,
#ticketForm div textarea,
#clientLogin div textarea {
  width: auto;
  border: 1px solid #aaa;
  background: #fff;
  display: block;
}
#ticketForm div input[type=file],
#clientLogin div input[type=file] {
  border: 0;
}
#ticketForm div select,
#clientLogin div select {
  display: block;
  float: left;
}
#ticketForm div div.captchaRow,
#clientLogin div div.captchaRow {
  line-height: 31px;
}
#ticketForm div div.captchaRow input,
#clientLogin div div.captchaRow input {
  position: relative;
  top: 6px;
}
#ticketForm > table {
    table-layout: fixed;
}
#ticketForm > table td {
    width: 160px;
}
#ticketForm > table td + td {
    width: auto;
}
#ticketForm td textarea,
#clientLogin td textarea,
#ticketForm div textarea,
#clientLogin div textarea {
  width: 600px;
}
#ticketForm td em,
#clientLogin td em,
#ticketForm div em,
#clientLogin div em {
  color: #777;
}
#ticketForm td .captcha,
#clientLogin td .captcha,
#ticketForm div .captcha,
#clientLogin div .captcha {
  width: 88px;
  height: 31px;
  background: #000;
  display: block;
  float: left;
  margin-right: 20px;
}
#ticketForm td label.inline,
#clientLogin td label.inline,
#ticketForm div label.inline,
#clientLogin div label.inline {
  width: auto;
  padding: 0 10px;
}
#ticketForm div.error input,
#clientLogin div.error input {
  border: 1px solid #a00;
}
#ticketForm div.error label,
#clientLogin div.error label {
  color: #a00;
}
#ticketTable th {
  padding-left: 3px;
  font-weight: normal;
  text-align: left;
}
#ticketTable th.required,
#ticketTable td.required {
  font-weight: bold;
  text-align: left;
}
#clientLogin {
    display: block;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  background: url('../images/lock.png?1319655200') 95% 50% no-repeat #f6f6f6;
}
.rtl #clientLogin {
    background-position: 5% 50%;
}
#clientLogin .instructions {
    display:table-cell;
    padding-left: 2em;
    padding-right:90px;
}
.rtl #clientLogin .instructions {
    padding-left: 0;
    padding-right:0;
    padding-right: 2em;
    padding-left:90px;
}
#clientLogin p {
  clear: both;
}
#clientLogin strong {
  font-size: 11px;
  color: #d00;
  display: block;
}
#clientLogin #email,
#clientLogin #ticketno {
  margin-right: 0;
}
#clientLogin input[type=text],
#clientLogin input[type=password] {
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 15px;
}
#clientLogin input[type=submit] {
    padding: 3px 10px;
    border-radius: 4px;
}
#reply {
  margin-top: 5px;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ccc;
}
#reply h2 {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px dotted rgba(0,0,0,0.1);
}
#reply > table {
  width: auto;
}
#reply table td {
  vertical-align: top;
}
#reply textarea {
  width: 628px !important;
}
#reply input[type=text],
#reply #response_options textarea {
  border: 1px solid #aaa;
  background: #fff;
}
/* Ticket icons */
.Icon {
  width: auto;
  padding-left: 20px;
  background-position: top left;
  background-repeat: no-repeat;
  color: #006699;
  text-decoration: none;
}
.Icon.Ticket {
  background-image: url('../images/icons/ticket.gif');
}
.Icon.webTicket {
  background-image: url('../images/icons/ticket_source_web.gif');
}
.Icon.emailTicket {
  background-image: url('../images/icons/ticket_source_email.gif');
}
.Icon.phoneTicket {
  background-image: url('../images/icons/ticket_source_phone.gif');
}
.Icon.otherTicket, .Icon.apiTicket  {
  background-image: url('../images/icons/ticket_source_other.gif');
}

.Icon.attachment {
  background-image: url('../images/icons/attachment.gif');
}
.Icon.file {
  background-image: url('../images/icons/attachment.gif');
}
.Icon.refresh {
  background-image: url('../images/icons/refresh.gif');
}
.Icon.thread {
  font-weight: bold;
  font-size: 1em;
  background-image: url('../images/icons/thread.gif?1319556657');
}
#ticketTable {
  border: 1px solid #aaa;
  border-left: none;
  border-bottom: none;
}
#ticketTable caption {
  padding: 5px;
  text-align: left;
  color: #000;
  background: #ddd;
  border: 1px solid #aaa;
  border-bottom: none;
  font-weight: bold;
}
#ticketTable th {
  height: 24px;
  line-height: 24px;
  background: #e1f2ff;
  border: 1px solid #aaa;
  border-right: none;
  border-top: none;
  padding: 0 5px;
}
#ticketTable th a {
  color: #000;
}
#ticketTable td {
  padding: 3px 5px;
  border: 1px solid #aaa;
  border-right: none;
  border-top: none;
}
#ticketTable tr.alt td {
  background: #f9f9f9;
}
i.refresh {
  color: #0a0;
  font-size: 80%;
  vertical-align: middle;
}
.states small {
    font-size: 70%;
}
.active.state {
    font-weight: bold;
}
.search.well {
    padding: 10px;
    background-color: rgba(0,0,0,0.05);
    margin-bottom: 10px;
    margin-top: -15px;
}
.infoTable {
  background: #F4FAFF;
}
.infoTable th {
  text-align: left;
  padding: 3px 8px;
}
.action-button {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  color: #777 !important;
  display: inline-block;
  border: 1px solid #aaa;
  cursor: pointer;
  font-size: 11px;
  overflow: hidden;
  background-color: #dddddd;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #efefef), color-stop(100% #dddddd));
  background-image: -webkit-linear-gradient(top, #efefef 0%, #dddddd 100%);
  background-image: -moz-linear-gradient(top, #efefef 0%, #dddddd 100%);
  background-image: -ms-linear-gradient(top, #efefef 0%, #dddddd 100%);
  background-image: -o-linear-gradient(top, #efefef 0%, #dddddd 100%);
  background-image: linear-gradient(top, #efefef 0%, #dddddd 100%);
  padding: 0 5px;
  text-decoration: none;
  line-height:18px;
  margin-left:5px;
}
.action-button span,
.action-button a {
  color: #777 !important;
  display: inline-block;
  float: left;
}
.action-button a {
  color: #777;
  text-decoration: none;
}
table.padded tr > td,
table.padded tr > th {
  height: 20px;
  padding-bottom: 5px;
}

.external-auth + .external-auth {
    margin-top: 4px;
}

a.external-sign-in {
    text-decoration: none;
}
.external-auth-box {
    vertical-align: middle;
    border-radius: 4px;
    border: 1px solid #777;
}
.external-auth-icon {
    display: inline-block;
    color: #333;
    width: 30px;
    padding: 5px 10px;
    border-right: 1px solid #ddd;
}
.external-auth-name {
    color: #333;
    width: 100px;
    padding: 5px 10px;
    line-height:30px;
    font-size: 11pt;
}
img.sign-in-image {
    border: none;
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
}
.login-box {
    width:40%;
    display:table-cell;
    box-shadow: 12px 0 15px -15px rgba(0,0,0,0.4);
    padding:15px;
}
.rtl .login-box {
    box-shadow: -12px 0 15px -15px rgba(0,0,0,0.4);
}
.flush-right {
  flex: auto;
    text-align: right;
}
.flush-left {
    text-align: left;
}
.sidebar {
    margin-bottom: 20px;
    margin-left: 20px;
    width: 215px;
}
.rtl .sidebar {
    margin-left: 0;
    margin-right: 20px;
}
.sidebar .content {
    padding: 10px; border: 1px solid #C8DDFA; background: #F7FBFE;
}
.sidebar .content:empty {
    display: none;
}

.sidebar section .header {
    font-weight: bold;
    margin-bottom: 0.3em;
}
.sidebar section + section {
    margin-top: 15px;
}
.search-form {
    padding-top: 12px;
}
.searchbar .search,
.search-form .search {
    display: inline-block;
    width: 400px;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.searchbar .search {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.bleed {
    margin: 0;
    padding: 0 !important;
}
.row {
}
.span4 {
    display: inline-block;
    width: 29.5%;
    margin: 0 1%;
    vertical-align: top;
}
.span8 {
    display: inline-block;
    width: 66.0%;
    margin: 0 1%;
    vertical-align: top;
}
.truncate {
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
.image-hover a.action-button:hover,
.image-hover a.action-button {
    color: initial !important;
    text-decoration: none;
}
table.custom-data {
    margin-top: 10px;
}
table.custom-data th {
    width: 25%;
}
table.custom-data th {
    background-color: #F4FAFF;
    padding: 3px 8px;
}
table .headline,
table.custom-data .headline {
    border-bottom: 2px solid #ddd;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    font-weight: bold;
    background-color: white;
}
#ticketInfo h1 {
    padding-bottom: 10px;
    margin-bottom: 5px;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.15);
}
#ticketInfo h1 small {
    font-weight: normal;
}
.thread-entry {
    margin-bottom: 15px;
}
.thread-entry.avatar {
    margin-left: 60px;
}
.thread-entry.response.avatar {
    margin-right: 60px;
    margin-left: 0;
}
.thread-entry > .avatar {
    margin-left: -60px;
    display:inline-block;
    width:48px;
    height:auto;
    border-radius: 5px;
}
.thread-entry.response > .avatar {
    margin-left: initial;
    margin-right: -60px;
}
img.avatar {
    border-radius: inherit;
}
.avatar > img.avatar {
    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 .header:before {
  position: absolute;
  top: 7px;
  right: -8px;
  content: '';
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #b0b0b0;
  display: inline-block;
}
.thread-entry.avatar .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 .header {
    position: relative;
}

.thread-entry.response .header {
    background:#dddddd;
}
.thread-entry.avatar.response .header:after {
    border-left: 7px solid #dddddd;
    margin-right: 1px;
}

.thread-entry.message .header {
    background:#C3D9FF;
}
.thread-entry.avatar.message .header:before {
    top: 7px;
    left: -8px;
    right: initial;
    border-left: none;
    border-right: 8px solid #CCC;
}
.thread-entry.avatar.message .header:before {
    border-right-color: #9cadcc;
}
.thread-entry.avatar.message .header:after {
    top: 7px;
    left: -8px;
    right: initial;
    border-left: none;
    border-right: 7px solid #c3d9ff;
    margin-left: 1px;
}

.thread-entry .header .title {
    max-width: 500px;
    vertical-align: bottom;
    display: inline-block;
    margin-left: 15px;
}

.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 .filesize {
  margin-left: 0.5em;
}
.thread-body .attachments a,
.thread-body .attachments a:hover {
  text-decoration: none;
}
.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);
}
.label {
  font-size: 11px;
  padding: 1px 4px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-weight: bold;
  line-height: 14px;
  color: #ffffff;
  vertical-align: baseline;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #999999;
}
.label-bare {
  background-color: transparent;
  background-color: rgba(0,0,0,0);
  border: 1px solid #999999;
  color: #999999;
  text-shadow: none;
}
.thread-event {
    padding: 0px 2px 15px;
    margin-left: 60px;
}
.type-icon {
    border-radius: 8px;
    background-color: #f4f4f4;
    padding: 4px 6px;
    margin-right: 5px;
    text-align: center;
    display: inline-block;
    font-size: 1.1em;
    border: 1px solid #eee;
    vertical-align: top;
}
.type-icon.dark {
    border-color: #666;
    background-color: #949494;
}
.thread-event img.avatar {
    vertical-align: middle;
    border-radius: 3px;
    width: auto;
    max-height: 24px;
    margin: -3px 3px 0;
}
.thread-event .description {
    margin-left: -30px;
    padding-top: 6px;
    padding-left: 30px;
    display: inline-block;
    width: 642px;
    width: calc(100% - 95px);
    line-height: 1.4em;
}
.thread-event .type-icon {
  position:relative;
}
.thread-event .type-icon::after {
  content: "";
  border: 16px solid white;
  position: absolute;
  top: -3px;
  bottom: 0;
  left: -3px;
  right: 0;
  z-index: -1;
}
.thread-entry::after {
  content: "";
  border-bottom: 2px solid white;
  display: block;
}
.thread-entry::before {
  content: "";
  display: block;
  border-top: 2px solid white;
}
#ticketThread::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;
}
#ticketThread {
  z-index: 0;
  position: relative;
  border-bottom: 2px solid #ddd;
  border-bottom-color: rgba(0,0,0,0.1);
}

.freetext-files {
    padding: 10px;
    margin-top: 10px;
    border: 1px dotted #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
}
.freetext-files .file {
    margin-right: 10px;
    display: inline-block;
    width: 48%;
    padding-top: 0.2em;
}
.freetext-files .title {
    font-weight: bold;
    margin-bottom: 0.3em;
    font-size: 1.1em;
}

/*----------------------------------------------*/
/*------------- Responsive Mode ---------------*/
/*--------------------------------------------*/

@media screen and (min-width: 320px) { 
  #header{
    flex-direction: column;
  }

  .img_logo{
    margin-top: -25px;
    margin-left: 70px;
    -webkit-margin-top-collapse: collapse;
  }

  #nav{
    margin: 25px 0px;
    width: 93.5%;
    height: 48px;
    background: url('../images/nav_bg.png') round;
  }

  #nav li {
    margin-right: 0px;
    padding: 0px;
    list-style: none;
    display: inline;
  }

  #nav li a.home {
    margin-left: -10px;
  }

  #nav li a {
    display: inline-block;
    line-height: 20px;
    padding: 0 4px 0 28px;
    border-radius: 20px;
    background-position: 10px 50%;
    background-repeat: no-repeat;
  }

  #nav li a.status {
    display: flex;
    margin: -1.85em 0px 0px 127px;
    width: 160px;
    padding: 0px 0px 0px 25px;
  }

  #nav li a.new {
    display: flex;
    margin: 6px -10px;
    width: 36%;
  }
  
  #nav li a.kb:active{
    grid-template-rows: 11% 5% auto;
  }

  .search-form .search {
    width: 82%;
    margin: 0px 83px 0px 10px;
    padding: 5px 4px;
  }

  .btn_search{
    margin: 0 -43px 0 -5em;
    padding: 0 4px 0px 4px;
  }

  form{
    display: flex;
    margin: -2px 0px 0px -27px;
    width: 100%;
  }

  .content{
    margin: 36px 5px;
  }
  
  .row {
    display: flex;
    flex-direction: column-reverse;
    margin-top: -11%;
  }
  
  .span4>.sidebar{
      display: flex;
      flex-direction: column;
      width: 100%;
  }
  
  .sidebar>.searchbar{
      margin: 19px -257% -22px 137px;
  }
  
  .sidebar>.content{
      margin: 0;
      display: none;
  }
  
  .span8{
      width: 100%;
      margin: -55px 0 85px 0px;
  }
  
  form>.search{
      margin-top: 23px;
  }

  .landing_page {
    display: flex;
    flex-direction: column-reverse;
    margin-top: -10%;
  }

  #landing_page h1{
    margin: 20px 0 20px;
    text-align: center;
  }

  .main-content {
    width: 100%;
    text-align: left;
  }

  .sidebar {
    width: 77%;
    align-self: center;
    margin-left: 0;
    margin-bottom: 100px;
  }

  .container {
    width: 100%;
  }

  .flush_responsive {
    flex: auto;
    margin-left: -38%;
  }

  table{
    width: 100%;
  }

  .t_open{
    margin-left: 22px;
  }

  .tb_open{
    display: inherit;
    width: 217%;
  }
  
  .tb_open tr:nth-child(2) td label input{
      width: 150%;
  }
  
  .tb_open tr:nth-child(3) td label input{
      width: 150%;
  }
  
  .tb_open tr:nth-child(4) td label input{
      width: 83%;
  }
  
  #content p:nth-child(5){
      margin-bottom: 35px;
  }

  .p_open{
    margin-right: -30px;
    margin-left: 23px;
    margin-bottom: 65%;
  }

  #ticketForm{
    display: grid;
  }

  .main-content > .thread-body{
    margin-top: 43px;
  }

  #msg_error{
    padding: 5px 10px 20px 36px;
  }

  #clientLogin{
    margin-left: -21px;
    background: url('../images/lock.png?1319655200') 17% 87% no-repeat #f6f6f6;
  }

  #clientLogin > div{
    display: flex !important;
    flex-direction: column;
  }
  
  #clientLogin .instructions {
    padding-left: 8.18em;
    padding-right: 0;
    text-align: justify;
  }

  #clientLogin #email, #clientLogin #ticketno{
    padding-right: 10px;
    width: 71%;
  }

  .login-box {
    width: 96%;
    margin-left: 2px;
    margin-top: -5%;
  }

  #loading{
    left: -5px !important;
    right: 5px;
  }

  .p_login{
    display: table-cell;
    padding: 15px;
    vertical-align: top;
    margin-left: 114px;
    margin-right: 32px;
    text-align: justify;
  }

  hr{
    margin-left: -16px;
    margin-right: -45px;
    width: 89%;
  }
  
  .t_open tbody:nth-child(2) tr td hr{
      width: 113%;
  }

  .hr_last{
    width: 119%;
  }

  .account{
    display: grid;
    margin-left: 0px;
  }
  
  #_7dc236628ef2af, #_94ff978a6df846{
      width: 83%;
  }

  .select2-selection{
    margin-right: 15px;
  }

  .select2-selection__arrow{
    margin-right: 14px;
  }
  
  .select2-container{
      width: 248px !important;
  }

  .p_reg{
    width: 97%;
    margin-bottom: 100px;
  }

  #_0d9c0bfb870084, #_d4fac56597f684{
    width: 70%;
  }

  .action-button{
    margin-left: 0px;
    margin-top: 5px;
  }

  .td_reg{
    display: grid;
    width: 163%;
  }

  .in_reg_pass, .in_reg_new_pass{
    margin-left: 46px;
  }
  
  #content{
      margin-top: 14%;
      margin-bottom: 17%;
  }
  
  .topic_search{
      margin: -10px -14px -6px -14px;
  }
  
  #_1b1261eadfb969, #_57e472a1793ee2{
      width: 0%;
  }

  .error320{
    display: flex;
    margin-left: 42px;
  }
  
  #footer{
      text-align: center;
  }
  
  .span8>div{
      margin-top: 13px;
  }
  
  #dynamic-form hr{
      width: 113%;
  }
  
  #dynamic-form:active{
      grid-template-rows: 9% 5% auto;
  }
  
  .h1-open{
      margin-top: -30px;
  }
  
  .padded hr{
      width: 105%;
  }
  
  table.padded tr > td, table.padded tr > th {
    margin-left: 0px;
    margin-right: -12px;
  }
  
  #nav li a.kb {
    margin: 0;
  }
}

@media screen and (min-width: 480px) { 
  .img_logo {
    margin-top: 11px;
    margin-left: 118px;
  }

  #nav {
    width: 95.9%;
  }

  #nav li a.status {
    margin: -1.85em 0px 6px 19.89em;
    width: 160px;
  }

  .sidebar {
    width: 48%;
  }

  #nav li a.new {
    width: 25%;
  }
  
  #nav li a.kb {
    margin-left: 32.5%;
    }

  .t_open {
    margin-left: 26px;
  }

  hr {
    width: 300%;
    margin-left: -20px;
  }

  .hr_last {
    margin-right: -32px;
    width: 115%;
  }
  
  .t_open tbody:nth-child(2) tr td hr, #dynamic-form hr {
    width: 109.6%;
  }

  #clientLogin {
    background: url('../images/lock.png?1319655200') 80% 10% no-repeat 
    #f6f6f6;
    margin-left: -22px;
  }
  
  .login-box {
    width: 97%;
  }

  .in_reg_pass, .in_reg_new_pass {
    margin-left: 25px;
  }

  .select2-container--default .select2-selection--single {
    margin-left: -41px;
    margin-right: 75px;
  }

  .select2-selection__arrow {
    margin-right: 77px;
  }

  .action-button {
    margin-left: -40px;
  }

  .error320 {
    margin-left: -13px;
  }

  #loading {
    left: 50px !important;
    right: 10px;
  }

  .login-box label{
    width: 48%;
  }

  #clientLogin .instructions {
    padding-left: 17px;
  }

  .p_login {
    margin-left: 88px;
  }

  #clientLogin #email {
    width: 100%;
  }
  
  #msg_error {
    padding: 5px 10px 20px 36px;
    margin-top: -41px;
    margin-bottom: 35px;
  }
  
  .sidebar > .searchbar {
    margin: 19px -251% -22px 201%;
  }
  
  .span8 hr{
    width: 109%;
  }
  
  #clientLogin #email, #clientLogin #ticketno {
    padding-right: 10px;
    width: 107%;
  }
  
  .reg_hr_4{
      width: 109%;
  }
  
  .padded hr {
    width: 109%;
  }
  
  .search-form .search {
    width: 87%;
  }
}

@media screen and (min-width: 720px){
  .flush_responsive {
    margin-left: 43%;
  }

  .img_logo {
    margin-left: 235px;
    margin-top: -30px;
  }

  #nav {
    width: 97.1%;
  }

  #nav li a.home {
    margin-left: 80px;
  }

  #nav li a.new {
    margin-left: 79px;
    width: 16%;
  }

  #nav li a.kb {
    margin-left: 32.3%;
  }

  #nav li a.status {
    margin: -1.85em 0px 6px 31.85em;
  }
  
  .search-form .search {
    width: 46%;
    margin: 0px 85px 0px 164px;
  }

  .sidebar {
    width: 35%;
  }

  hr {
    width: 450.2%;
    margin-left: -20px;
  }

  .hr_last {
    margin-right: -32px;
    width: 105.5%;
  }
  
  .padded hr {
    width: 106%;
  }
  
  .reg_hr_4 {
    width: 105.8%;
  }
  
  .t_open tbody:nth-child(2) tr td hr, #dynamic-form hr {
    width: 106%;
  }

  #clientLogin {
    background: url('../images/lock.png?1319655200') 78% 25% no-repeat #f6f6f6;
    margin-left: -4px;
    width: 95.2%;
  }

  .login-box {
    width: 48%;
    margin-left: -20px;
    margin-top: 2%;
  }

  #clientLogin #email, #clientLogin #ticketno {
    padding-right: 10px;
    width: 145%;
  }

  .p_login {
    margin-left: 425px;
    margin-top: -71px;
  }

  #clientLogin .instructions {
    padding-left: 56%;
    margin-top: -60px;
    margin-right: 20px;
  }

  .select2-container--default .select2-selection--single {
    margin-top: -5px;
    margin-left: -83px;
    margin-right: 116px;
  }

  .select2-selection__arrow {
    margin-right: 115px;
    margin-top: -4px;
  }

  .action-button {
    margin-top: -3px;
    margin-left: -111px;
  }

  .error320 {
    margin-left: 7px;
  }

  #loading {
    left: 180px !important;
    right: 10px;
  }
  
  .sidebar > .searchbar {
    margin: 19px -244% -22px 251%;
  }

}

/* Small devices (tablets, 768px and up) */
@media screen and (min-width: 768px) { 
  .flush_responsive {
    margin-left: 47%;
  }

  .img_logo {
    margin-left: 20.5em;
    margin-top: -32px;
  }

  #nav {
    width: 97.52%;
  }

  #nav li a.home, #nav li a.new {
    margin-left: 18%;
    width: 15%;
  }

  #nav li a.status {
    margin-left: 33.89em;
  }
  
  #nav li a.kb {
    margin-left: 25.3%;
  }

  .sidebar {
     width: 36%;
  }

  #msg_error {
    padding: 8px 10px 8px 36px;
  }

  hr {
    width: 102.1%;
  }

  .hr_last {
    width: 105.4%;
  }

  .p_open {
    margin-left: 50px;
    margin-right: 0;
  }

  .login-box {
    width: 98%;
    margin-left: 2px;
    margin-top: 0%;
  }
  
  .h1_login, .h1_status, .h1_open, .h1_register{
      margin-top: -58px;
  }
  
  #clientLogin #email, #clientLogin #ticketno {
    padding-right: 10px;
    width: 67%;
  }
  
  #clientLogin .instructions {
    padding-left: 48%;
  }

  .p_login {
    margin-left: 32%;
    margin-top: -26px;
  }

  .select2{
    width: 313px;
  }

  #loading {
    left: 25% !important;
  }

  #clientLogin {
    background: url('../images/lock.png?1319655200') 52% 59% no-repeat 
    #f6f6f6;
  }
  
  .padded hr {
    width: 105.4%;
  }
  
  .reg_hr_4 {
    width: 105.3%;
  }

}
/* Medium devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
  .flush_responsive {
    margin-left: 59.5%;
  }

  .img_logo {
    margin-left: 29em;
    margin-top: -30px;
  }

  #nav{
    width: 98%;
  }

  #nav li a.home {
    margin-left: 18%;
    width: 12%;
  }

  #nav li a.new {
    margin-left: 18%;
    padding-left: 34px;
    width: 12%;
  }

  #nav li a.status {
    margin-left: 47.3em;
  }
  
  #nav li a.kb {
    margin-left: 32.2%;
  }
  
  .search-form .search {
    width: 65%;
  }
  
  .t_open tbody:nth-child(2) tr td hr, #dynamic-form hr {
    width: 104.4%;
  }
  
  .tb_open tr:nth-child(4) td label input {
    width: 77%;
    margin-bottom: 6px;
  }
  
  #clientLogin #email, #clientLogin #ticketno {
    padding-right: 10px;
    width: 110%;
  }
  
  .h1_login, .h1_status, .h1_open, .h1_register {
    margin-top: -82px;
  }
  
  #ticketForm > table td {
    width: 219px;
  }

  .sidebar {
    width: 28%;
  }

  hr {
    width: 452.5%;
  }

  .hr_last {
    width: 104.2%;
  }

  .content {
    margin: 36px 6px;
  }

  #clientLogin {
    background: url('../images/lock.png?1319655200') 78% 49% no-repeat 
    #f6f6f6;
  }

  #clientLogin .instructions {
    padding-left: 60%;
    padding-right: 5%;
    margin-top: -4%;
  }

  .login-box {
    width: 50%;
  }

  .p_login {
    margin-left: 62%;
    margin-top: -4%;
  }

  #loading {
    left: 336px !important;
  }
  
  .searchbar form select{
      text-align: center;
  }
  
  .padded hr {
    width: 104.2%;
  }
  
  .reg_hr_4 {
    width: 103.8%;
  }

}

/* Large devices (large desktops, 1200px and up) */
@media screen and (min-width: 1200px) { 
  .container {
    width: 840px;
  }

  .flush_responsive {
    margin-left: 52%;
  }

  .img_logo {
    margin-left: 0;
    margin-top: -42px;
  }

  #nav {
    width: 97.6%;
    height: 20px;
    margin: 0;
  }

  #nav li a.home {
    margin-left: 7%;
    margin-right: 0px;
    width: 14%;
  }

  #nav li a.kb{
    margin-left: 3px;
  }

  #nav li a.status {
    margin-left: 39.6em;
    margin-top: -21px;
  }

  .search-form .search {
    width: 80%;
    margin-left: 37px;
  }
  
  .main-content > .thread-body{
      margin-top: 0;
  }
  
  .sidebar>.content {
    display: inherit;
    margin-top: 24px;
    margin-left: -18px;
    margin-right: 11px;
  }

  .landing_page {
    display: flex;
    flex-direction: row-reverse;
  }

  .sidebar {
    margin-top: -4px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 10px;
    width: 28%;
    flex: none;
    align-self: auto;
  }

  #nav li a.new {
    display: inline-block;
    margin: 0;
    width: 14%;
  }
  
  .row {
    flex-direction: row;
    margin-top: -14%;
  }
  
  .h1-open, .check_status, .h1_login, .h1_register, .h1_reset{
      margin-top: -15%;
  }
  
  #content p:nth-child(5) {
    margin-bottom: 34%;
  }

  .thread-body p{
    text-align: justify;
  }
  
  .t_open tbody:nth-child(2) tr td hr {
    width: 105.3%;
    margin-left: -20px;
  }
  
  .t_open tbody:nth-child(1) tr td hr {
    width: 97%;
    margin-left: -20px;
  }
  
  .tb_open tr:nth-child(2) td label input {
    width: 50%;
  }
  
  .tb_open tr:nth-child(3) td label input {
    width: 50%;
  }
  
  .tb_open tr:nth-child(4) td label input {
    width: 21.8%;
  }

  .hr_last {
    width: 104.9%;
    margin-left: 8px;
  }
  
  #dynamic-form hr{
    width: 105.3%;
    margin-left: -20px;
  }

  .reg_hr_4 {
    width: 102.2%;
  }

  .action-button {
    margin-left: -83px;
    margin-top: 0px;
  }

  .content {
    margin: 0px 9px;
    /* height: 50%;
    width: 78%;
    margin: 10% 6.5%; */
  }

  #clientLogin {
    margin-left: -9px;
    width: 97.09%;
  }

  .login-box {
    width: 50%;
  }

  .login-box label {
    width: 55%;
  }
  
  .form-header h3{
      width: 108%;
  }

  .p_login {
    margin-top: -4%;
    margin-left: 59.8%;
    margin-right: 0;
    display: revert;
  }

  #loading {
    left: 422px !important;
  }

  .p_reg {
    margin-bottom: 15%;
  }

  #footer>p{
    text-align: center;
  }
  
  .span8{
      margin: -13px 0 29% 0;
  }
  
  .span8>div {
    margin-top: 0px;
    margin-bottom: 30px;
  }
  
  #kb{
      margin: -15px 0 -52px 0;
  }
  
  .span4>.sidebar{
    margin-top: -29px;
    margin-left: 26px;
    width: 104%;
  }
  
  .sidebar>.searchbar{
      margin-left: 22px;
      margin-right: -29px;
  }
  
  .searchbar form:nth-child(2){
      margin: 0;
  }
  
  .content>section{
    margin-left: 0px;
    width: 66%;
    margin-top: 16px;
  }
  
  .sidebar section + section {
    width: 73%;
  }
  
  .searchbar .search {
    box-sizing: border-box;
    margin-bottom: 10px;
    margin-left: -14px;
  }

  #msg_error {
    padding: 8px 10px 6px 32px;
    margin-top: -16%;
    margin-bottom: 16%;
  }
  
  .thread-body {
    margin: 0 0 120px 0;
  }

}

@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0){

  @media (min-width: 320px){
    /*
      Define here the CSS styles applied only to Safari browsers
      (any version and any device)
     */
     .img_logo{
        margin-top: -18px;
    }
  }
  
  @media (min-width: 480px){
    /*
      Define here the CSS styles applied only to Safari browsers
      (any version and any device)
     */
     .img_logo{
        margin-top: -18px;
    }
  }
  
  @media (min-width: 720px){
    /*
      Define here the CSS styles applied only to Safari browsers
      (any version and any device)
     */
     .img_logo{
        margin-top: -18px;
    }
  }
  
  @media (min-width: 768px){
    /*
      Define here the CSS styles applied only to Safari browsers
      (any version and any device)
     */
     .img_logo{
        margin-top: -18px;
    }
  }
  
  @media (min-width: 992px){
    /*
      Define here the CSS styles applied only to Safari browsers
      (any version and any device)
     */
     .img_logo{
        margin-top: -18px;
    }
  }
  
  @media (min-width: 1200px){
      #nav li a.status {
        margin-left: 0;
      }
  }
}