*,
*::before,
*::after {
  box-sizing: border-box;
}

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.6;
  padding: 0;
}

body,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
}

/* Global input/select/textarea base styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #873E6C;
  box-shadow: 0 0 0 3px rgba(135, 62, 108, 0.1);
}

b,
strong {
  font-weight: 600;
}

blockquote {
  margin: 1em 40px;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.5em 0;
  padding: 0;
}

small {
  font-size: 85%;
}

ul,
ol {
  margin: 1em 0;
  padding: 0 0 0 30px;
}

img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

form {
  margin: 0;
}

form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

label {
  cursor: pointer;
}

input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
}

input {
  line-height: normal;
}

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: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f5f9;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #873E6C;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #6B2E55;
  text-decoration: underline;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.centered {
  text-align: center;
}

.clear {
  clear: both;
}

.hidden {
  display: none;
}

.faded {
  color: #64748b;
}

.faded .avatar {
  width: 15px;
  border-radius: 50%;
  margin-right: 5px;
}

/* Pagination */
#pagination {
  border: 0;
  margin: 0 0 40px 0;
  padding: 0;
  text-align: center;
}

#pagination li {
  display: inline-block;
  margin: 0 2px;
}

#pagination li a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
  background: #ffffff;
}

#pagination li a:hover {
  background: #873E6C;
  color: #fff;
  border-color: #873E6C;
}

#pagination .previousOff,
#pagination .nextOff {
  color: #94a3b8;
  display: inline-block;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
}

#pagination .next a,
#pagination .previous a {
  font-weight: 600;
}

#pagination .active {
  background: #873E6C;
  color: #fff;
  border-color: #873E6C;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

/* Alerts & Notices */
#msg_notice,
#msg_warning,
#msg_error {
  margin: 0 0 16px 0;
  padding: 12px 16px 12px 44px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  border-left: 4px solid transparent;
}

#msg_notice::before,
#msg_warning::before,
#msg_error::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
}

#msg_notice {
  background: #ecfdf5;
  border-left-color: #10B981;
  color: #065f46;
}

#msg_notice::before {
  content: "✓";
  color: #10B981;
}

#msg_warning {
  background: #fffbeb;
  border-left-color: #F59E0B;
  color: #92400e;
}

#msg_warning::before {
  content: "!";
  color: #F59E0B;
}

#msg_error {
  background: #fef2f2;
  border-left-color: #EF4444;
  color: #991b1b;
}

#msg_error::before {
  content: "✗";
  color: #EF4444;
}

.warning {
  background: #fffbeb;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #F59E0B;
}

.warning strong {
  text-transform: uppercase;
  color: #92400e;
}

.error {
  color: #EF4444;
}

.error input {
  border: 1px solid #EF4444 !important;
}

/* Base input button styling */
input[type="submit"],
input[type="reset"],
input[type="button"] {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

input[type="submit"] {
  background: linear-gradient(135deg, #873E6C, #A55A84);
  color: #fff !important;
}

input[type="submit"]:hover {
  background: linear-gradient(135deg, #6B2E55, #873E6C);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

input[type="reset"],
input[type="button"] {
  background: #f1f5f9;
  color: #64748b;
}

input[type="reset"]:hover,
input[type="button"]:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Buttons */
.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(135deg, #873E6C, #A55A84);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}

.button:hover {
  background: linear-gradient(135deg, #6B2E55, #873E6C);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color: #fff;
  text-decoration: none;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button.green,
.button.green:visited {
  background: linear-gradient(135deg, #059669, #10B981);
}

.button.green:hover {
  background: linear-gradient(135deg, #047857, #059669);
}

.button.blue,
.button.blue:visited {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
}

.button.blue:hover {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
}

.button.red,
.button.red:visited {
  background: linear-gradient(135deg, #DC2626, #EF4444);
}

.button.red:hover {
  background: linear-gradient(135deg, #B91C1C, #DC2626);
}

.button.gray,
.button.gray:visited {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}

.button.gray:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: none;
  box-shadow: none;
}

.button.outline,
.button.outline:visited {
  background: transparent;
  color: #873E6C;
  border: 1.5px solid #873E6C;
  box-shadow: none;
}

.button.outline:hover {
  background: #eef2ff;
  transform: none;
  box-shadow: none;
  color: #873E6C;
}

/* Badge / label styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-open {
  background: #dbeafe;
  color: #1e40af;
}

.badge-closed {
  background: #e2e8f0;
  color: #475569;
}

.badge-resolved {
  background: #d1fae5;
  color: #065f46;
}

.badge-overdue {
  background: #fef2f2;
  color: #991b1b;
}

/* Message info */
#msg_info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 12px;
  color: #1e40af;
  font-size: 14px;
}

#msg_info i {
  font-size: 24px;
  color: #3B82F6;
  flex-shrink: 0;
}

#msg_info strong {
  color: #1e3a8a;
}

#msg_info a {
  color: #2563EB;
  text-decoration: underline;
}

/* Search well */
.search.well {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* States filter */
.states small {
  font-size: 13px;
}

.states .state {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.states .state:hover {
  background: #f1f5f9;
  color: #873E6C;
  text-decoration: none;
}

.states .state.active {
  background: #873E6C;
  color: #fff;
}

/* Card */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
.sidebar section {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sidebar section .header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar section .header i {
  color: #873E6C;
  font-size: 15px;
}

.sidebar section>div:not(.header) {
  padding: 8px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar section>div:not(.header):last-child {
  border-bottom: none;
}

.sidebar section>div:not(.header) a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar section>div:not(.header) a i {
  color: #A55A84;
  font-size: 14px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar section>div:not(.header) a:hover {
  color: #873E6C;
}

.front-page-button {
  margin-bottom: 20px;
}

.front-page-button .button {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
}

.front-page-button .button i {
  font-size: 18px;
}

/* Utility classes */
.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

.flush-left {
  margin-left: 0;
}

.flush-right {
  margin-right: 0;
}

/* Alert bars (from osticket.css - override to be consistent) */
.notice_bar,
.warning_bar,
.error_bar {
  margin: 0 0 16px 0;
  padding: 12px 16px 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid transparent;
  height: auto !important;
  background-image: none;
}

.notice_bar {
  background: #ecfdf5;
  border-left-color: #10B981;
  color: #065f46;
}

.warning_bar {
  background: #fffbeb;
  border-left-color: #F59E0B;
  color: #92400e;
}

.error_bar {
  background: #fef2f2;
  border-left-color: #EF4444;
  color: #991b1b;
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

body {
  background: #f1f5f9;
  min-height: 100vh;
}

#client-wrap {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Client Sidebar */
#client-sidebar {
  width: 250px;
  min-width: 250px;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

#client-sidebar .sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
  min-height: 72px;
}

#client-sidebar .sidebar-header #logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  outline: none;
}

#client-sidebar .sidebar-header #logo img {
  max-height: 42px;
  max-width: 180px;
  height: auto;
  width: auto;
  vertical-align: middle;
}

#client-sidebar nav {
  flex: 1;
}

#client-sidebar nav #nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: block;
  border-bottom: none;
}

#client-sidebar nav #nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#client-sidebar nav #nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: #64748b;
  font-size: 0.88em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  border-radius: 0;
}

#client-sidebar nav #nav li a i {
  font-size: 15px;
  width: 16px;
  text-align: center;
}

#client-sidebar nav #nav li a:hover {
  color: #873E6C;
  background: rgba(135, 62, 108, 0.08);
  text-decoration: none;
}

#client-sidebar nav #nav li a.active {
  color: #873E6C;
  background: rgba(135, 62, 108, 0.15);
  border-left-color: #873E6C;
  font-weight: 600;
}

#client-sidebar .sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
}

#client-sidebar .sidebar-footer .sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.85em;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

#client-sidebar .sidebar-footer .sidebar-user i {
  font-size: 14px;
}

#client-sidebar .sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #94a3b8;
  font-size: 0.82em;
  text-decoration: none;
  transition: color 0.15s ease;
}

#client-sidebar .sidebar-footer a i {
  font-size: 13px;
  width: 16px;
  text-align: center;
}

#client-sidebar .sidebar-footer a:hover {
  color: #873E6C;
  text-decoration: none;
}

/* Client Main Area */
#client-main {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#client-topbar {
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#client-topbar .sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

#client-topbar .sidebar-toggle:hover {
  background: #f1f5f9;
  color: #873E6C;
  border-color: #A55A84;
}

#client-topbar .topbar-title {
  font-size: 0.9em;
  color: #64748b;
  font-weight: 500;
}

/* Legacy: #container for backwards compat */
#container {
  width: 100%;
}

#header {
  display: none;
}

/* Toast */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 20px 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s ease;
  max-width: 400px;
}

.toast i {
  font-size: 18px;
  flex-shrink: 0;
}

.toast.toast-success {
  background: #ecfdf5;
  border-left: 4px solid #10B981;
  color: #065f46;
}

.toast.toast-success i {
  color: #10B981;
}

.toast.toast-error {
  background: #fef2f2;
  border-left: 4px solid #EF4444;
  color: #991b1b;
}

.toast.toast-error i {
  color: #EF4444;
}

.toast.toast-warning {
  background: #fffbeb;
  border-left: 4px solid #F59E0B;
  color: #92400e;
}

.toast.toast-warning i {
  color: #F59E0B;
}

.toast.toast-info {
  background: #eff6ff;
  border-left: 4px solid #3B82F6;
  color: #1e40af;
}

.toast.toast-info i {
  color: #3B82F6;
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

#content {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  width: 100%;
  min-height: 400px;
}

/* Thread entry with avatar */
.thread-entry.avatar {
  margin-left: 0;
  margin-right: 60px;
  position: relative;
}

.thread-entry.response.avatar {
  margin-left: 60px;
  margin-right: 0;
}

.thread-entry>.avatar {
  float: right;
  margin-left: 0;
  margin-right: -60px;
  width: 48px;
  height: 48px;
  border-radius: 12%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #873E6C;
  overflow: hidden;
}

.thread-entry.response>.avatar {
  float: left;
  margin-left: -60px;
  margin-right: 0;
}

.thread-entry>.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12%;
}

.thread-entry>.pull-right {
  float: right;
}

.thread-entry .header {
  padding: 5px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.thread-entry.avatar .header {
  position: relative;
  margin-top: 0;
}

.thread-entry .header .title {
  font-weight: 600;
  color: #1e293b;
}

.thread-entry .header .textra {
  margin-left: auto;
  font-size: 11px;
  display: block;
}

.thread-entry.message .header {
  background: #ffffff;
  color: #873e6c;
  border-radius: 12px 12px 0 0;
}

.thread-entry.response .header {
  background: #a97596;
  color: #ffffff;
  border-radius: 12px 12px 0 0;
}

.thread-entry.avatar .header::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -16px;
  left: auto;
  border: 8px solid transparent;
  border-left-color: inherit;
  border-right-color: transparent;
}

.thread-entry.avatar.message .header::before {
  border-left-color: #e2e8f0;
  border-right-color: transparent;
}

.thread-entry.response .thread-body {
  background: #a97596;
  color: #fff;
}

.thread-entry.avatar.response .header::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -16px;
  right: auto;
  border: 8px solid transparent;
  border-right-color: #a97596;
  border-left-color: transparent;
}

.thread-entry .thread-body {
  padding: 10px 15px;
}

.thread-entry.response .attachments a,
.thread-entry.response .filesize {
  color: #ffffff !important;
}


#footer {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

#footer a {
  color: #873E6C;
}

#footer p {
  margin: 4px 0;
}

#footer #poweredBy {
  display: none !important;
  width: 126px;
  height: 23px;
  outline: none;
  text-indent: -9999px;
  margin: 8px auto 0;
  background: url('../images/poweredby.png') top left no-repeat;
  background-size: contain;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

#footer #poweredBy:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  #client-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #client-sidebar.open {
    transform: translateX(0);
  }

  #client-main {
    margin-left: 0;
  }

  #client-topbar {
    padding: 0 16px;
  }

  #client-topbar .sidebar-toggle {
    display: block;
  }

  #client-topbar .topbar-title {
    display: none;
  }

  #content {
    padding: 16px;
  }

  #toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }

  #toast-container .toast {
    max-width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #client-sidebar {
    width: 220px;
    min-width: 220px;
  }

  #client-main {
    margin-left: 220px;
  }
}

#landing_page {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}

#landing_page>div {
  flex: 1;
  min-width: 280px;
}

#landing_page #new_ticket,
#landing_page #check_status {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px 32px 88px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#landing_page #new_ticket::before,
#landing_page #check_status::before {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-family: "FontAwesome";
}

#landing_page #new_ticket:hover,
#landing_page #check_status:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

#landing_page #new_ticket::before {
  content: "\f058";
  background: linear-gradient(135deg, #873E6C, #A55A84);
}

#landing_page #check_status::before {
  content: "\f0ae";
  background: linear-gradient(135deg, #A55A84, #A55A84);
}

/* Landing page FAQ */
#faq {
  clear: both;
  margin: 32px 0 0;
  padding: 0;
}

#faq>h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

#faq ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}

#faq ol li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#faq ol li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
  gap: 12px;
}

#faq ol li a::before {
  content: "\f15c";
  font-family: "FontAwesome";
  font-size: 18px;
  color: #A55A84;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

#faq ol li a:hover {
  background: #f8faff;
  border-color: #A55A84;
  color: #873E6C;
  text-decoration: none;
}

#faq .article-meta {
  padding: 12px 16px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  margin-top: 16px;
}

@media (max-width: 768px) {
  #landing_page {
    flex-direction: column;
  }

  #landing_page #new_ticket,
  #landing_page #check_status {
    padding: 24px 20px 24px 72px;
    min-height: 100px;
  }

  #landing_page #new_ticket::before,
  #landing_page #check_status::before {
    left: 16px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  #faq ol {
    grid-template-columns: 1fr;
  }
}

#kb {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

#kb>li {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  list-style: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#kb>li:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

#kb>li h4 {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

#kb>li h4 span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
}

#kb>li h4 a {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
}

#kb>li h4 a:hover {
  color: #873E6C;
}

#kb>li ul {
  margin: 0;
  padding: 0;
}

#kb>li ul li {
  list-style: none;
  margin: 4px 0;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#kb>li ul li::before {
  content: "\f15c";
  font-family: "FontAwesome";
  font-size: 14px;
  color: #A55A84;
  flex-shrink: 0;
}

#kb>li ul li a {
  color: #873E6C;
  font-size: 13px;
  text-decoration: none;
}

#kb>li ul li a:hover {
  text-decoration: underline;
}

#kb li i {
  display: none;
  /* replaced by grid card layout */
}

#kb-search {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#kb-search div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

#kb-search #query,
#kb-search #cid,
#kb-search #topic-id {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#kb-search #query:focus,
#kb-search #cid:focus,
#kb-search #topic-id:focus {
  outline: none;
  border-color: #A55A84;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#kb-search #query {
  width: 240px;
}

#kb-search #cid {
  width: 200px;
}

#kb-search #topic-id {
  flex: 1;
  min-width: 200px;
}

#kb-search #searchSubmit {
  margin: 0;
  padding: 8px 20px;
  background: linear-gradient(135deg, #873E6C, #A55A84);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

#kb-search #searchSubmit:hover {
  background: linear-gradient(135deg, #6B2E55, #873E6C);
}

#kb-search #breadcrumbs {
  color: #64748b;
  margin-bottom: 16px;
  font-size: 13px;
}

#kb-search #breadcrumbs a {
  color: #873E6C;
  text-decoration: none;
}

#kb-search #breadcrumbs a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #kb {
    grid-template-columns: 1fr;
  }

  #kb-search div {
    flex-direction: column;
    align-items: stretch;
  }

  #kb-search #query,
  #kb-search #cid,
  #kb-search #topic-id {
    width: 100%;
  }
}

#ticketForm,
#clientLogin {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ticket form table layout */
#ticketForm table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#ticketForm table td {
  padding: 4px 0;
  vertical-align: top;
}

#ticketForm table td:first-child {
  width: 160px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  padding-top: 8px;
}

#ticketForm table td:first-child .required {
  font-weight: 700;
}


#ticketForm .form-header {
  margin-bottom: 8px;
}

#ticketForm .form-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

/* UserForm div-based fields */
#ticketForm .form-field {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

#ticketForm .form-field label {
  display: block;
  width: 160px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  flex-shrink: 0;
}

#ticketForm .form-field label.required {
  font-weight: 700;
}

#ticketForm .form-field input,
#ticketForm .form-field select,
#ticketForm .form-field textarea {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: 1;
  min-width: 200px;
}

#ticketForm .form-field input:focus,
#ticketForm .form-field select:focus,
#ticketForm .form-field textarea:focus {
  outline: none;
  border-color: #873E6C;
  box-shadow: 0 0 0 3px rgba(135, 62, 108, 0.1);
}

/* Dynamic form td[colspan] fields */
#ticketForm table td[colspan] label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 4px;
}

#ticketForm table td[colspan] label.required {
  font-weight: 700;
}

#ticketForm table td[colspan] input,
#ticketForm table td[colspan] select,
#ticketForm table td[colspan] textarea {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

#ticketForm table td[colspan] input:focus,
#ticketForm table td[colspan] select:focus,
#ticketForm table td[colspan] textarea:focus {
  outline: none;
  border-color: #873E6C;
  box-shadow: 0 0 0 3px rgba(135, 62, 108, 0.1);
}

#ticketForm table td input[type="text"],
#ticketForm table td input[type="password"],
#ticketForm table td select,
#ticketForm table td textarea {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

#ticketForm table td input:focus,
#ticketForm table td select:focus,
#ticketForm table td textarea:focus {
  outline: none;
  border-color: #873E6C;
  box-shadow: 0 0 0 3px rgba(135, 62, 108, 0.1);
}

#ticketForm table td .select2-container {
  max-width: 400px;
}

#ticketForm table tr.captchaRow td {
  display: flex;
  align-items: center;
  gap: 12px;
}

#ticketForm table td .error {
  color: #EF4444;
  font-size: 13px;
  padding: 4px 0;
}

#ticketForm p.buttons {
  text-align: center;
  margin-top: 16px;
}

#ticketForm p.buttons input[type="submit"],
#ticketForm p.buttons input[type="reset"],
#ticketForm p.buttons input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 4px;
}

#ticketForm p.buttons input[type="submit"] {
  background: linear-gradient(135deg, #873E6C, #A55A84);
  color: #fff !important;
}

#ticketForm p.buttons input[type="submit"]:hover {
  background: linear-gradient(135deg, #6B2E55, #873E6C);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#ticketForm p.buttons input[type="reset"],
#ticketForm p.buttons input[type="button"] {
  background: #f1f5f9;
  color: #64748b;
}

#ticketForm p.buttons input[type="reset"]:hover,
#ticketForm p.buttons input[type="button"]:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Dropzone inside ticket form */
#ticketForm .filedrop {
  margin-top: 8px;
}

/* Redactor inside ticket form */
#ticketForm .redactor-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

#ticketForm>div {
  clear: both;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Check Ticket Status - stacked label/input layout */
#clientLogin .login-box>div {
  display: block;
  margin-bottom: 16px;
}

#clientLogin .login-box label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 4px;
}

#clientLogin .login-box input[type="text"],
#clientLogin .login-box input[type="password"] {
  display: block;
  width: 100%;
  max-width: 360px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #fff;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-top: 4px;
}

#clientLogin .login-box input:focus {
  outline: none;
  border-color: #873E6C;
  box-shadow: 0 0 0 3px rgba(135, 62, 108, 0.1);
}

#clientLogin .login-box p {
  margin-top: 16px;
}

/* Sign In form - preserve inline table-row/table-cell styles */
#clientLogin [style*="display:table-row"] {
  display: table-row !important;
}

#clientLogin [style*="display:table-cell"] {
  display: table-cell !important;
}

#ticketForm div label,
#clientLogin div label {
  display: block;
  width: 160px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  flex-shrink: 0;
}

#ticketForm div label.required,
#clientLogin div label.required {
  font-weight: 700;
}

#ticketForm div label.required::after,
#clientLogin div label.required::after {
  content: " *";
  color: #EF4444;
}

#ticketForm div input,
#clientLogin div input,
#ticketForm div textarea,
#clientLogin div textarea,
#ticketForm div select,
#clientLogin div select {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: 1;
  min-width: 200px;
}

#ticketForm div input:focus,
#clientLogin div input:focus,
#ticketForm div textarea:focus,
#clientLogin div textarea:focus,
#ticketForm div select:focus,
#clientLogin div select:focus {
  outline: none;
  border-color: #A55A84;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#ticketForm div input[type=file],
#clientLogin div input[type=file] {
  border: none;
  padding: 8px 0;
}

#ticketForm div select,
#clientLogin div select {
  cursor: pointer;
}

#ticketForm div div.captchaRow,
#clientLogin div div.captchaRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

#ticketForm div div.captchaRow input,
#clientLogin div div.captchaRow input {
  flex: none;
  min-width: auto;
  width: 120px;
}

#ticketForm div textarea,
#clientLogin div textarea {
  min-height: 100px;
  width: 100%;
}

#ticketForm div em,
#clientLogin div em {
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0 8px 8px;
  flex-basis: 100%;
}

#ticketForm div .captcha,
#clientLogin div .captcha {
  width: 88px;
  height: 31px;
  background: #1e293b;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

#ticketForm div label.inline,
#clientLogin div label.inline {
  width: auto;
  padding: 8px 12px 8px 0;
  font-weight: 400;
}

#ticketForm div.error input,
#clientLogin div.error input {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

#ticketForm div.error label,
#clientLogin div.error label {
  color: #EF4444;
}

#ticketForm p,
#clientLogin p {
  clear: both;
}

#ticketForm strong,
#clientLogin strong {
  display: block;
  padding-left: 160px;
  font-size: 13px;
  color: #EF4444;
}

#ticketForm #email,
#clientLogin #email {
  width: 300px;
}

#ticketForm #ticketno,
#clientLogin #ticketno {
  width: 160px;
}

#ticketTable th {
  width: 160px;
  font-weight: 600;
  text-align: left;
  padding: 8px 16px;
  color: #64748b;
}

#ticketTable th.required,
#ticketTable td.required {
  font-weight: 700;
}

#clientLogin {
  margin-top: 24px;
  position: relative;
}

#clientLogin #email {
  width: auto;
}

#clientLogin #ticketno {
  width: auto;
}

#reply {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#reply h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

#reply table {
  width: 100%;
}

#reply table td {
  vertical-align: top;
  padding: 4px 0;
}

#reply textarea {
  width: 100% !important;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: #1e293b;
  min-height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#reply textarea:focus {
  outline: none;
  border-color: #A55A84;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#reply input[type=text] {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#reply input[type=text]:focus {
  outline: none;
  border-color: #A55A84;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#reply .attachments .uploads div {
  display: inline-block;
  padding-right: 16px;
}

#reply .file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

#reply .file::before {
  content: "\f15b";
  font-family: "FontAwesome";
  font-size: 14px;
  color: #A55A84;
}

.uploads {
  display: inline-block;
  padding-right: 16px;
}

.uploads label {
  padding: 4px 12px 4px 0;
  width: auto !important;
  font-weight: 400 !important;
}

@media (max-width: 768px) {
  #ticketForm table td:first-child {
    width: 100%;
    display: block;
    padding-bottom: 0;
  }

  #ticketForm table td {
    display: block;
    width: 100%;
  }

  #ticketForm table td input[type="text"],
  #ticketForm table td select,
  #ticketForm table td textarea {
    max-width: 100%;
  }

  #ticketForm table tr.captchaRow td {
    flex-direction: column;
    align-items: flex-start;
  }

  #ticketForm>div {
    flex-direction: column;
  }

  #ticketForm>div label {
    width: 100%;
    padding: 4px 0;
  }

  #ticketForm>div input,
  #ticketForm>div textarea,
  #ticketForm>div select {
    min-width: 100%;
  }

  #ticketForm>div strong {
    padding-left: 0;
  }

  #clientLogin {
    max-width: 100%;
  }
}

.Icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #873E6C;
  text-decoration: none;
  font-size: 13px;
}

.Icon.Ticket::before {
  content: "\f145";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.webTicket::before {
  content: "\f57d";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.emailTicket::before {
  content: "\f0e0";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.phoneTicket::before {
  content: "\f095";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.otherTicket::before {
  content: "\f0c0";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.attachment::before {
  content: "\f0c6";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.file::before {
  content: "\f15b";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon.thread::before {
  content: "\f126";
  font-family: "FontAwesome";
  font-size: 14px;
}

.Icon:hover {
  text-decoration: underline;
}

.Icon.refresh {
  background: none;
  padding: 0;
}

/* Ticket info table (view page) */
#ticketInfo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

#ticketInfo>tr>td {
  padding: 4px 0;
}

#ticketInfo h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#ticketInfo h1 a {
  color: #1e293b;
}

#ticketInfo h1 a i.refresh {
  font-size: 20px;
  color: #94a3b8;
  transition: color 0.15s ease;
}

#ticketInfo h1 a i.refresh:hover {
  color: #873E6C;
}

#ticketInfo h1 b {
  flex: 1;
}

#ticketInfo h1 small {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
}

#ticketInfo h1 .pull-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

#ticketInfo h1 .action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
  background: #ffffff;
}

#ticketInfo h1 .action-button:hover {
  background: #f1f5f9;
  border-color: #A55A84;
  color: #873E6C;
  text-decoration: none;
}

/* Custom data tables */
.custom-data {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}

.custom-data .headline {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.custom-data th {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  width: 160px;
  border-bottom: 1px solid #f1f5f9;
}

.custom-data td {
  padding: 8px 16px;
  border-bottom: 1px solid #f1f5f9;
}

#ticketTable {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#ticketTable caption {
  padding: 16px 20px;
  text-align: left;
  color: #1e293b;
  font-weight: 700;
  font-size: 15px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

#ticketTable th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f1f5f9;
}

#ticketTable th a {
  color: #64748b;
  text-decoration: none;
}

#ticketTable th a:hover {
  color: #873E6C;
}

#ticketTable td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

#ticketTable tr {
  transition: background 0.1s ease;
}

#ticketTable tr:hover td {
  background: #f8faff;
}

#ticketTable tr.alt td {
  background: #fafbfc;
}

#ticketTable tr.alt:hover td {
  background: #f8faff;
}

#ticketTable tr:last-child td {
  border-bottom: none;
}

#ticketSearchForm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px 0;
  flex-wrap: wrap;
}

#ticketSearchForm input,
#ticketSearchForm select {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#ticketSearchForm input:focus,
#ticketSearchForm select:focus {
  outline: none;
  border-color: #A55A84;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Ticket search well responsive */
.search.well .pull-right select {
  width: auto;
  min-width: 160px;
}

a.refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.15s ease;
  float: right;
}

a.refresh::before {
  content: "\f021";
  font-family: "FontAwesome";
  font-size: 14px;
}

a.refresh:hover {
  background-color: #f1f5f9;
  border-color: #A55A84;
  color: #873E6C;
  text-decoration: none;
}

.infoTable {
  width: 100%;
  background: #ffffff;
  border: 5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.infoTable .headline {
  font-weight: bold;
}

.infoTable th {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  width: 160px;
}

.infoTable td {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: transparent !important;
}

.infoTable tr:last-child th,
.infoTable tr:last-child td {
  border-bottom: none;
}

#ticketThread {
  margin-top: 24px;
}

#ticketThread table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

#ticketThread table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

#ticketThread table th span {
  font-weight: 400;
  color: #94a3b8;
  padding-left: 8px;
}

#ticketThread table td {
  padding: 20px;
  line-height: 1.6;
}

#ticketThread .message,
#ticketThread .response {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
}


#ticketThread .message th {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #6B2E55;
  border-bottom: 1px solid #c7d2fe;
}

#ticketThread .response th {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
}

#ticketThread .info {
  padding: 10px 16px;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

#ticketThread .info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  text-decoration: none;
}

#ticketThread .info a:hover {
  color: #873E6C;
}

@media (max-width: 768px) {

  #ticketTable th,
  #ticketTable td {
    padding: 8px 12px;
  }

  #ticketThread .message,
  #ticketThread .response {
    border-radius: 8px;
  }

  #ticketThread td {
    padding: 12px;
  }
}