html {
  font-size: 100%;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
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;
  margin-bottom: 1px;
}
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 {
  position: relative;
  height: 71px;
  padding: 0 20px;
}
#logo {
    height: 100%;
}
#header #logo img {
  max-height: 65px;
  max-width: 380px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.valign-helper {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}
#header p {
  width: 400px;
  margin: 0;
  padding: 10px 0 0;
}
#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 {
  padding: 20px 0;
  margin: 0 20px;
  height: auto !important;
  height: 350px;
  min-height: 350px;
}
#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;
  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 {
    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 !important;
    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;
}

/* Gurusoft customer portal */
:root {
  --gs-bg: #0b0f14;
  --gs-panel: #121820;
  --gs-panel-2: #18212b;
  --gs-line: #2b3846;
  --gs-text: #edf3f8;
  --gs-muted: #a7b4c1;
  --gs-amber: #f2b84b;
  --gs-cyan: #57c7d9;
}

body {
  background: var(--gs-bg);
  color: var(--gs-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body,
input,
select,
textarea {
  color: var(--gs-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--gs-cyan);
}

#container {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 28px auto 12px;
  background: var(--gs-panel);
  border: 1px solid var(--gs-line);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

#header {
  height: 92px;
  padding: 0 32px;
  background: var(--gs-panel);
  border-bottom: 1px solid var(--gs-line);
}

#logo {
  display: inline-flex;
  width: 390px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  color: var(--gs-text);
  text-decoration: none;
  line-height: 1;
}

#logo::before {
  content: "GURUSOFT";
  color: var(--gs-text);
  font-size: 30px;
  font-weight: 800;
}

#logo::after {
  content: "SUPPORT DESK";
  margin-top: 9px;
  color: var(--gs-amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

#header #logo img,
#header #logo .valign-helper {
  display: none;
}

#header > div:first-child {
  color: var(--gs-muted);
}

#nav {
  height: auto;
  margin: 0;
  padding: 0 22px;
  background: var(--gs-panel-2);
  border: 0;
  border-bottom: 1px solid var(--gs-line);
  box-shadow: none;
}

#nav li a,
.rtl #nav li a {
  height: 48px;
  margin: 0 4px 0 0;
  padding: 0 14px;
  color: var(--gs-muted);
  background-image: none !important;
  border-radius: 0;
  line-height: 48px;
  font-size: 13px;
  font-weight: 700;
}

#nav li a.active,
#nav li a:hover {
  color: var(--gs-text);
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--gs-amber);
}

#content {
  min-height: 460px;
  margin: 0;
  padding: 46px 34px 54px;
}

#landing_page h1,
#landing_page h2,
#landing_page h3,
h1,
h2,
h3 {
  color: var(--gs-text);
  font-weight: 760;
}

#landing_page h1 {
  max-width: 640px;
  margin-top: 4px;
  font-size: 36px;
}

#landing_page .main-content,
.main-content {
  width: min(650px, 100%);
  color: var(--gs-muted);
  font-size: 16px;
}

#landing_page .main-content {
  padding: 0;
  color: var(--gs-muted) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#landing_page .main-content p,
#landing_page .main-content div,
#landing_page .main-content span {
  color: var(--gs-muted) !important;
  background: transparent !important;
}

#landing_page .main-content h1,
#landing_page .main-content h2,
#landing_page .main-content h3 {
  color: var(--gs-text) !important;
  background: transparent !important;
}

.front-page-button {
  width: 280px;
}

.button,
.button:visited,
.green.button,
.green.button:visited,
.blue.button,
.blue.button:visited {
  min-height: 44px;
  padding: 0 20px;
  color: #111820;
  background: var(--gs-amber);
  border: 1px solid var(--gs-amber);
  border-radius: 4px;
  box-shadow: none;
  text-shadow: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 44px;
}

.green.button,
.green.button:visited {
  color: var(--gs-text);
  background: transparent;
  border-color: var(--gs-cyan);
}

.button:hover,
.green.button:hover,
.blue.button:hover {
  color: var(--gs-bg);
  background: #ffd47d;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  min-height: 42px;
  box-sizing: border-box;
  color: var(--gs-text);
  background: #0d131a;
  border: 1px solid #3a4857;
  border-radius: 4px;
}

textarea {
  min-height: 120px;
  padding: 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gs-cyan);
  box-shadow: 0 0 0 3px rgba(87, 199, 217, 0.18);
  outline: none;
}

table,
.thread-entry,
.freetext-files,
.dialog {
  color: var(--gs-text);
  background: var(--gs-panel-2);
  border-color: var(--gs-line);
}

th,
td,
.thread-entry .header,
.thread-entry .thread-body {
  border-color: var(--gs-line) !important;
}

.freetext-files {
  background: var(--gs-panel-2);
}

#clientLogin,
#reply,
.sidebar .content {
  color: var(--gs-text);
  background-color: var(--gs-panel-2);
  border-color: var(--gs-line);
  box-shadow: none;
}

#clientLogin {
  background-image: none;
}

#clientLogin .instructions,
#clientLogin p,
#clientLogin label,
#reply,
.sidebar .content {
  color: var(--gs-muted);
}

.login-box {
  box-shadow: 1px 0 0 var(--gs-line);
}

#clientLogin input[type="submit"] {
  min-height: 40px;
  padding: 0 18px;
  color: #111820;
  background: var(--gs-amber);
  border: 1px solid var(--gs-amber);
  border-radius: 4px;
  font-weight: 800;
}

#clientLogin input[type="text"],
#clientLogin input[type="password"],
#clientLogin input[type="email"],
#clientLogin input[type="tel"],
#ticketForm input[type="text"],
#ticketForm input[type="password"],
#ticketForm input[type="email"],
#ticketForm input[type="tel"],
#clientLogin select,
#ticketForm select,
#clientLogin textarea,
#ticketForm textarea {
  color: var(--gs-text) !important;
  -webkit-text-fill-color: var(--gs-text);
  background: #0d131a !important;
  border-color: #3a4857 !important;
}

#clientLogin input::placeholder,
#ticketForm input::placeholder,
#clientLogin textarea::placeholder,
#ticketForm textarea::placeholder {
  color: #8393a3 !important;
  -webkit-text-fill-color: #8393a3;
  opacity: 1;
}

#msg_error,
#msg_warning,
#msg_info,
#msg_notice,
.warning-banner {
  height: auto;
  min-height: 20px;
  box-sizing: border-box;
  color: var(--gs-text) !important;
  text-shadow: none;
}

#msg_error {
  color: #ffe8eb !important;
  background-color: #3a171d !important;
  border-color: #b64f5d !important;
}

#msg_warning,
.warning-banner {
  color: #fff2cf !important;
  background-color: #3a2d12 !important;
  border-color: #b98a2f !important;
}

#msg_info,
#msg_notice {
  color: #e5faff !important;
  background-color: #12323a !important;
  border-color: #3b92a2 !important;
}

#footer,
#footer a {
  color: #7f8c99;
}

#footer #poweredBy {
  opacity: 0.45;
  filter: grayscale(1);
}

@media (max-width: 760px) {
  #container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-width: 0;
  }

  #header {
    height: 78px;
    padding: 0 18px;
  }

  #logo {
    width: 220px;
  }

  #logo::before {
    font-size: 24px;
  }

  #nav {
    overflow-x: auto;
    padding: 0 8px;
  }

  #nav li a,
  .rtl #nav li a {
    padding: 0 10px;
    font-size: 12px;
  }

  #content {
    padding: 30px 18px 42px;
  }

  #landing_page h1 {
    font-size: 30px;
  }

  .front-page-button,
  .main-content {
    float: none !important;
    width: 100%;
  }
}

/* Gurusoft customer portal, polished application shell */
:root {
  --gs-bg: #071018;
  --gs-surface: #0d1721;
  --gs-surface-raised: #121f2b;
  --gs-surface-soft: #172634;
  --gs-line: #293b4b;
  --gs-line-strong: #3c5264;
  --gs-text: #f5f8fb;
  --gs-muted: #aab8c5;
  --gs-subtle: #7e91a2;
  --gs-amber: #f4b642;
  --gs-amber-hover: #ffd276;
  --gs-cyan: #53c8d8;
  --gs-green: #55c991;
  --gs-danger: #ff8793;
  --gs-focus: rgba(83, 200, 216, 0.22);
  color-scheme: dark;
}

html {
  background: var(--gs-bg);
}

body {
  min-width: 320px;
  background: var(--gs-bg);
  color: var(--gs-text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gs-amber);
}

a {
  color: var(--gs-cyan);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

a:hover {
  color: #8be4ef;
}

#container {
  width: min(1240px, calc(100% - 40px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: hidden;
  background: var(--gs-surface);
  border: 1px solid var(--gs-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 34px;
  background: #0b151f;
  border-bottom: 1px solid var(--gs-line);
}

#logo {
  order: 1;
  width: auto;
  min-width: 235px;
}

#logo::before {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

#logo::after {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 2px;
}

#header .pull-right {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  float: none;
}

#header .pull-right p {
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--gs-muted);
  font-size: 13px;
}

#header .pull-right a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: var(--gs-text);
  text-decoration: none;
  border-radius: 4px;
}

#header .pull-right a:hover {
  color: var(--gs-amber-hover);
  background: var(--gs-surface-soft);
}

#nav {
  display: flex;
  min-height: 54px;
  padding: 0 22px;
  overflow-x: auto;
  background: var(--gs-surface-raised);
  border-bottom: 1px solid var(--gs-line);
}

#nav li {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

#nav li a,
.rtl #nav li a {
  display: inline-flex;
  align-items: center;
  height: 54px;
  margin: 0 2px;
  padding: 0 16px;
  color: var(--gs-muted);
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

#nav li a.active,
#nav li a:hover {
  color: var(--gs-text);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 -3px 0 var(--gs-amber);
}

#content {
  min-height: 540px;
  padding: 48px 38px 64px;
}

h1,
h2,
h3,
h4,
h5,
h6,
#landing_page h1,
#landing_page h2,
#landing_page h3 {
  color: var(--gs-text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
}

p {
  color: var(--gs-muted);
}

/* Authentication */
.auth-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1fr);
  gap: clamp(44px, 7vw, 96px);
  max-width: 990px;
  margin: 14px auto 0;
  align-items: center;
}

.auth-intro {
  padding: 18px 0;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gs-amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gs-amber);
}

.auth-intro h1 {
  max-width: 500px;
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.auth-intro > p {
  max-width: 510px;
  margin: 0;
  color: var(--gs-muted);
  font-size: 16px;
}

.auth-promise {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  color: var(--gs-muted);
  border-top: 1px solid var(--gs-line);
  font-size: 13px;
}

.auth-promise i {
  margin-top: 3px;
  color: var(--gs-green);
  font-size: 16px;
}

#clientLogin.auth-card {
  display: block;
  width: auto;
  padding: 34px;
  color: var(--gs-text);
  background: var(--gs-surface-raised);
  border: 1px solid var(--gs-line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}

.auth-card-heading {
  margin-bottom: 26px;
}

.auth-card-heading h2 {
  margin: 0 0 6px;
  font-size: 23px;
}

.auth-card-heading p {
  margin: 0;
  color: var(--gs-muted);
  font-size: 14px;
}

.auth-field + .auth-field {
  margin-top: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--gs-text);
  font-size: 13px;
  font-weight: 700;
}

#clientLogin .auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
}

.auth-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.auth-submit-row input[type="submit"] {
  min-width: 130px;
}

.auth-submit-row a {
  font-size: 13px;
  font-weight: 700;
}

.auth-secondary {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  padding-top: 23px;
  color: var(--gs-muted);
  border-top: 1px solid var(--gs-line);
  font-size: 13px;
}

.auth-secondary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.auth-secondary a {
  flex: 0 0 auto;
  font-weight: 700;
}

.auth-inline-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #ffe8eb;
  background: #35171d;
  border: 1px solid #8f3e4a;
  border-radius: 6px;
  font-size: 13px;
}

.auth-inline-error i {
  margin-right: 7px;
  color: var(--gs-danger);
}

.auth-inline-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #e5faff;
  background: #102d35;
  border: 1px solid #347f8c;
  border-radius: 6px;
  font-size: 13px;
}

.auth-help-line {
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
}

.auth-help-line a {
  margin-left: 6px;
  font-weight: 700;
}

/* Account, recovery, and profile forms */
.portal-page-heading {
  max-width: 820px;
  margin: 0 auto 26px;
}

.portal-page-heading h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.portal-page-heading p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
}

.portal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gs-amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.portal-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gs-amber);
}

.portal-form-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 32px;
  box-sizing: border-box;
  color: var(--gs-text);
  background: var(--gs-surface-raised);
  border: 1px solid var(--gs-line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.portal-form-table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
}

.portal-form-table td {
  height: auto !important;
  padding: 6px 9px;
  color: var(--gs-muted);
  vertical-align: top;
}

.portal-form-table td:first-child:not([colspan]) {
  width: 31%;
  padding-top: 15px;
  color: var(--gs-text);
  font-size: 13px;
  font-weight: 700;
}

.portal-form-table td[colspan="2"] {
  padding: 12px 0 2px;
}

.portal-form-table h3,
.portal-form-table .form-header {
  margin: 0;
  color: var(--gs-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.portal-form-table hr {
  margin: 8px 0 17px;
  border: 0;
  border-top: 1px solid var(--gs-line);
}

.portal-form-table input[type="text"],
.portal-form-table input[type="password"],
.portal-form-table input[type="email"],
.portal-form-table input[type="tel"],
.portal-form-table select,
.portal-form-table textarea,
.portal-form-table .select2-container {
  width: 100% !important;
  max-width: 520px;
}

.portal-form-table select.select2-hidden-accessible {
  width: 1px !important;
  height: 1px !important;
  min-height: 1px;
  padding: 0 !important;
  border: 0 !important;
}

.portal-form-card .select2-container--default .select2-selection--single {
  height: 44px;
  background: #09131d;
  border: 1px solid var(--gs-line-strong);
  border-radius: 5px;
}

.portal-form-card .select2-container--default.select2-container--focus .select2-selection--single,
.portal-form-card .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--gs-cyan);
  box-shadow: 0 0 0 3px var(--gs-focus);
}

.portal-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 38px 0 12px;
  color: var(--gs-text);
  line-height: 42px;
}

.portal-form-card .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #8093a4;
}

.portal-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  width: 34px;
  height: 42px;
}

.select2-container--default .select2-dropdown {
  color: var(--gs-text);
  background: var(--gs-surface-raised);
  border-color: var(--gs-line-strong);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  color: var(--gs-text);
  background: #09131d;
  border-color: var(--gs-line-strong);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  color: var(--gs-text);
  background: var(--gs-surface-soft);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  color: #111820;
  background: var(--gs-amber);
}

.portal-form-card .action-button {
  min-height: 38px;
  margin: 7px 0 0 8px;
  padding: 0 13px;
  line-height: 36px;
}

.portal-form-table .error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.portal-form-table input[name$="-ext"] {
  width: 90px !important;
  margin-left: 6px;
}

.portal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--gs-line);
}

input.portal-secondary-action {
  color: var(--gs-text) !important;
  background: transparent !important;
  border-color: var(--gs-line-strong) !important;
}

input.portal-secondary-action:hover {
  color: var(--gs-text) !important;
  background: var(--gs-surface-soft) !important;
  border-color: var(--gs-cyan) !important;
}

.portal-success-panel {
  max-width: 620px;
  margin: 24px auto;
  padding: 42px;
  box-sizing: border-box;
  text-align: center;
  background: var(--gs-surface-raised);
  border: 1px solid var(--gs-line-strong);
  border-radius: 8px;
}

.portal-success-panel .portal-kicker {
  justify-content: center;
}

.portal-success-panel h1 {
  margin-top: 0;
}

.portal-success-panel p {
  max-width: 480px;
  margin: 0 auto 24px;
}

.portal-success-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gs-bg);
  background: var(--gs-green);
  border-radius: 50%;
  font-size: 21px;
}

.portal-success-panel .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Controls, including untouched and browser-autofilled fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input:not([type]),
select,
textarea,
#clientLogin input[type="text"],
#clientLogin input[type="password"],
#ticketForm input[type="text"],
#ticketForm input[type="password"],
#ticketForm input[type="email"],
#ticketForm input[type="tel"],
#ticketForm select,
#ticketForm textarea {
  min-height: 44px;
  padding: 9px 12px;
  box-sizing: border-box;
  color: var(--gs-text) !important;
  -webkit-text-fill-color: var(--gs-text) !important;
  caret-color: var(--gs-text);
  background-color: #09131d !important;
  background-image: none !important;
  border: 1px solid var(--gs-line-strong) !important;
  border-radius: 5px;
  box-shadow: none !important;
  font: inherit;
  line-height: 1.35;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
#clientLogin input:-webkit-autofill,
#clientLogin input:-webkit-autofill:hover,
#clientLogin input:-webkit-autofill:focus {
  color: var(--gs-text) !important;
  -webkit-text-fill-color: var(--gs-text) !important;
  caret-color: var(--gs-text) !important;
  -webkit-box-shadow: 0 0 0 1000px #09131d inset !important;
  box-shadow: 0 0 0 1000px #09131d inset !important;
  transition: background-color 9999s ease-out 0s;
}

input::placeholder,
textarea::placeholder,
#clientLogin input::placeholder,
#ticketForm input::placeholder,
#ticketForm textarea::placeholder {
  color: #8093a4 !important;
  -webkit-text-fill-color: #8093a4 !important;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus,
#clientLogin input:focus,
#ticketForm input:focus,
#ticketForm select:focus,
#ticketForm textarea:focus {
  background-color: #0a1722 !important;
  border-color: var(--gs-cyan) !important;
  box-shadow: 0 0 0 3px var(--gs-focus) !important;
  outline: none;
}

select option {
  color: var(--gs-text);
  background: var(--gs-surface-raised);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--gs-cyan);
}

input[type="submit"],
input[type="button"],
button,
.button,
.button:visited,
.blue.button,
.blue.button:visited {
  min-height: 44px;
  padding: 0 20px;
  box-sizing: border-box;
  color: #111820 !important;
  background: var(--gs-amber) !important;
  border: 1px solid var(--gs-amber) !important;
  border-radius: 5px;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 42px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover,
.blue.button:hover {
  color: #111820 !important;
  background: var(--gs-amber-hover) !important;
  border-color: var(--gs-amber-hover) !important;
}

input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gs-focus);
  outline-offset: 3px;
}

input[type="reset"],
.green.button,
.green.button:visited {
  min-height: 44px;
  padding: 0 18px;
  color: var(--gs-text) !important;
  background: transparent !important;
  border: 1px solid var(--gs-line-strong) !important;
  border-radius: 5px;
  box-shadow: none !important;
  text-shadow: none !important;
  font-weight: 750;
  cursor: pointer;
}

input[type="reset"]:hover,
.green.button:hover {
  color: var(--gs-text) !important;
  background: var(--gs-surface-soft) !important;
  border-color: var(--gs-cyan) !important;
}

/* Page panels, forms and ticket data */
.well,
.search.well,
#ticketForm,
#reply,
.sidebar .content,
.freetext-files,
.dialog {
  color: var(--gs-text);
  background: var(--gs-surface-raised) !important;
  border: 1px solid var(--gs-line) !important;
  border-radius: 7px;
  box-shadow: none !important;
}

#ticketForm {
  margin-top: 28px;
  padding: 28px;
}

#ticketForm table {
  width: 100% !important;
  background: transparent;
}

#ticketForm td {
  padding: 9px 10px;
  color: var(--gs-muted);
}

#ticketForm td:first-child:not([colspan]) {
  width: 28%;
  padding-top: 16px;
  color: var(--gs-text);
  font-size: 13px;
  font-weight: 700;
}

#ticketForm input[type="text"],
#ticketForm input[type="email"],
#ticketForm input[type="tel"],
#ticketForm select,
#ticketForm textarea {
  width: min(100%, 640px) !important;
}

#ticketForm hr {
  margin: 16px 0;
  border-color: var(--gs-line);
}

#ticketForm .buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 24px 0 0;
}

.form-header,
.form-header b,
label,
legend {
  color: var(--gs-text);
}

.error,
font.error {
  color: var(--gs-danger) !important;
}

.search.well {
  margin-bottom: 28px;
  padding: 16px;
}

.search.well form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search.well .pull-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#ticketTable {
  width: 100% !important;
  overflow: hidden;
  background: var(--gs-surface-raised);
  border: 1px solid var(--gs-line);
  border-radius: 7px;
  border-collapse: separate;
  border-spacing: 0;
}

#ticketTable caption {
  padding: 13px 16px;
  color: var(--gs-muted);
  background: #0b151f;
  border: 1px solid var(--gs-line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#ticketTable th {
  padding: 13px 15px;
  color: var(--gs-subtle);
  background: #101c27;
  border-bottom: 1px solid var(--gs-line) !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#ticketTable th a {
  color: inherit;
  text-decoration: none;
}

#ticketTable td {
  padding: 15px;
  color: var(--gs-muted);
  background: var(--gs-surface-raised);
  border-bottom: 1px solid var(--gs-line) !important;
}

#ticketTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

#ticketTable tbody tr:hover td {
  background: var(--gs-surface-soft);
}

#ticketTable td a {
  color: var(--gs-text);
  font-weight: 700;
}

.states a.state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--gs-muted);
  text-decoration: none;
  border: 1px solid var(--gs-line);
  border-radius: 4px;
}

.states a.state.active {
  color: var(--gs-text);
  background: var(--gs-surface-soft);
  border-color: var(--gs-cyan);
}

.thread-entry {
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--gs-text);
  background: var(--gs-surface-raised) !important;
  border: 1px solid var(--gs-line) !important;
  border-radius: 7px;
}

.thread-entry .header {
  padding: 14px 18px;
  background: #101c27 !important;
  border-bottom: 1px solid var(--gs-line) !important;
}

.thread-entry .thread-body {
  padding: 20px !important;
  color: var(--gs-text);
  background: var(--gs-surface-raised) !important;
}

.thread-entry .thread-body p,
.thread-entry .thread-body div,
.thread-entry .thread-body span {
  color: inherit;
}

.freetext-files {
  padding: 14px;
}

.dropzone,
.filedrop,
.upload-dropzone {
  color: var(--gs-muted) !important;
  background: #09131d !important;
  border-color: var(--gs-line-strong) !important;
}

/* Rich text editor uses a white document surface, so writing stays true black. */
.redactor-box.redactor-styles-on,
.redactor-box .redactor-in {
  background: #ffffff !important;
}

.redactor-box .redactor-in,
.redactor-box .redactor-in p,
.redactor-box .redactor-in div,
.redactor-box .redactor-in span,
.redactor-box .redactor-in li,
.redactor-box .redactor-in blockquote,
.redactor-box .redactor-in td,
.redactor-box .redactor-in th,
.redactor-box .redactor-in h1,
.redactor-box .redactor-in h2,
.redactor-box .redactor-in h3,
.redactor-box .redactor-in h4,
.redactor-box .redactor-in h5,
.redactor-box .redactor-in h6 {
  color: #111820 !important;
  -webkit-text-fill-color: #111820 !important;
}

.redactor-box .redactor-placeholder::before,
.redactor-box .redactor-in figcaption[placeholder]:empty::before {
  color: #5f6b76 !important;
  -webkit-text-fill-color: #5f6b76 !important;
}

.redactor-box .redactor-in a {
  color: #126a9a !important;
  -webkit-text-fill-color: #126a9a !important;
}

/* Ticket summary data stays fully legible inside the dark portal. */
#ticketInfo {
  width: 100% !important;
  color: var(--gs-text);
  border-collapse: separate;
  border-spacing: 0;
}

#ticketInfo > tbody > tr > td {
  padding: 8px 0;
  vertical-align: top;
  background: transparent;
}

#ticketInfo > tbody > tr:nth-child(2) > td:first-child {
  padding-right: 7px;
}

#ticketInfo > tbody > tr:nth-child(2) > td:last-child {
  padding-left: 7px;
}

#ticketInfo .infoTable,
#ticketInfo .custom-data {
  width: 100% !important;
  margin: 0;
  overflow: hidden;
  background: var(--gs-surface-raised);
  border: 1px solid var(--gs-line);
  border-radius: 6px;
  border-collapse: separate;
  border-spacing: 0;
}

#ticketInfo .custom-data {
  margin-top: 6px;
}

#ticketInfo .infoTable .headline,
#ticketInfo .custom-data .headline {
  padding: 11px 13px;
  color: var(--gs-text) !important;
  -webkit-text-fill-color: var(--gs-text) !important;
  background: #101c27 !important;
  border: 0;
  border-bottom: 1px solid var(--gs-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#ticketInfo .infoTable th,
#ticketInfo .custom-data th {
  width: 34%;
  padding: 10px 13px;
  color: var(--gs-muted) !important;
  -webkit-text-fill-color: var(--gs-muted) !important;
  background: var(--gs-surface-soft) !important;
  border: 0;
  border-bottom: 1px solid var(--gs-line);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

#ticketInfo .infoTable td:not(.headline),
#ticketInfo .custom-data td:not(.headline) {
  padding: 10px 13px;
  color: var(--gs-text) !important;
  -webkit-text-fill-color: var(--gs-text) !important;
  background: var(--gs-surface-raised) !important;
  border: 0;
  border-bottom: 1px solid var(--gs-line);
  font-size: 14px;
}

#ticketInfo .infoTable tr:last-child th,
#ticketInfo .infoTable tr:last-child td,
#ticketInfo .custom-data tr:last-child th,
#ticketInfo .custom-data tr:last-child td {
  border-bottom: 0;
}

#ticketInfo .action-button {
  min-height: 32px;
  padding: 0 11px;
  color: var(--gs-text) !important;
  background: var(--gs-surface-soft) !important;
  border: 1px solid var(--gs-line-strong) !important;
  border-radius: 4px;
  line-height: 30px;
}

#ticketInfo .action-button:hover {
  color: #111820 !important;
  background: var(--gs-amber) !important;
  border-color: var(--gs-amber) !important;
}

/* Landing page */
#landing_page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 54px;
  align-items: start;
}

#landing_page .main-content {
  width: auto;
  min-width: 0;
}

#landing_page .sidebar {
  grid-column: 2;
  grid-row: 1;
  float: none;
  width: auto;
  margin: 0;
}

#landing_page .main-content {
  grid-column: 1;
  grid-row: 1;
}

.front-page-button {
  width: auto;
  text-align: left;
}

.front-page-button p {
  margin: 0 0 10px;
}

.front-page-button .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar .content {
  margin-top: 18px;
  padding: 18px;
}

.sidebar section .header {
  margin-bottom: 12px;
  color: var(--gs-text);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sidebar section > div:not(.header) + div {
  margin-top: 9px;
}

.search-form {
  margin-bottom: 30px;
  padding: 0;
}

.search-form form {
  display: flex;
  gap: 10px;
}

.search-form .search {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.featured-category.front-page {
  background: var(--gs-surface-raised);
  border-color: var(--gs-line);
  border-radius: 7px;
}

/* Notices and dialogs */
#msg_error,
#msg_warning,
#msg_info,
#msg_notice,
.error_bar,
.warning_bar,
.notice_bar,
.warning-banner {
  height: auto;
  min-height: 22px;
  margin-bottom: 20px;
  padding: 12px 14px;
  box-sizing: border-box;
  background-image: none !important;
  border-radius: 6px;
  line-height: 1.45;
  text-shadow: none;
}

#msg_error,
.error_bar {
  color: #ffe8eb !important;
  background-color: #35171d !important;
  border-color: #8f3e4a !important;
}

#msg_warning,
.warning_bar,
.warning-banner {
  color: #fff2cf !important;
  background-color: #332812 !important;
  border-color: #98752b !important;
}

#msg_info,
#msg_notice,
.notice_bar {
  color: #e5faff !important;
  background-color: #102d35 !important;
  border-color: #347f8c !important;
}

#footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 34px;
  box-sizing: border-box;
  color: var(--gs-subtle);
  background: #0b151f;
  border-top: 1px solid var(--gs-line);
  font-size: 12px;
}

#footer p {
  margin: 0;
  color: inherit;
}

#footer #poweredBy {
  display: none;
}

#loading {
  height: auto;
  padding: 22px;
  color: var(--gs-text);
  background: var(--gs-surface-raised);
  border: 1px solid var(--gs-line-strong);
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

#loading h4,
#loading p {
  color: var(--gs-text);
}

@media (max-width: 900px) {
  #container {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  #content {
    padding: 38px 26px 52px;
  }

  .auth-page {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 620px;
  }

  .auth-intro {
    padding-bottom: 0;
  }

  .auth-intro h1 {
    font-size: 36px;
  }

  .auth-promise {
    margin-top: 22px;
    padding-top: 18px;
  }

  #landing_page {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  #landing_page .main-content,
  #landing_page .sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  #landing_page .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #landing_page .sidebar .content {
    margin-top: 0;
  }

  #ticketTable {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 650px) {
  #container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  #header {
    height: auto;
    min-height: 76px;
    padding: 14px 18px;
  }

  #logo {
    flex: 0 0 155px;
    min-width: 155px;
  }

  #logo::before {
    font-size: 23px;
  }

  #logo::after {
    font-size: 9px;
    white-space: nowrap;
  }

  #header .pull-right p {
    font-size: 0;
  }

  #header .pull-right p:last-child {
    display: none;
  }

  #header .pull-right a {
    min-height: 32px;
    padding: 0 7px;
    font-size: 12px;
  }

  #nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 58px;
    padding: 0 4px;
    overflow-x: visible;
  }

  #nav li {
    min-width: 0;
  }

  #nav li a,
  .rtl #nav li a {
    width: 100%;
    height: 58px;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  #content {
    padding: 30px 18px 44px;
  }

  h1 {
    font-size: 27px;
  }

  .auth-intro h1 {
    font-size: 32px;
  }

  #clientLogin.auth-card {
    padding: 24px 20px;
  }

  .auth-submit-row,
  .auth-secondary div {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-submit-row input[type="submit"] {
    width: 100%;
  }

  .auth-secondary div {
    gap: 3px;
  }

  .auth-help-line {
    margin-top: 28px;
  }

  .portal-page-heading h1 {
    font-size: 29px;
  }

  .portal-form-card,
  .portal-success-panel {
    padding: 24px 20px;
  }

  .portal-form-table,
  .portal-form-table tbody,
  .portal-form-table tr,
  .portal-form-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .portal-form-table td:first-child:not([colspan]) {
    width: 100%;
    padding: 10px 9px 0;
  }

  .portal-form-table td + td {
    padding-top: 2px;
  }

  .portal-form-table input[name$="-ext"] {
    display: block;
    width: 100% !important;
    max-width: none;
    margin: 7px 0 0;
  }

  .portal-form-card .action-button {
    width: 100%;
    margin: 8px 0 0;
  }

  .portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-actions input {
    width: 100%;
  }

  #landing_page .sidebar {
    grid-template-columns: 1fr;
  }

  .search-form form,
  .search.well form,
  #ticketForm .buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .search.well .pull-right {
    margin-left: 0;
  }

  #ticketForm {
    padding: 20px 14px;
  }

  #ticketInfo > tbody > tr:nth-child(2) > td {
    display: block;
    width: 100% !important;
    padding: 6px 0 !important;
    box-sizing: border-box;
  }

  #ticketInfo h1 {
    font-size: 25px;
  }

  #ticketInfo h1 .pull-right {
    display: flex;
    float: none;
    gap: 7px;
    margin-top: 12px;
  }

  #ticketInfo .infoTable th,
  #ticketInfo .custom-data th {
    width: 40%;
  }

  #ticketForm tr,
  #ticketForm td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  #ticketForm td:first-child:not([colspan]) {
    padding-bottom: 2px;
  }

  #footer {
    min-height: 58px;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
