/* ACE client presentation,06-Nov-26. Native form controls and workflows remain. */
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form {
  box-sizing: border-box;
  width: 100%; max-width: 800px; min-width: 0;
  margin: 20px auto 0; padding: 24px;
  border: 1px solid #DDE5DC; border-radius: 14px;
  background: #FFFFFF; box-shadow: 0 5px 24px rgba(28,55,29,.04);
}
body.ace-support-client:has(#nav a.new) #content .ace-ticket-intro {
  max-width: 800px; margin: 0 auto;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table,
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody,
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr,
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr > td {
  box-sizing: border-box; width: 100% !important; min-width: 0; max-width: 100%;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table,
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr,
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr > td {
  display: block;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody { display: contents; }
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr { grid-column: 1 / -1; }
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr.ace-field-compact { grid-column: auto; }
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr.ace-ticket-spacer { display: none; }
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table > tbody > tr > td {
  padding: 5px 0 9px;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form label {
  display: block; margin: 0; color: #29372C; font-size: 14px; line-height: 1.55;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form :is(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],select,textarea) {
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
  min-height: 44px; padding: 10px 12px; margin: 5px 0 0;
  border: 1px solid #B9C6B8; border-radius: 7px;
  background: #FFFFFF; color: #253229; font: inherit; line-height: 1.4;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form :is(input,select,textarea):focus {
  outline: 2px solid #237532; outline-offset: 2px;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form input[name$="-ext"],
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .ace-phone-extension-label {
  display: none !important;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .form-header {
  margin: 10px 0 2px !important; color: #263B2B;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .form-header :is(h3,b) {
  margin: 0 0 4px; font-size: 17px; line-height: 1.4;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .form-header > div,
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form em {
  color: #626D64; font-size: 13px; line-height: 1.5;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form hr {
  margin: 12px 0; border: 0; border-top: 1px solid #E4EAE2;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .captchaRow > td {
  display: block; width: 100% !important;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .ace-captcha-image {
  display: block; float: none; position: static; top: auto;
  width: fit-content; max-width: 100%; margin: 0 0 10px;
  padding: 8px; border: 1px solid #D7E1D5; border-radius: 7px; background: #FFFFFF;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .ace-captcha-image img {
  display: block; float: none !important; width: auto; max-width: 100%; height: auto;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form #captcha {
  display: block; width: 180px !important; max-width: 100%; margin: 0 0 6px;
  font-size: 18px; letter-spacing: .08em;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .ace-captcha-answer :is(em,.error) {
  display: block; margin-top: 5px;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .buttons {
  display: flex; flex-wrap: wrap; justify-content: flex-start !important;
  gap: 10px; margin: 16px 0 0;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .buttons input {
  box-sizing: border-box; min-height: 44px; padding: 10px 20px;
  border: 1px solid #B9C6B8; border-radius: 7px;
  background: #FFFFFF; color: #26392B; font: inherit; font-weight: 600;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .buttons input[type="submit"] {
  border-color: #50D324; background: #50D324; color: #173821;
}
body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .buttons input:hover {
  border-color: #1EBA11; background: #1EBA11; color: #142018;
}
body.ace-support-client:has(#nav a.new) #content #kb {
  grid-template-columns: minmax(0,1fr) !important; gap: 12px;
}
body.ace-support-client:has(#nav a.new) #content > .row:has(#kb) {
  grid-template-columns: minmax(0,1fr); gap: 18px;
}
body.ace-support-client:has(#nav a.new) #content > .row:has(#kb) > :is(.span8,.span4),
body.ace-support-client:has(#nav a.new) #content > .row:has(#kb) .sidebar {
  float: none !important; width: 100% !important; min-width: 0; max-width: 100%; margin: 0 !important;
}
body.ace-support-client:has(#nav a.new) #content #kb > li {
  padding: 18px 22px; border-radius: 10px; box-shadow: none;
}
body.ace-support-client:has(#nav a.new) #content #kb > li h4 { margin-bottom: 6px; }
body.ace-support-client:has(#nav a.new) #content #kb > li .popular-faq { margin-top: 5px; line-height: 1.5; }
@media (max-width: 600px) {
  body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form { margin-top: 16px; padding: 16px; }
  body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form > table {
    grid-template-columns: minmax(0,1fr); column-gap: 0;
  }
  body.ace-support-client:has(#nav a.new) #content #ticketForm.ace-ticket-form .buttons input { flex: 1 1 100px; }
  body.ace-support-client:has(#nav a.new) #content #kb > li { padding: 16px; }
}

/* Keep long native thread titles within the available content width. */
body.ace-support-client:has(#nav a.new) #content #ticketThread .thread-entry .header .title.truncate {
  max-width: 100% !important; white-space: normal; overflow-wrap: anywhere;
  display: block; min-width: 0;
}
