/* Presentation only. Existing Web Forms controls and postbacks remain in use. */
.ticket-refresh-page { margin: 0; background: #fff; color: #27272a; font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.ticket-refresh-page *, .ticket-refresh-page *::before, .ticket-refresh-page *::after { box-sizing: border-box; }
.ticket-refresh-title { width: 100% !important; margin: 0 !important; padding: 14px 24px !important; background: #8d2232 !important; color: #fff; font: 600 21px/1.4 'Segoe UI', Arial, sans-serif !important; }
.ticket-refresh-title table { width: 100%; border-collapse: collapse; }
.ticket-refresh-title td { padding: 0; width: auto !important; }
.ticket-refresh-title td:last-child { text-align: right; font-size: 14px; font-weight: 400; }
.ticket-refresh-title a { color: #fff; }
.ticket-refresh-shell { display: flex; align-items: stretch; width: 100% !important; max-width: 1600px; margin: 0 auto !important; padding: 0 !important; border: 0 !important; min-height: calc(100vh - 60px); }
.ticket-refresh-shell #content-main-estwo-column { flex: 0 0 240px; float: none; width: 240px; padding: 20px 12px; margin: 0; border: 0; border-right: 1px solid #e4e4e7; background: #fff; }
.ticket-refresh-shell #content-main-estwo-column p { width: auto; margin: 12px 8px 4px; font-size: 12px !important; color: #71717a; }
.ticket-refresh-shell #content-main-estwo-column p:empty { display: none; }
.ticket-refresh-shell #content-main-estwo-column ul { margin: 4px 0 12px; padding: 0; list-style: none; font-size: 14px !important; line-height: 1.5 !important; }
.ticket-refresh-shell #content-main-estwo-column li { padding: 0; margin: 2px 0; background: none; }
.ticket-refresh-shell #content-main-estwo-column li a, .ticket-refresh-shell #content-main-estwo-column li.current { display: block; padding: 8px 10px; border-radius: 4px; color: #303036; text-decoration: none; }
.ticket-refresh-shell #content-main-estwo-column li.current { background: #f5e9ec; color: #83092b; font-weight: 600; }
.ticket-refresh-shell #content-main-estwo-column li.current a { padding: 0; color: inherit; }
.ticket-refresh-shell #content-main-estwo-column a:hover { background: #f8f2f3; color: #83092b; }
.ticket-refresh-shell #content-main-estwo-column img { max-width: 155px; height: auto; border: 0; margin: 0 10px 16px; }
.ticket-refresh-shell #content-side-estwo-column { flex: 1 1 0; min-width: 0; float: none; width: auto; padding: 20px 24px 32px; }
.ticket-refresh-shell a { color: #83092b; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ticket-refresh-shell hr { border: 0; border-top: 1px solid #e1e1e5; margin: 20px 0; height: 0; }
.ticket-refresh-shell input, .ticket-refresh-shell select, .ticket-refresh-shell textarea, .ticket-login-card input, .ticket-login-card select { font-family: 'Segoe UI', Arial, sans-serif !important; font-size: 14px !important; }
.ticket-refresh-shell input[type=text], .ticket-refresh-shell input[type=password], .ticket-refresh-shell select, .ticket-login-card input[type=text], .ticket-login-card input[type=password], .ticket-login-card select { min-height: 36px; padding: 6px 9px; border: 1px solid #c9c9ce; border-radius: 4px; color: #27272a; background: #fff; }
.ticket-refresh-shell input:disabled, .ticket-refresh-shell select:disabled { color: #626269; background: #f1f1f3; opacity: 1; }
.ticket-refresh-shell input:focus-visible, .ticket-refresh-shell select:focus-visible, .ticket-refresh-shell textarea:focus-visible, .ticket-login-card input:focus-visible { outline: 2px solid #8d2232; outline-offset: 2px; }
.ticket-refresh-shell textarea[id$=txtTextData] { display: block; width: 100% !important; min-height: 175px; height: auto !important; resize: vertical; padding: 12px; border: 1px solid #c9c9ce; border-radius: 5px; line-height: 1.6; background: #fff; }
.ticket-refresh-shell [id$=txtSubject] { width: 100% !important; margin-left: 0 !important; }
.ticket-refresh-shell [id$=lblError] { width: 100% !important; height: auto !important; color: #a51d32; }
.ticket-refresh-shell [id$=lblDownloadedFiles] { display: block; max-width: 100%; width: auto !important; overflow-wrap: anywhere; }
.ticket-refresh-shell [id$=FileUpload] { width: 100% !important; max-width: 620px; height: auto !important; margin-top: 12px; }
.ticket-refresh-shell [class*=dxucBrowseButton] { min-height: 36px; padding: 7px 12px; border: 1px solid #83092b !important; border-radius: 4px; color: #83092b !important; background: #fff !important; font-size: 14px; }
.ticket-refresh-shell [class*=dxucBrowseButton] a,
.ticket-refresh-shell [class*=dxucBrowseButton] span,
.ticket-refresh-shell [class*=dxucBrowseButton] td,
.ticket-refresh-shell [class*=dxucBrowseButton] div { color: #83092b !important; font-family: 'Segoe UI', Arial, sans-serif !important; font-size: 14px !important; }
.ticket-field-table { width: 100% !important; border-collapse: separate; border-spacing: 0 5px; }
.ticket-field-table > tbody > tr > td { height: auto; font-size: 13px; vertical-align: top; padding: 0 12px 8px 0; }
.ticket-field-table > tbody > tr > td:last-child { padding-right: 0; }
.ticket-metadata > tbody > tr { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.ticket-metadata > tbody > tr > td { display: flex; flex-direction: column; gap: 5px; flex: 1 1 115px; width: auto !important; min-width: 0; padding: 0; }
.ticket-metadata > tbody > tr > td:last-child { flex-grow: 2; }
.ticket-metadata input, .ticket-metadata select, .ticket-metadata > tbody > tr > td > table { width: 100% !important; max-width: 100%; }
.ticket-subject > tbody > tr > td:first-child { width: 100% !important; }
.ticket-compose > tbody > tr:first-child > td:first-child { width: auto !important; }
.ticket-compose > tbody > tr:first-child > td:last-child { width: 190px !important; padding: 0 0 0 16px; }
.ticket-compose > tbody > tr:first-child > td:last-child > span, .ticket-compose > tbody > tr:first-child > td:last-child > label { display: block; margin: 0 0 4px; }
.ticket-compose > tbody > tr:first-child > td:last-child > select { width: 100% !important; margin: 0 0 10px; }
.ticket-compose [id$=cmdSave] { width: 100% !important; min-height: 38px; margin-top: 5px !important; }
.ticket-refresh-shell .dxbButton, .ticket-refresh-shell [class*=dxbButton_], .ticket-login-card input[type=submit] { border: 1px solid #83092b !important; border-radius: 4px; background: #83092b !important; color: #fff !important; padding: 7px 14px; font: 600 14px/1.4 'Segoe UI', Arial, sans-serif !important; cursor: pointer; }
.ticket-refresh-shell .dxbButton span, .ticket-refresh-shell [class*=dxbButton_] span { color: inherit; font: inherit; }
.ticket-refresh-shell .dxbDisabled, .ticket-refresh-shell [class*=dxbDisabled_] { opacity: .55; cursor: default; }
.ticket-discussion { display: block; width: 100% !important; max-width: 100%; }
.ticket-post { display: block; margin: 0 0 9.8px; padding: 0 0 10px; border: 1px solid #d8d8dd; border-left: 4px solid #8d2232; border-radius: 6px; overflow: hidden; background: #fff; overflow-wrap: anywhere; }
.ticket-post table { width: 100% !important; border: 0; border-collapse: collapse; margin: 0; }
.ticket-post td { padding: 10px 14px; font: 14px/1.65 'Segoe UI', Arial, sans-serif !important; }
.ticket-post font { font: inherit !important; color: inherit; }
.ticket-post > .ticket-post-heading td { background: #eeeef0 !important; padding: 8px 14px; font-size: 13px !important; }
.ticket-post > br { display: none; }
.ticket-post td[align=right] { padding-top: 0 !important; padding-bottom: 0 !important; color: #626269; font-size: 12px !important; line-height: 1.2 !important; }
.ticket-post img, .ticket-discussion img { max-width: 100%; height: auto; }
.ticket-grid-frame { max-width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid #dedee3; border-radius: 5px; }
.ticket-refresh-shell .ticket-grid { width: 100% !important; border: 0 !important; font: 14px/1.5 'Segoe UI', Arial, sans-serif !important; }
.ticket-grid [class*=dxgvTitlePanel], .ticket-grid [class*=dxgvCaption] { padding: 10px 12px; background: #eeeef0; color: #27272a; font-size: 15px; font-weight: 600; text-align: left; }
.ticket-grid td[class*=dxgvHeader] { padding: 8px 10px; background: #f3f3f5; color: #3f3f46; border-color: #e1e1e5; font-size: 13px; }
/* DevExpress puts header captions in nested tables/links with their own theme colors. */
.ticket-refresh-shell td[class*=dxgvHeader],
.ticket-refresh-shell td[class*=dxgvHeader] table,
.ticket-refresh-shell td[class*=dxgvHeader] td,
.ticket-refresh-shell td[class*=dxgvHeader] a,
.ticket-refresh-shell td[class*=dxgvHeader] span { color: #3f3f46 !important; }
.ticket-refresh-shell td[class*=dxgvHeader] { background: #f3f3f5 !important; }
.ticket-refresh-shell [class*=dxgvTitlePanel],
.ticket-refresh-shell [class*=dxgvCaption] { color: #27272a !important; background: #eeeef0 !important; }
.ticket-refresh-shell [class*=dxgvTitlePanel] *,
.ticket-refresh-shell [class*=dxgvCaption] * { color: #27272a !important; }
/* Keep the localized date, including the Bulgarian year suffix, together. */
.ticket-refresh-shell tr[class*=dxgvDataRow] > td:nth-child(2) { white-space: nowrap !important; min-width: 92px; }
.ticket-grid [class*=dxgvDataRow] > td, .ticket-grid [class*=dxgvPreviewRow] > td { padding: 8px 10px; border-color: #e7e7eb; font-size: 14px; }
.ticket-grid [class*=dxgvPreviewRow] > td { padding-top: 2px; padding-bottom: 12px; }
.ticket-grid [class*=dxgvDataRow]:hover > td { background: #fbf5f6; }
.ticket-grid [class*=dxpLite], .ticket-grid [class*=dxgvPager] { padding: 10px; background: #fafafa; }
.ticket-grid [class*=dxgvGroupRow] td { background: #f5e9ec; color: #712336; padding: 9px; }
.ticket-compose-title { margin: 20px 0 10px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.ticket-menu-toggle { display: none; }
.ticket-login-page { background: #f7f5f6; }
.ticket-login-page .ticket-refresh-title { text-align: center; }
.ticket-login-card { width: calc(100% - 32px); max-width: 460px; margin: 48px auto; padding: 28px; border: 1px solid #ded9dc; border-top: 4px solid #8d2232; border-radius: 7px; background: #fff; box-shadow: 0 6px 24px #3020270a; }
.ticket-login-logo { display: block; width: 155px; height: auto; margin: 0 auto 24px; }
.ticket-login-card > table { width: 100%; }
.ticket-login-card table { max-width: 100%; table-layout: fixed; border-collapse: collapse; }
.ticket-login-card table[id$=Login1] { width: 100% !important; height: auto !important; border: 0 !important; background: #fff !important; color: #27272a !important; font: inherit !important; }
.ticket-login-card table[id$=Login1] table { width: 100%; height: auto !important; }
.ticket-login-card table[id$=Login1] table, .ticket-login-card table[id$=Login1] table > tbody, .ticket-login-card table[id$=Login1] table > tbody > tr, .ticket-login-card table[id$=Login1] table > tbody > tr > td { display: block; width: 100%; }
.ticket-login-card table[id$=Login1] td { padding: 7px 3px; }
.ticket-login-card input[type=text], .ticket-login-card input[type=password] { width: 100% !important; min-height: 42px; }
.ticket-login-card input[type=submit] { width: 100% !important; max-width: 100%; min-height: 42px; margin: 0 !important; }
.ticket-login-card .ticket-login-field-row { display: block; width: 100%; text-align: left; }
.ticket-login-card .ticket-login-field-row > td { display: block; width: 100% !important; text-align: left; }
@media (max-width: 760px) {
  .ticket-refresh-page { font-size: 15px; }
  .ticket-refresh-title { padding: 12px 14px !important; font-size: 18px !important; }
  .ticket-refresh-title td:last-child { font-size: 12px; }
  .ticket-refresh-shell { display: block; min-height: 0; }
  .ticket-refresh-shell #content-main-estwo-column { display: none; width: 100%; border-right: 0; border-bottom: 1px solid #e4e4e7; padding: 12px; }
  .ticket-refresh-shell.ticket-menu-open #content-main-estwo-column { display: block; }
  .ticket-refresh-shell #content-side-estwo-column { width: 100%; padding: 14px 12px 24px; }
  .ticket-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: 0 10px 0 -6px; padding: 3px; border: 1px solid #ffffff55; border-radius: 4px; background: transparent; color: #fff; font-size: 23px; vertical-align: middle; cursor: pointer; }
  .ticket-field-table > tbody > tr { display: flex; flex-wrap: wrap; gap: 10px; }
  .ticket-field-table > tbody > tr > td { flex: 1 1 calc(50% - 10px); width: auto !important; min-width: 0; padding: 0; }
  .ticket-field-table > tbody > tr > td > table, .ticket-field-table input[type=text], .ticket-field-table select { max-width: 100%; width: 100% !important; }
  .ticket-field-table input[type=text], .ticket-field-table select { min-height: 42px; }
  .ticket-subject > tbody > tr > td:first-child { flex-basis: 100%; }
  .ticket-compose > tbody > tr:first-child > td:first-child { flex-basis: 100%; }
  .ticket-compose > tbody > tr:first-child > td:last-child { flex-basis: 100%; width: 100% !important; padding: 0; }
  .ticket-compose textarea[id$=txtTextData] { min-height: 150px; }
  .ticket-compose [id$=cmdSave] { min-height: 44px; margin: 8px 0 !important; }
  .ticket-post td { padding: 10px !important; font-size: 15px !important; }
  .ticket-post > .ticket-post-heading td { font-size: 13px !important; }
  .ticket-post td[align=right] { font-size: 12px !important; }
  .ticket-grid-frame { margin: 12px 0; }
  .ticket-grid .ticket-mobile-row { display: flex; flex-wrap: wrap; border-top: 1px solid #d8d8dd; }
  .ticket-grid .ticket-mobile-row > td { flex: 1 1 50%; width: auto !important; border: 0 !important; padding: 5px 9px !important; }
  .ticket-grid .ticket-mobile-row > td[data-ticket-label]::before { content: attr(data-ticket-label) ': '; font-size: 12px; font-weight: 600; color: #626269; }
  .ticket-grid .ticket-mobile-preview { display: block; border-bottom: 1px solid #dedee3; }
  .ticket-grid .ticket-mobile-preview > td { display: block; padding: 7px 9px 12px !important; }
  .ticket-grid .ticket-mobile-head { display: none; }
  .ticket-grid .ticket-mobile-table, .ticket-grid .ticket-mobile-table > tbody { display: block; width: 100% !important; }
  .ticket-grid .ticket-mobile-table > tbody > tr:not(.ticket-mobile-row):not(.ticket-mobile-preview) { max-width: 100%; }
  .ticket-grid [class*=dxgvTitlePanel] { font-size: 14px; white-space: normal; }
  .ticket-login-card { margin: 24px auto; padding: 22px 18px; }
}
@media print {
  .ticket-menu-toggle, .ticket-refresh-shell #content-main-estwo-column { display: none !important; }
  .ticket-refresh-shell { display: block; }
  .ticket-post { break-inside: avoid; }
}

/* Ticket list columns: compact dates, unbroken status, bold ticket numbers. */
.ticket-refresh-shell td.ticket-date { width: 96px; min-width: 92px; padding-left: 8px !important; padding-right: 8px !important; white-space: nowrap !important; }
.ticket-refresh-shell td.ticket-status { min-width: 110px; white-space: nowrap !important; }
.ticket-refresh-shell td.ticket-number, .ticket-refresh-shell td.ticket-number a { font-weight: 700 !important; }

/* Align the existing filter action with the bottom of the input controls. */
.ticket-metadata > tbody > tr > td.ticket-filter-actions { justify-content: flex-end; }
.ticket-filter-actions [id$=cmdApply] { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Keep the original logo free of legacy photo framing and centered. */
.ticket-refresh-shell #content-main-estwo-column a[id$=linkSideMenuPicture] { display: block; float: none; width: 155px; max-width: 100%; margin: 0 auto 16px; padding: 0; border: 0 !important; background: none !important; }
.ticket-refresh-shell #content-main-estwo-column a[id$=linkSideMenuPicture] img { display: block; width: 155px; max-width: 100%; height: auto; margin: 0 auto; padding: 0; border: 0; }

/* Native DevExpress priority controls: preserve postbacks and keyboard interaction. */
.ticket-refresh-shell input.ticket-priority-checkbox[type=checkbox], .ticket-refresh-shell .ticket-priority-checkbox input[type=checkbox] { -webkit-appearance: none; appearance: none; display: inline-block; box-sizing: border-box; width: 16px !important; height: 16px !important; min-width: 16px; min-height: 16px; padding: 0 !important; margin: 2px 4px; border: 1px solid #d0d5dd !important; border-radius: 4px; background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: 12px 12px; vertical-align: middle; cursor: pointer; }
.ticket-refresh-shell input.ticket-priority-checkbox[type=checkbox]:checked, .ticket-refresh-shell .ticket-priority-checkbox input[type=checkbox]:checked { border-color: #8d2232 !important; background-color: #8d2232; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticket-refresh-shell input.ticket-priority-checkbox[type=checkbox]:focus-visible, .ticket-refresh-shell .ticket-priority-checkbox input[type=checkbox]:focus-visible { outline: 2px solid #8d2232; outline-offset: 3px; }
.ticket-refresh-shell input.ticket-priority-checkbox[type=checkbox]:disabled, .ticket-refresh-shell .ticket-priority-checkbox input[type=checkbox]:disabled { opacity: .5; cursor: default; }
@media (forced-colors: active) { .ticket-refresh-shell input.ticket-priority-checkbox[type=checkbox], .ticket-refresh-shell .ticket-priority-checkbox input[type=checkbox] { -webkit-appearance: auto; appearance: auto; background-image: none; } }

/* Partner selection uses the same centered entry card as the login screen. */
.ticket-refresh-shell.ticket-partner-shell { display: block; }
.ticket-refresh-shell.ticket-partner-shell #content-side-estwo-column { padding: 0; width: 100%; }
.ticket-partner-card [id$=lblInfo] { display: block; width: 100% !important; margin-bottom: 20px; font-size: 14px; }
.ticket-partner-card [id$=lblErr] { display: block; width: 100% !important; margin-top: 12px; color: #a51d32; overflow-wrap: anywhere; }
.ticket-partner-form, .ticket-partner-form > tbody, .ticket-partner-form > tbody > tr, .ticket-partner-form > tbody > tr > td { display: block; width: 100% !important; }
.ticket-partner-form > tbody > tr > td { padding: 0; text-align: left; }
.ticket-partner-form input[type=text] { width: 100% !important; margin: 8px 0 16px; min-height: 42px; }
.ticket-partner-form [id$=cmdLoad] { width: 100% !important; min-height: 42px; margin: 0; }

/* Download page presentation; existing download commands remain unchanged. */
.ticket-refresh-shell .ticket-download-content { font: 14px/1.65 "Segoe UI", Arial, sans-serif; }
.ticket-download-hero { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e1d5d9; border-left: 4px solid #8d2232; border-radius: 6px; background: #fbf6f7; }
.ticket-download-hero a { font-size: 17px; line-height: 1.5; font-weight: 600; }
.ticket-download-hero input[type=image] { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; }
.ticket-download-versions > tbody > tr > td { width: 100% !important; padding: 0; }
.ticket-download-versions [id*=cboVersions] { width: 100% !important; max-width: 100%; }
.ticket-release-notes { display: block; width: 100% !important; max-width: 100%; margin-top: 16px; padding: 18px; border: 1px solid #e1e1e5; border-radius: 6px; font: 14px/1.7 "Segoe UI", Arial, sans-serif !important; overflow-wrap: anywhere; }
.ticket-release-notes font { font-family: inherit !important; font-size: inherit !important; }
.ticket-release-notes p { margin: 0 0 12px; }
@media (max-width: 760px) { .ticket-download-hero { padding: 12px; gap: 10px; } .ticket-download-hero a { font-size: 15px; } .ticket-release-notes { padding: 12px; font-size: 15px !important; } }

/* Compact, centered login column; retain the built-in validation controls. */
.ticket-login-compact .ticket-login-logo { margin-bottom: 16px; }
.ticket-login-compact > .ticket-login-form { width: 100% !important; max-width: 340px; margin: 0 auto; }
.ticket-login-form > tbody > tr, .ticket-login-form > tbody > tr > td { display: block; width: 100%; height: auto !important; padding: 0; text-align: left; }
.ticket-login-form > tbody > tr:first-child { margin-bottom: 12px; }
.ticket-login-form > tbody > tr:first-child > td:first-child { padding-bottom: 4px; }
.ticket-login-form [id$=lblLanguage] { display: block; width: auto !important; }
.ticket-login-form [id*=cboLanguage] { width: 100% !important; max-width: 100%; }
.ticket-login-form table[id$=Login1], .ticket-login-form table[id$=Login1] table { width: 100% !important; }
.ticket-login-form table[id$=Login1] td { padding: 0 !important; }
.ticket-login-form .ticket-login-field-row { margin-bottom: 12px; }
.ticket-login-form table[id$=Login1] .ticket-login-field-row > td:first-child { padding-bottom: 4px !important; }
.ticket-login-form .ticket-login-field-row > td:last-child { position: relative; }
.ticket-login-form [id$=UserNameRequired], .ticket-login-form [id$=PasswordRequired] { position: absolute; top: 9px; right: 8px; }
.ticket-login-form input[type=submit] { margin-top: 4px !important; }

/* Existing attachment and submit controls share one bottom action row. */
.ticket-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.ticket-attachments-toolbar { display: flex; align-items: center; gap: 14px; flex: 1 1 0; min-width: 0; flex-wrap: wrap; }
.ticket-refresh-shell .ticket-attachments-toolbar [id$=FileUpload] { flex: 0 0 auto; width: 150px !important; max-width: 100%; margin: 0 !important; }
.ticket-refresh-shell .ticket-attachments-toolbar [id$=lblDownloadedFiles] { flex: 1 1 220px; margin: 0; }
.ticket-compose-submit { flex: 0 0 174px; }
.ticket-compose-footer .ticket-compose-submit [id$=cmdSave] { margin: 0 !important; }
@media (max-width: 760px) { .ticket-compose-footer { flex-direction: column; align-items: stretch; gap: 12px; } .ticket-compose-submit { flex: 0 0 auto; width: 100%; } .ticket-compose-actions-cell { flex-basis: 100% !important; } }

/* Compact spacing between the ticket metadata and subject only. */
.ticket-metadata-compact { border-spacing: 0; margin-bottom: 0; }
.ticket-metadata-compact + .ticket-subject { border-spacing: 0; margin-top: 4px; }

/* Equal 12px spacing on both sides of the divider below the ticket subject. */
.ticket-metadata-compact + .ticket-subject > tbody > tr > td { padding-bottom: 0; }
.ticket-metadata-compact + .ticket-subject [id$=txtSubject] { display: block; }
.ticket-metadata-compact + .ticket-subject + hr { margin: 12px 0; }

/* Match the lower discussion divider to the 12px subject divider spacing. */
.ticket-discussion > .ticket-post:last-child { margin-bottom: 0; }
.ticket-discussion + hr { margin: 12px 0 8.4px; }
.ticket-discussion + hr ~ .ticket-compose-title { margin-top: 0; margin-bottom: 5.5px; }

/* Desktop reply controls align exactly with the textarea edges. */
@media (min-width: 761px) {
  .ticket-compose > tbody > tr.ticket-compose-main { display: grid; grid-template-columns: minmax(0, 1fr) 174px; column-gap: 28px; align-items: stretch; }
  .ticket-compose > tbody > tr.ticket-compose-main > td { width: auto !important; padding: 0 !important; min-width: 0; }
  .ticket-compose-main > td:first-child { display: flex; }
  .ticket-compose-main > td:first-child textarea { flex: 1 1 auto; align-self: stretch; height: 100% !important; }
  .ticket-compose > tbody > tr.ticket-compose-main > td:last-child { position: relative; display: grid; grid-template-rows: 36px minmax(8px, 1fr) 18px 36px minmax(8px, 1fr) 18px 36px; min-height: 175px; }
  .ticket-compose-main > td:last-child > select { margin: 0 !important; height: 36px !important; min-height: 36px; }
  .ticket-compose-main > td:last-child > span { margin: 0 !important; line-height: 18px; }
  .ticket-compose-main [id$=lblTicketStatus] { position: absolute; left: 0; top: -23px; }
  .ticket-compose-main [id$=cboTicketStatus] { grid-row: 1; }
  .ticket-compose-main [id$=lblHoursWorked] { grid-row: 3; }
  .ticket-compose-main [id$=cboHoursWorked] { grid-row: 4; }
  .ticket-compose-main [id$=lblChargeCustomer] { grid-row: 6; }
  .ticket-compose-main [id$=cboChargeCustomer] { grid-row: 7; }
}

/* Match the reply action width to the payment field. */
@media (min-width: 761px) {
  .ticket-compose > tbody > tr.ticket-compose-main { grid-template-columns: minmax(0, 1fr) 190px; }
  .ticket-compose-footer .ticket-compose-submit { flex: 0 0 190px; width: 190px; }
}

/* Compact ticket header and match the participant editor to the date fields. */
.ticket-refresh-shell #content-side-estwo-column.ticket-details-workspace { padding-top: 14px; }
.ticket-details-workspace .ticket-metadata [id$=ASPxDropDownEdit1] { height: 36px !important; }
.ticket-details-workspace .ticket-metadata [id$=ASPxDropDownEdit1] > tbody > tr > td { padding-top: 0 !important; padding-bottom: 0 !important; }
.ticket-details-workspace .ticket-metadata [id$=ASPxDropDownEdit1_I] { height: 34px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border: 0 !important; border-radius: 0; }
@media (max-width: 760px) {
  .ticket-refresh-shell #content-side-estwo-column.ticket-details-workspace { padding-top: 9.8px; }
  .ticket-details-workspace .ticket-metadata [id$=ASPxDropDownEdit1] { height: 42px !important; }
  .ticket-details-workspace .ticket-metadata [id$=ASPxDropDownEdit1_I] { height: 40px !important; }
}

/* Native captions must span the block layout used by mobile ticket grids. */
@media (max-width: 760px) {
  .ticket-grid table[id$="_DXMainTable"] { width: 100% !important; }
  .ticket-grid caption {
    display: table-caption !important; width: 100% !important; max-width: 100%;
    box-sizing: border-box; white-space: normal !important; overflow-wrap: break-word;
    padding: 10px 12px !important; margin: 0;
    font: 600 15px/1.4 'Segoe UI', Arial, sans-serif !important;
    text-align: left !important; color: #27272a !important; background: #eeeef0 !important;
  }
  .ticket-mobile-table > caption { display: block !important; }
  .ticket-grid caption * { white-space: normal !important; color: inherit !important; }
}
