﻿:root {
  --ct-bg-top: #f4f8fc;
  --ct-bg-bottom: #e7eef7;
  --ct-surface: #ffffff;
  --ct-surface-soft: #f7fafc;
  --ct-border: #d7e1ec;
  --ct-border-strong: #c2d0df;
  --ct-text: #17324d;
  --ct-text-soft: #60758b;
  --ct-primary: #0e5a8a;
  --ct-primary-strong: #0a4367;
  --ct-accent: #f2a93b;
  --ct-success: #1f915c;
  --ct-danger: #cc4b4b;
  --ct-shadow-lg: 0 22px 48px rgba(13, 37, 63, 0.16);
  --ct-shadow-md: 0 10px 24px rgba(13, 37, 63, 0.12);
  --ct-radius-xl: 28px;
  --ct-radius-lg: 18px;
  --ct-radius-md: 12px;
  --ct-shell-width: 1180px;
}

body.client-theme {
  background:
    radial-gradient(circle at top left, rgba(14, 90, 138, 0.12), transparent 26%),
    linear-gradient(180deg, var(--ct-bg-top) 0%, var(--ct-bg-bottom) 100%);
  color: var(--ct-text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.client-theme a,
body.client-theme .link {
  color: var(--ct-primary);
}

body.client-theme a:hover,
body.client-theme .link:hover {
  border-bottom-color: transparent;
  color: var(--ct-primary-strong);
}

body.client-theme h1,
body.client-theme h2,
body.client-theme h3 {
  color: var(--ct-primary-strong);
}

#container.client-theme-shell {
  background: var(--ct-surface);
  border-radius: var(--ct-radius-xl);
  box-shadow: var(--ct-shadow-lg);
  margin: 20px auto 28px;
  max-width: var(--ct-shell-width);
  overflow: hidden;
  width: calc(100% - 32px);
}

body.client-theme #header {
  background: linear-gradient(135deg, var(--ct-primary-strong), var(--ct-primary));
  color: #fff;
  height: auto;
  min-height: 88px;
  padding: 20px 24px 16px;
}

body.client-theme #header #logo {
  align-items: center;
  display: inline-flex;
  float: none;
  gap: 14px;
  height: auto;
  width: auto;
}

body.client-theme #header #logo img {
  max-height: 56px;
  width: auto;
}

body.client-theme #header .flush-right {
  display: flex;
  flex-direction: column;
  float: right;
  gap: 8px;
  margin-left: 20px;
  max-width: 62%;
}

body.client-theme #header p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  padding: 0;
  text-align: right;
  width: auto;
}

body.client-theme #header p a {
  color: #fff;
  font-weight: 600;
}

.client-theme-nav-toggle {
  appearance: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 24px 18px;
  padding: 11px 16px;
}

body.client-theme #nav {
  align-items: stretch;
  background: #f7fbff;
  border: 0;
  box-shadow: inset 0 -1px 0 var(--ct-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  height: auto;
  margin: 0;
  padding: 16px 24px;
}

body.client-theme #nav li {
  display: block;
  margin: 0;
}

body.client-theme #nav li a {
  background: transparent;
  border-radius: 999px;
  color: var(--ct-text);
  float: none;
  font-weight: 700;
  height: auto;
  line-height: 1.2;
  margin: 0;
  min-height: 42px;
  padding: 11px 18px 11px 38px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.client-theme #nav li a.active,
body.client-theme #nav li a:hover {
  background-color: var(--ct-primary);
  box-shadow: var(--ct-shadow-md);
  color: #fff;
}

body.client-theme #content {
  height: auto !important;
  margin: 0;
  min-height: 350px;
  padding: 28px 24px 32px;
}

body.client-theme #content > h1,
body.client-theme #content > h2,
body.client-theme #content > p {
  max-width: 76ch;
}

body.client-theme hr {
  border-top-color: var(--ct-border);
}

body.client-theme #msg_notice,
body.client-theme #msg_warning,
body.client-theme #msg_error,
body.client-theme #msg_info,
body.client-theme .warning-banner {
  border-radius: var(--ct-radius-md);
  box-sizing: border-box;
  height: auto;
  line-height: 1.45;
  margin-bottom: 16px;
  min-height: 0;
  padding: 14px 16px 14px 42px;
}

body.client-theme input[type="text"],
body.client-theme input[type="password"],
body.client-theme input[type="email"],
body.client-theme input[type="number"],
body.client-theme select,
body.client-theme textarea {
  background: #fff;
  border: 1px solid var(--ct-border-strong) !important;
  border-radius: var(--ct-radius-md);
  box-sizing: border-box;
  color: var(--ct-text);
  max-width: 100%;
  padding: 10px 12px;
}

body.client-theme input[type="text"]:focus,
body.client-theme input[type="password"]:focus,
body.client-theme input[type="email"]:focus,
body.client-theme input[type="number"]:focus,
body.client-theme select:focus,
body.client-theme textarea:focus {
  border-color: var(--ct-primary) !important;
  box-shadow: 0 0 0 4px rgba(14, 90, 138, 0.12);
  outline: 0;
}

body.client-theme input[type="submit"],
body.client-theme input[type="reset"],
body.client-theme input[type="button"],
body.client-theme .action-button {
  background: var(--ct-primary);
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  display: inline-block;
  font-weight: 700;
  margin: 4px 8px 4px 0;
  padding: 10px 18px;
  text-decoration: none;
}

body.client-theme input[type="reset"],
body.client-theme input[type="button"] {
  background: #7b8fa5;
}

body.client-theme .action-button:hover,
body.client-theme input[type="submit"]:hover,
body.client-theme input[type="reset"]:hover,
body.client-theme input[type="button"]:hover {
  filter: brightness(0.96);
}

body.client-theme .search.well,
body.client-theme .login-box,
body.client-theme .sidebar,
body.client-theme #clientLogin,
body.client-theme #reply,
body.client-theme .custom-data,
body.client-theme .infoTable,
body.client-theme #ticketThread .thread-entry,
body.client-theme #ticketTable,
body.client-theme #faq,
body.client-theme #kb {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  box-shadow: var(--ct-shadow-md);
}

body.client-theme #clientLogin {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  background-image: none;
  margin: 24px auto;
  max-width: 620px;
  padding: 24px;
  width: auto;
}

body.client-theme .login-box {
  border: 0;
  box-shadow: none;
  margin-bottom: 12px;
  padding: 0;
}

body.client-theme #clientLogin div {
  clear: none;
  overflow: visible;
  padding: 0;
}

body.client-theme #clientLogin input[type="text"],
body.client-theme #clientLogin input[type="password"] {
  float: none;
  margin-bottom: 12px;
  width: 100%;
}

body.client-theme #clientLogin strong {
  color: var(--ct-danger);
  padding-left: 0;
}

body.client-theme .search.well {
  margin-bottom: 20px;
  padding: 18px;
}

body.client-theme .search.well form,
body.client-theme .search.well .flush-left {
  display: block;
  overflow: hidden;
}

body.client-theme .search.well input[type="text"],
body.client-theme .search.well select {
  min-height: 42px;
}

body.client-theme #ticketTable,
body.client-theme #ticketInfo,
body.client-theme #reply table,
body.client-theme #ticketForm table,
body.client-theme table.padded,
body.client-theme .custom-data {
  width: 100% !important;
}

body.client-theme #ticketTable {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

body.client-theme #ticketTable caption {
  background: linear-gradient(135deg, var(--ct-primary-strong), var(--ct-primary));
  border: 0;
  color: #fff;
  padding: 16px 18px;
}

body.client-theme #ticketTable th {
  background: #edf5fb;
  border-color: var(--ct-border);
  color: var(--ct-primary-strong);
  font-weight: 700;
  padding: 12px 10px;
}

body.client-theme #ticketTable td {
  border-color: var(--ct-border);
  padding: 12px 10px;
}

body.client-theme .infoTable,
body.client-theme .custom-data {
  margin-bottom: 16px;
  overflow: hidden;
}

body.client-theme .infoTable td,
body.client-theme .infoTable th,
body.client-theme .custom-data td,
body.client-theme .custom-data th {
  border-bottom: 1px solid var(--ct-border);
  padding: 10px 12px;
}

body.client-theme .infoTable .headline,
body.client-theme .custom-data .headline {
  background: #edf5fb;
  color: var(--ct-primary-strong);
  font-weight: 700;
}

body.client-theme #ticketThread .thread-entry {
  margin-top: 16px;
  overflow: hidden;
}

body.client-theme .thread-entry .header {
  background: #edf5fb;
  border-bottom: 1px solid var(--ct-border);
  color: var(--ct-primary-strong);
}

body.client-theme .thread-entry.message .header {
  background: #eaf7f0;
}

body.client-theme .thread-entry.response .header {
  background: #f5f7fa;
}

body.client-theme .thread-entry .thread-body {
  background: #fff;
}

body.client-theme #faq,
body.client-theme #kb {
  padding: 12px 16px;
}

body.client-theme #faq ol,
body.client-theme #kb > li {
  border-color: var(--ct-border);
}

body.client-theme .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  padding: 18px;
}

body.client-theme .sidebar .content {
  border: 0;
  padding: 0;
}

body.client-theme .sidebar section .header {
  color: var(--ct-primary-strong);
  font-weight: 700;
  margin-bottom: 12px;
}

body.client-theme #footer {
  background: #102a43;
  color: #d8e7f5;
  margin-top: 8px;
  padding: 22px 24px 28px;
  text-align: center;
}

body.client-theme #footer a {
  color: #8fd3ff;
}

body.client-theme #footer p {
  margin: 0 0 8px;
}

body.client-theme #footer #poweredBy {
  background: none;
  display: inline;
  height: auto;
  margin: 0;
  text-indent: 0;
  width: auto;
}

@media (max-width: 980px) {
  #container.client-theme-shell {
    width: calc(100% - 20px);
  }

  body.client-theme #header .flush-right {
    float: none;
    margin: 18px 0 0;
    max-width: none;
  }

  body.client-theme #header p {
    text-align: left;
  }

  body.client-theme #content {
    padding: 22px 18px 26px;
  }

  body.client-theme #clientLogin {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .client-theme-nav-toggle {
    display: none;
  }

  body.client-theme #nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px 12px;
    white-space: nowrap;
  }

  body.client-theme #nav li {
    flex: 0 0 auto;
    width: auto;
  }

  body.client-theme #nav li a {
    background-position: 14px 50%;
    min-height: 38px;
    padding: 10px 14px;
    width: auto;
  }

  body.client-theme #content {
    padding-top: 18px;
  }

  body.client-theme .search.well .pull-right,
  body.client-theme .pull-right,
  body.client-theme .flush-right,
  body.client-theme .flush-left {
    float: none !important;
  }

  body.client-theme .search.well input[type="text"],
  body.client-theme .search.well select,
  body.client-theme .search.well input[type="submit"] {
    display: block;
    margin-bottom: 10px;
    width: 100%;
  }

  body.client-theme #ticketInfo > tbody > tr > td,
  body.client-theme #reply table > tbody > tr > td,
  body.client-theme table.padded > tbody > tr > td {
    display: block;
    width: 100% !important;
  }

  body.client-theme #ticketTable,
  body.client-theme #ticketTable thead,
  body.client-theme #ticketTable tbody,
  body.client-theme #ticketTable th,
  body.client-theme #ticketTable td,
  body.client-theme #ticketTable tr {
    display: block;
    width: 100% !important;
  }

  body.client-theme #ticketTable thead {
    display: none;
  }

  body.client-theme #ticketTable tr {
    border-bottom: 1px solid var(--ct-border);
    padding: 10px 0;
  }

  body.client-theme #ticketTable td {
    border: 0;
    padding: 8px 12px;
  }

  body.client-theme #ticketThread .thread-entry > .avatar {
    display: none;
  }
}

@media (max-width: 520px) {
  #container.client-theme-shell {
    border-radius: 20px;
    margin-top: 10px;
    width: calc(100% - 12px);
  }

  body.client-theme #header,
  body.client-theme #content,
  body.client-theme #footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.client-theme #header #logo {
    display: block;
  }

  body.client-theme #header #logo img {
    max-height: 46px;
  }

  .client-theme-nav-toggle {
    margin-left: 14px;
    margin-right: 14px;
  }
}

