/*!
 * Global Hosting portal: gh-pages.css (WHMCS child theme "globalhosting", pages layer).
 *
 * Loaded last (after twenty-one, custom.css, gh-core.css and gh-auth.css) by includes/head.tpl.
 * Styles the support/content page templates of this theme (contact, tickets, knowledge base, announcements,
 * downloads, domain pricing, error/state pages) and refines the logged-in client-area pages
 * (services, domains, invoices, tickets, account details). Component classes use the gh-pg- prefix;
 * WHMCS markup is scoped under body.gh-portal (+ .gh-tpl-<templatefile> where a rule is page specific).
 *
 *  1. Shared page components (split layout, page head, callout, channels, state, note, tips, links)
 *  2. Contact + ticket forms
 *  3. Department chooser
 *  4. Knowledge base
 *  5. Announcements
 *  6. Downloads
 *  7. Domain pricing
 *  8. Error, banned, access denied
 *  9. Client area lists: DataTables, services, domains, invoices, tickets
 * 10. View ticket, ticket confirm
 * 11. Account details, tabs, product details, server status
 * 12. Responsive + motion + print
 * 13. Invoice (standalone viewinvoice.tpl)
 */

/* ==========================================================================
   1. Shared page components
   ========================================================================== */
.gh-pg-split { display: grid; gap: 28px; align-items: start; font-family: var(--gh-font); }
.gh-pg-split__main, .gh-pg-split__aside { min-width: 0; }
.gh-pg-split__aside { display: grid; gap: 18px; }
@media (min-width: 992px) {
  /* two columns only when the page has no WHMCS sidebar (col-12); with a sidebar the aside stacks below */
  body.gh-portal .col-12.primary-content .gh-pg-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  body.gh-portal .col-12.primary-content .gh-pg-split__aside { position: sticky; top: calc(var(--gh-header-h) + 20px); }
}
@media (min-width: 1200px) {
  body.gh-portal .col-12.primary-content .gh-pg-split { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
}
/* with a WHMCS sidebar (logged-in support pages) the aside sits under the content as a row of cards */
body.gh-portal .col-lg-8.primary-content .gh-pg-split__aside { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }

body.gh-portal .gh-pg-card { margin-bottom: 0; }
body.gh-portal .gh-pg-card > .card-body { padding: 36px 40px 40px; }

.gh-pg-head { margin: 0 0 26px; }
.gh-pg-head--plain { margin-bottom: 22px; }
.gh-portal .gh-pg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  color: var(--gh-red); font: 700 var(--gh-fs-xs)/1.2 var(--gh-font); letter-spacing: .12em; text-transform: uppercase;
}
.gh-portal .gh-pg-title {
  margin: 0; color: var(--gh-ink); font: 800 clamp(1.4rem, 1.2rem + .7vw, 1.75rem)/1.2 var(--gh-font); letter-spacing: -.022em;
}
.gh-portal .gh-pg-lead { max-width: 62ch; margin: 10px 0 0; color: var(--gh-muted); font: 500 1rem/1.6 var(--gh-font); }

/* Navy callout (phone, quick help) */
.gh-pg-callout {
  position: relative; overflow: hidden; padding: 24px 24px 22px; border-radius: var(--gh-radius-lg);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(124, 140, 255, .22), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(187, 52, 55, .28), transparent 65%),
    var(--gh-navy-900);
  color: var(--gh-on-dark-muted); box-shadow: var(--gh-shadow);
}
.gh-pg-callout__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: rgba(187, 52, 55, .24); color: var(--gh-red-soft);
}
.gh-portal .gh-pg-callout__label { margin: 0; color: var(--gh-on-dark-muted); font: 700 var(--gh-fs-xs)/1.3 var(--gh-font); letter-spacing: .1em; text-transform: uppercase; }
.gh-portal .gh-pg-callout__value { margin: 4px 0 6px; font: 800 1.75rem/1.15 var(--gh-font); letter-spacing: -.02em; }
.gh-portal .gh-pg-callout__value a { color: #fff; text-decoration: none; }
.gh-portal .gh-pg-callout__value a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.gh-portal .gh-pg-callout__text { margin: 0; color: var(--gh-on-dark-muted); font-size: var(--gh-fs-sm); line-height: 1.55; }
.gh-portal .gh-pg-callout__phones { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 18px; padding-top: 12px; border-top: 1px solid var(--gh-on-dark-line); font: 600 var(--gh-fs-sm)/1.4 var(--gh-font); }
.gh-portal .gh-pg-callout__phones a { color: #fff; }
.gh-pg-callout .gh-btn { margin-top: 4px; }

/* Channel list (email, ticket, address) */
.gh-pg-channels {
  margin: 0; padding: 6px 22px; list-style: none; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg);
  background: #fff; box-shadow: var(--gh-shadow-sm); font-family: var(--gh-font);
}
.gh-pg-channel { display: flex; gap: 14px; padding: 16px 0; }
.gh-pg-channel + .gh-pg-channel { border-top: 1px solid var(--gh-line); }
.gh-pg-channel__icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--gh-red-50); color: var(--gh-red);
}
.gh-pg-channel__body { min-width: 0; }
.gh-portal .gh-pg-channel__title { margin: 1px 0 2px; color: var(--gh-ink); font: 700 .9375rem/1.35 var(--gh-font); }
.gh-portal .gh-pg-channel__text { margin: 0; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.55 var(--gh-font); overflow-wrap: anywhere; }
.gh-portal .gh-pg-channel__text a { color: var(--gh-ink); font-weight: 600; }
.gh-portal .gh-pg-channel__text a:hover { color: var(--gh-red); }

/* Inline arrow link */
.gh-portal .gh-pg-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  color: var(--gh-red); font: 700 var(--gh-fs-sm)/1.3 var(--gh-font); text-decoration: none;
}
.gh-portal .gh-pg-link:hover { color: var(--gh-red-700); text-decoration: none; }
.gh-portal .gh-pg-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.gh-pg-link .gh-icon { transition: transform var(--gh-dur) var(--gh-ease); }
.gh-pg-link:hover .gh-icon { transform: translateX(3px); }

/* State panel (success, empty, error) */
.gh-pg-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 28px 40px; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg);
  background: #fff; box-shadow: var(--gh-shadow-sm); font-family: var(--gh-font);
}
.gh-pg-card .gh-pg-state { padding: 34px 24px 30px; border-style: dashed; box-shadow: none; background: var(--gh-bg-alt); }
.gh-pg-state__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px;
  border-radius: 20px; background: var(--gh-red-50); color: var(--gh-red);
}
.gh-pg-state--success .gh-pg-state__icon { background: var(--gh-success-bg); color: var(--gh-success); }
.gh-pg-state--info .gh-pg-state__icon { background: #EEF1FF; color: #3B4A9E; }
.gh-pg-state--dark .gh-pg-state__icon { background: var(--gh-navy-900); color: #fff; }
.gh-portal .gh-pg-state__code {
  margin: 0 0 6px; color: var(--gh-red); font: 800 var(--gh-fs-xs)/1.2 var(--gh-font); letter-spacing: .14em; text-transform: uppercase;
}
.gh-portal .gh-pg-state__title { margin: 0; color: var(--gh-ink); font: 800 clamp(1.3rem, 1.15rem + .6vw, 1.625rem)/1.25 var(--gh-font); letter-spacing: -.02em; text-wrap: balance; }
.gh-portal .gh-pg-state__text { max-width: 56ch; margin: 10px auto 0; color: var(--gh-muted); font: 500 1rem/1.6 var(--gh-font); }
.gh-pg-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.gh-pg-state + .gh-pg-section, .gh-pg-state + .gh-pg-quick { margin-top: 28px; }

/* Note bar (login hint etc.) */
.gh-pg-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 18px;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius); background: #fff; font-family: var(--gh-font);
}
.gh-pg-note__icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--gh-bg-soft); color: var(--gh-ink);
}
.gh-portal .gh-pg-note__text { flex: 1 1 auto; margin: 0; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.55 var(--gh-font); }
.gh-portal .gh-pg-note__text strong { color: var(--gh-ink); }
.gh-pg-note .gh-btn { flex: none; }

/* Tips card */
.gh-pg-tips {
  padding: 22px 22px 24px; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg);
  background: #fff; box-shadow: var(--gh-shadow-sm); font-family: var(--gh-font);
}
.gh-portal .gh-pg-tips__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--gh-ink); font: 800 1rem/1.3 var(--gh-font); }
.gh-pg-tips__title .gh-icon { color: var(--gh-red); }
.gh-pg-tips .gh-checklist > li { font-size: var(--gh-fs-sm); }

/* Quick links grid (empty states, 404) */
.gh-pg-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gh-pg-quick > li { display: flex; }
.gh-portal .gh-pg-quick__item {
  display: flex; flex: 1 1 auto; align-items: flex-start; gap: 14px; padding: 18px;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius); background: #fff; box-shadow: var(--gh-shadow-xs);
  color: var(--gh-text); text-decoration: none; font-family: var(--gh-font);
  transition: border-color var(--gh-dur), box-shadow var(--gh-dur), transform var(--gh-dur) var(--gh-ease);
}
.gh-portal .gh-pg-quick__item:hover, .gh-portal .gh-pg-quick__item:focus-visible { border-color: var(--gh-line-strong); box-shadow: var(--gh-shadow); transform: translateY(-2px); color: var(--gh-text); text-decoration: none; }
.gh-pg-quick__icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--gh-red-50); color: var(--gh-red); transition: background-color var(--gh-dur), color var(--gh-dur);
}
.gh-pg-quick__item:hover .gh-pg-quick__icon { background: var(--gh-red); color: #fff; }
.gh-pg-quick__label { display: block; color: var(--gh-ink); font: 700 .9375rem/1.35 var(--gh-font); }
.gh-pg-quick__desc { display: block; margin-top: 3px; color: var(--gh-muted); font: 500 var(--gh-fs-xs)/1.5 var(--gh-font); }

/* Section heading inside a page */
.gh-portal .gh-pg-section-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--gh-ink);
  font: 800 1.125rem/1.3 var(--gh-font); letter-spacing: -.012em;
}
.gh-pg-section-title .gh-icon { color: var(--gh-red); }
.gh-pg-section + .gh-pg-section { margin-top: 32px; }

/* Search bar (KB, downloads) */
body.gh-portal .gh-pg-search { margin: 0 0 26px; }
body.gh-portal .gh-pg-search .input-group {
  flex-wrap: nowrap; padding: 6px; border: 1.5px solid var(--gh-line-strong); border-radius: 16px; background: #fff;
  box-shadow: var(--gh-shadow-sm); transition: border-color var(--gh-dur), box-shadow var(--gh-dur);
}
body.gh-portal .gh-pg-search .input-group:focus-within { border-color: var(--gh-ink); box-shadow: 0 0 0 4px rgba(91, 124, 255, .2); }
body.gh-portal .gh-pg-search__icon { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--gh-muted); }
body.gh-portal .gh-pg-search .form-control {
  height: 48px; border: 0; border-radius: 10px; box-shadow: none; padding-left: 8px; font-size: 1rem; font-weight: 500;
}
body.gh-portal .gh-pg-search .form-control:focus { box-shadow: none; }
body.gh-portal .gh-pg-search .input-group-append .btn { min-width: 112px; height: 48px; border-radius: 12px !important; font-size: .9375rem; }

/* ==========================================================================
   2. Contact + ticket forms
   ========================================================================== */
body.gh-portal .gh-pg-form .form-row, body.gh-portal .gh-pg-ticket .form-row { margin-left: -8px; margin-right: -8px; }
body.gh-portal .gh-pg-form .form-row > [class*="col-"], body.gh-portal .gh-pg-ticket .form-row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
body.gh-portal .gh-pg-contact textarea.form-control { min-height: 180px; }
body.gh-portal .gh-pg-captcha { margin: 6px 0 4px; }
body.gh-portal .gh-pg-captcha > .row { margin: 0; justify-content: flex-start !important; text-align: left !important; }
body.gh-portal .gh-pg-captcha .recaptcha-container { margin: 4px 0 12px !important; }
body.gh-portal .gh-pg-captcha #default-captcha-domainchecker { margin: 0; }
.gh-pg-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.gh-portal .gh-pg-form__note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gh-muted); font: 500 var(--gh-fs-xs)/1.5 var(--gh-font); }
.gh-pg-form__note .gh-icon { flex: none; color: var(--gh-success); }
body.gh-portal .gh-pg-form__foot .btn-lg { min-height: 52px; }
body.gh-portal .gh-pg-form__foot .btn .gh-icon { transition: transform var(--gh-dur) var(--gh-ease); }
body.gh-portal .gh-pg-form__foot .btn:hover .gh-icon { transform: translateX(3px); }

/* Ticket attachments (Bootstrap custom-file) */
body.gh-portal .gh-pg-attach .attachment-group { flex-wrap: nowrap; }
body.gh-portal .gh-pg-attach .custom-file { height: 48px; min-width: 0; }
body.gh-portal .gh-pg-attach .custom-file-input { height: 48px; cursor: pointer; }
body.gh-portal .gh-pg-attach .custom-file-label { line-height: 1.5; font-weight: 500; border-radius: 12px 0 0 12px; }
body.gh-portal .gh-pg-attach .custom-file-label::after { line-height: 1.5; border-radius: 0; }
body.gh-portal .gh-pg-attach .input-group-append .btn { height: 48px; border-width: 1.5px; border-left-width: 0; border-radius: 0 12px 12px 0; white-space: nowrap; }
body.gh-portal .gh-pg-attach #fileUploadsContainer .custom-file-label { border-radius: 12px; }
body.gh-portal .gh-pg-attach #fileUploadsContainer .attachment-group { margin-top: 8px; }
body.gh-portal .gh-pg-attach__hint { margin-top: 6px; }
body.gh-portal .custom-file-label[data-browse]::after { content: attr(data-browse); }

/* Markdown editor (ticket open / reply) */
body.gh-portal .md-editor { overflow: hidden; border: 1.5px solid var(--gh-line-strong); border-radius: 14px; background: #fff; }
body.gh-portal .md-editor > .md-header { padding: 8px; border-bottom: 1px solid var(--gh-line); background: var(--gh-bg-alt); }
body.gh-portal .md-editor .btn-toolbar { gap: 6px; }
body.gh-portal .md-editor .btn-group { margin: 0 !important; }
body.gh-portal .md-editor .md-header .btn, body.gh-portal .md-editor .md-header .btn-default {
  height: 34px; min-width: 36px; padding: 0 10px; border: 1px solid var(--gh-line); background: #fff; color: var(--gh-text);
  font-size: .8125rem; box-shadow: none;
}
body.gh-portal .md-editor .md-header .btn:hover { border-color: var(--gh-line-strong); color: var(--gh-ink); background: #fff; }
body.gh-portal .md-editor .md-header .btn-primary, body.gh-portal .md-editor .md-header .btn.active {
  background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; box-shadow: none;
}
body.gh-portal .md-editor > textarea, body.gh-portal .md-editor > .md-preview {
  padding: 14px 16px; border: 0; background: #fff; color: var(--gh-ink); font: 500 .9688rem/1.6 var(--gh-font); box-shadow: none;
}
body.gh-portal .md-editor > .md-footer, body.gh-portal .md-editor .md-footer {
  padding: 6px 12px; border-top: 1px solid var(--gh-line); background: var(--gh-bg-alt); color: var(--gh-muted); font-size: .75rem;
}
body.gh-portal .md-editor.active { border-color: var(--gh-ink); box-shadow: 0 0 0 4px rgba(91, 124, 255, .2); }
body.gh-portal .md-editor .md-control-fullscreen { color: var(--gh-muted); }

/* KB suggestions while typing a ticket */
body.gh-portal #autoAnswerSuggestions { margin: 0 0 18px; }
body.gh-portal #autoAnswerSuggestions .kb-article-item { border-radius: 10px; }

/* ==========================================================================
   3. Department chooser (submitticket.php)
   ========================================================================== */
.gh-pg-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gh-pg-depts > li { display: flex; }
.gh-portal .gh-pg-dept {
  position: relative; display: flex; flex: 1 1 auto; align-items: flex-start; gap: 16px; padding: 22px 20px 22px 22px;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm);
  color: var(--gh-text); text-decoration: none; font-family: var(--gh-font);
  transition: transform .25s var(--gh-ease), box-shadow .25s var(--gh-ease), border-color .25s var(--gh-ease);
}
.gh-portal .gh-pg-dept:hover, .gh-portal .gh-pg-dept:focus-visible {
  transform: translateY(-3px); border-color: var(--gh-line-strong); box-shadow: var(--gh-shadow); color: var(--gh-text); text-decoration: none;
}
.gh-portal .gh-pg-dept:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }
.gh-pg-dept__icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--gh-red-50); color: var(--gh-red); transition: background-color .25s, color .25s;
}
.gh-pg-dept:hover .gh-pg-dept__icon { background: var(--gh-red); color: #fff; }
.gh-pg-dept__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding-top: 2px; }
.gh-pg-dept__name { color: var(--gh-ink); font: 800 1.0625rem/1.3 var(--gh-font); letter-spacing: -.01em; }
.gh-pg-dept__text { margin-top: 5px; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.55 var(--gh-font); }
.gh-pg-dept__arrow {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: 7px;
  border-radius: 50%; background: var(--gh-bg-alt); color: var(--gh-ink);
  transition: background-color .25s, color .25s, transform .25s var(--gh-ease);
}
.gh-pg-dept:hover .gh-pg-dept__arrow { background: var(--gh-ink); color: #fff; transform: translateX(2px); }

/* ==========================================================================
   4. Knowledge base
   ========================================================================== */
.gh-pg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.gh-pg-cats > li { display: flex; }
.gh-portal .gh-pg-cat {
  position: relative; display: flex; flex: 1 1 auto; align-items: flex-start; gap: 14px; padding: 20px;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm);
  color: var(--gh-text); text-decoration: none; font-family: var(--gh-font);
  transition: transform .25s var(--gh-ease), box-shadow .25s var(--gh-ease), border-color .25s;
}
.gh-portal .gh-pg-cat:hover, .gh-portal .gh-pg-cat:focus-visible { transform: translateY(-3px); box-shadow: var(--gh-shadow); border-color: var(--gh-line-strong); color: var(--gh-text); text-decoration: none; }
.gh-pg-cat__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gh-bg-soft); color: var(--gh-ink); transition: background-color .25s, color .25s; }
.gh-pg-cat:hover .gh-pg-cat__icon { background: var(--gh-ink); color: #fff; }
.gh-pg-cat__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.gh-pg-cat__name { color: var(--gh-ink); font: 800 1rem/1.35 var(--gh-font); }
.gh-pg-cat__desc { margin-top: 4px; color: var(--gh-muted); font: 500 var(--gh-fs-xs)/1.5 var(--gh-font); }
.gh-pg-cat__count {
  align-self: flex-start; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--gh-bg-alt);
  color: var(--gh-muted); font: 700 .75rem/1.3 var(--gh-font); white-space: nowrap;
}
.gh-pg-cat .btn { position: absolute; right: 12px; bottom: 12px; }

/* Article list (KB + downloads) */
.gh-pg-list {
  margin: 0; padding: 0; list-style: none; overflow: hidden;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm);
  font-family: var(--gh-font);
}
.gh-pg-list > li + li { border-top: 1px solid var(--gh-line); }
.gh-portal .gh-pg-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--gh-text); text-decoration: none;
  transition: background-color var(--gh-dur);
}
.gh-portal a.gh-pg-row:hover, .gh-portal a.gh-pg-row:focus-visible { background: var(--gh-bg-alt); color: var(--gh-text); text-decoration: none; }
.gh-portal a.gh-pg-row:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: -3px; }
.gh-pg-row__icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--gh-red-50); color: var(--gh-red);
}
.gh-pg-row__icon--muted { background: var(--gh-bg-soft); color: var(--gh-ink); }
.gh-pg-row__body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.gh-pg-row__title { color: var(--gh-ink); font: 700 .9688rem/1.4 var(--gh-font); }
.gh-pg-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; color: var(--gh-muted); font: 500 var(--gh-fs-xs)/1.5 var(--gh-font); }
.gh-pg-row__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.gh-pg-row__excerpt { margin-top: 4px; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.55 var(--gh-font); }
.gh-pg-row__action {
  display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--gh-line-strong);
  border-radius: 10px; background: #fff; color: var(--gh-ink); font: 700 var(--gh-fs-xs)/1 var(--gh-font); white-space: nowrap;
  transition: background-color var(--gh-dur), border-color var(--gh-dur), color var(--gh-dur);
}
.gh-pg-row:hover .gh-pg-row__action { background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; }
.gh-pg-row__chev { flex: none; color: var(--gh-subtle); transition: transform var(--gh-dur) var(--gh-ease), color var(--gh-dur); }
.gh-pg-row:hover .gh-pg-row__chev { color: var(--gh-red); transform: translateX(3px); }
.gh-pg-row .label { flex: none; }
.gh-pg-row .btn { flex: none; }
.gh-pg-list__empty { padding: 22px 20px; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.5 var(--gh-font); }

.gh-pg-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }

/* KB article */
body.gh-portal .gh-pg-article > .card-body { padding: 36px 40px 34px; }
.gh-pg-article__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--gh-line); }
.gh-portal .gh-pg-article__title { margin: 0; color: var(--gh-ink); font: 800 clamp(1.5rem, 1.25rem + 1vw, 2.125rem)/1.2 var(--gh-font); letter-spacing: -.025em; }
.gh-pg-article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.4 var(--gh-font); }
.gh-pg-article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.gh-pg-vote {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 28px; padding: 18px 20px;
  border-radius: var(--gh-radius); background: var(--gh-bg-alt); font-family: var(--gh-font);
}
.gh-portal .gh-pg-vote__q { margin: 0; color: var(--gh-ink); font: 700 1rem/1.4 var(--gh-font); }
.gh-pg-vote__btns { display: flex; gap: 8px; }

/* Rich text (KB articles, announcements) */
.gh-pg-prose { color: var(--gh-text); font: 400 1.0313rem/1.75 var(--gh-font); overflow-wrap: break-word; }
.gh-pg-prose > :first-child { margin-top: 0; }
.gh-pg-prose > :last-child { margin-bottom: 0; }
.gh-pg-prose p, .gh-pg-prose ul, .gh-pg-prose ol { margin: 0 0 1.1em; }
.gh-portal .gh-pg-prose h1, .gh-portal .gh-pg-prose h2, .gh-portal .gh-pg-prose h3, .gh-portal .gh-pg-prose h4 { margin: 1.6em 0 .6em; color: var(--gh-ink); font-weight: 800; letter-spacing: -.015em; }
.gh-portal .gh-pg-prose h1, .gh-portal .gh-pg-prose h2 { font-size: 1.375rem; }
.gh-portal .gh-pg-prose h3, .gh-portal .gh-pg-prose h4 { font-size: 1.125rem; }
.gh-pg-prose ul, .gh-pg-prose ol { padding-left: 1.3em; }
.gh-pg-prose li { margin: .3em 0; }
.gh-pg-prose li::marker { color: var(--gh-red); }
.gh-portal .gh-pg-prose a { color: var(--gh-red); text-decoration: underline; text-underline-offset: 3px; }
.gh-pg-prose img { max-width: 100%; height: auto; border-radius: var(--gh-radius); }
.gh-pg-prose table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: .9375rem; }
.gh-pg-prose th, .gh-pg-prose td { padding: 10px 12px; border: 1px solid var(--gh-line); text-align: left; }
.gh-pg-prose th { background: var(--gh-bg-alt); color: var(--gh-ink); }
.gh-pg-prose strong, .gh-pg-prose b { color: var(--gh-ink); }

/* ==========================================================================
   5. Announcements
   ========================================================================== */
.gh-pg-ann { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; font-family: var(--gh-font); }
.gh-pg-ann__item {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; padding: 26px 28px;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm);
  transition: box-shadow .25s var(--gh-ease), border-color .25s;
}
.gh-pg-ann__item:hover { border-color: var(--gh-line-strong); box-shadow: var(--gh-shadow); }
.gh-pg-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; height: 82px;
  border-radius: 16px; background: var(--gh-navy-900); color: #fff; text-align: center; line-height: 1;
  background-image: radial-gradient(80% 70% at 100% 0%, rgba(124, 140, 255, .3), transparent 70%), radial-gradient(80% 70% at 0% 100%, rgba(187, 52, 55, .35), transparent 70%);
}
.gh-pg-date__day { font: 800 1.75rem/1 var(--gh-font); letter-spacing: -.03em; }
.gh-pg-date__month { margin-top: 5px; color: var(--gh-red-soft); font: 800 .75rem/1 var(--gh-font); letter-spacing: .12em; text-transform: uppercase; }
.gh-pg-date__year { margin-top: 4px; color: var(--gh-on-dark-muted); font: 600 .75rem/1 var(--gh-font); }
.gh-pg-ann__body { min-width: 0; }
.gh-portal .gh-pg-ann__title { margin: 2px 0 8px; font: 800 1.3125rem/1.3 var(--gh-font); letter-spacing: -.018em; }
.gh-portal .gh-pg-ann__title a { color: var(--gh-ink); text-decoration: none; }
.gh-portal .gh-pg-ann__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--gh-radius-lg); }
.gh-portal .gh-pg-ann__title a:hover { color: var(--gh-red); text-decoration: none; }
.gh-portal .gh-pg-ann__title a:focus-visible { outline: none; }
.gh-portal .gh-pg-ann__title a:focus-visible::after { outline: 3px solid var(--gh-focus); outline-offset: 2px; }
.gh-pg-ann__excerpt { margin: 0; color: var(--gh-muted); font: 500 .9688rem/1.65 var(--gh-font); }
.gh-pg-ann__excerpt p { margin: 0 0 .6em; }
.gh-pg-ann__excerpt a { position: relative; z-index: 1; }
.gh-pg-ann__excerpt p:last-child { margin-bottom: 0; }
.gh-pg-ann__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--gh-red); font: 700 var(--gh-fs-sm)/1.3 var(--gh-font); }
.gh-pg-ann__item:hover .gh-pg-ann__more .gh-icon { transform: translateX(3px); }
.gh-pg-ann__more .gh-icon { transition: transform var(--gh-dur) var(--gh-ease); }
.gh-pg-ann__edit { position: relative; z-index: 2; }
body.gh-portal .gh-pg-pager { margin-top: 24px; }

/* Single announcement */
body.gh-portal .gh-pg-post > .card-body { padding: 40px 44px 44px; }
.gh-pg-post__head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--gh-line); }
.gh-portal .gh-pg-post__title { margin: 8px 0 0; color: var(--gh-ink); font: 800 clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem)/1.18 var(--gh-font); letter-spacing: -.028em; text-wrap: balance; }
.gh-pg-post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--gh-muted); font: 600 var(--gh-fs-sm)/1.3 var(--gh-font); }
.gh-pg-post__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.gh-pg-post__meta .gh-icon { color: var(--gh-red); }
.gh-pg-post .gh-pg-prose { max-width: 72ch; }
.gh-pg-post__social { margin-top: 26px; }

/* ==========================================================================
   6. Downloads
   ========================================================================== */
.gh-pg-filetype {
  position: relative; display: inline-flex; flex: none; align-items: flex-end; justify-content: center; width: 40px; height: 46px; padding-bottom: 6px;
  border-radius: 8px 14px 8px 8px; background: var(--gh-red-50); color: var(--gh-red-700);
  font: 800 .625rem/1 var(--gh-font); letter-spacing: .06em; text-transform: uppercase;
}
.gh-pg-filetype::before { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 0 12px 0 6px; background: rgba(187, 52, 55, .22); }
.gh-pg-filetype .gh-icon { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); }
.gh-pg-row .label-danger { background: var(--gh-red-50); color: var(--gh-red-700); }

/* ==========================================================================
   7. Domain pricing (index.php?rp=/domain/pricing)
   ========================================================================== */
.gh-pg-dp { font-family: var(--gh-font); }
.gh-pg-dp__search {
  position: relative; overflow: hidden; margin-bottom: 30px; padding: 30px 32px; border-radius: var(--gh-radius-xl);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(124, 140, 255, .24), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(187, 52, 55, .32), transparent 65%),
    var(--gh-navy-900);
  color: var(--gh-on-dark-muted); box-shadow: var(--gh-shadow);
}
.gh-pg-dp__search::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.gh-pg-dp__search > * { position: relative; z-index: 1; }
.gh-portal .gh-pg-dp__search-title { margin: 0 0 6px; color: #fff; font: 800 clamp(1.3rem, 1.15rem + .6vw, 1.625rem)/1.25 var(--gh-font); letter-spacing: -.02em; }
.gh-portal .gh-pg-dp__search-text { margin: 0 0 18px; color: var(--gh-on-dark-muted); font: 500 .9688rem/1.55 var(--gh-font); }
.gh-pg-dp__form { display: flex; gap: 10px; }
.gh-pg-dp__field {
  display: flex; flex: 1 1 auto; align-items: center; min-width: 0; height: 58px; padding: 0 6px 0 18px;
  border: 2px solid transparent; border-radius: 16px; background: #fff; box-shadow: var(--gh-shadow-lg);
  transition: border-color var(--gh-dur), box-shadow var(--gh-dur);
}
.gh-pg-dp__field:focus-within { border-color: var(--gh-indigo); box-shadow: 0 0 0 4px rgba(124, 140, 255, .35); }
.gh-pg-dp__field .gh-icon { flex: none; color: var(--gh-muted); }
body.gh-portal .gh-pg-dp__input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; box-shadow: none;
  color: var(--gh-ink); font: 700 1.0625rem/1 var(--gh-font);
}
body.gh-portal .gh-pg-dp__input::placeholder { color: #767C96; font-weight: 600; opacity: 1; }
body.gh-portal .gh-pg-dp__form .gh-btn { flex: none; min-height: 58px; padding-left: 26px; padding-right: 26px; border-radius: 16px; }
.gh-pg-dp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.gh-portal .gh-pg-dp__chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: rgba(255, 255, 255, .05); color: #fff; font: 700 var(--gh-fs-xs)/1.2 var(--gh-font); text-decoration: none;
  transition: background-color var(--gh-dur), border-color var(--gh-dur);
}
.gh-portal .gh-pg-dp__chip span { color: var(--gh-on-dark-muted); font-weight: 600; }
.gh-portal .gh-pg-dp__chip:hover, .gh-portal .gh-pg-dp__chip:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; text-decoration: none; }

.gh-pg-dp__featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.gh-pg-tld {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm);
}
.gh-pg-tld__logo { display: flex; align-items: center; justify-content: center; height: 92px; padding: 16px 20px; }
.gh-pg-tld__logo img { max-width: 100%; max-height: 56px; width: auto; height: auto; }
.gh-pg-tld__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--gh-line); background: var(--gh-bg-alt); }
.gh-pg-tld__name { color: var(--gh-ink); font: 800 1rem/1.2 var(--gh-font); }
.gh-pg-tld__price { color: var(--gh-ink); font: 800 1rem/1.2 var(--gh-font); white-space: nowrap; }
.gh-pg-tld__price small { color: var(--gh-muted); font-size: .75rem; font-weight: 600; }

.gh-pg-dp__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.gh-portal .gh-pg-dp__bar-title { margin: 0 0 10px; color: var(--gh-ink); font: 800 1.125rem/1.3 var(--gh-font); letter-spacing: -.012em; }
body.gh-portal .gh-pg-dp .tld-filters { display: flex; flex-wrap: wrap; gap: 8px; }
body.gh-portal .gh-pg-dp .tld-filters .badge {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border: 1px solid var(--gh-line-strong);
  border-radius: 999px; background: #fff; color: var(--gh-ink); font: 700 var(--gh-fs-sm)/1.2 var(--gh-font); vertical-align: baseline;
  transition: background-color var(--gh-dur), border-color var(--gh-dur), color var(--gh-dur);
}
body.gh-portal .gh-pg-dp .tld-filters .badge:hover { border-color: var(--gh-ink); text-decoration: none; }
body.gh-portal .gh-pg-dp .tld-filters .badge:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }
body.gh-portal .gh-pg-dp .tld-filters .badge-success { background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; }
body.gh-portal .gh-pg-dp .tld-filters .badge span { color: inherit; opacity: .65; font-weight: 600; }
.gh-pg-dp__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.gh-portal .gh-pg-dp__filter { position: relative; }
body.gh-portal .gh-pg-dp__filter .gh-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gh-muted); pointer-events: none; }
body.gh-portal .gh-pg-dp__filter .form-control { width: 220px; height: 44px; padding-left: 40px; font-size: .9375rem; }
body.gh-portal .gh-pg-dp .currency-selector { width: auto; height: 44px; font-size: .9375rem; }

.gh-pg-dp__table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm);
}
body.gh-portal .gh-pg-dp__table { width: 100%; min-width: 720px; margin: 0; border-collapse: separate; border-spacing: 0; color: var(--gh-text); font: 500 .9375rem/1.4 var(--gh-font); }
body.gh-portal .gh-pg-dp__table th, body.gh-portal .gh-pg-dp__table td { padding: 16px 20px; border-top: 1px solid var(--gh-line); vertical-align: middle; text-align: left; }
body.gh-portal .gh-pg-dp__table thead th {
  border-top: 0; background: var(--gh-bg-alt); color: var(--gh-muted); font: 700 .75rem/1.3 var(--gh-font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
body.gh-portal .gh-pg-dp__table tbody tr { transition: background-color var(--gh-dur); }
body.gh-portal .gh-pg-dp__table tbody tr:hover { background: #FAFBFD; }
body.gh-portal .gh-pg-dp__table tbody th { color: var(--gh-ink); font: 800 1.0625rem/1.2 var(--gh-font); letter-spacing: -.01em; white-space: nowrap; }
.gh-pg-dp__cat { display: inline-block; margin-top: 5px; color: var(--gh-muted); font: 600 .75rem/1.2 var(--gh-font); }
.gh-pg-dp__price { display: block; color: var(--gh-ink); font: 700 1rem/1.25 var(--gh-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-pg-dp__price--free { color: var(--gh-success); }
.gh-pg-dp__term { display: block; margin-top: 3px; color: var(--gh-muted); font: 500 .75rem/1.2 var(--gh-font); }
.gh-pg-dp__na { color: var(--gh-subtle); font-weight: 600; }
.gh-pg-dp__muted { color: var(--gh-muted); font-size: .875rem; white-space: nowrap; }
body.gh-portal .gh-pg-dp__table .gh-pg-dp__cta { text-align: right; white-space: nowrap; }
.gh-pg-dp .tld-sale-group { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--gh-red); color: #fff; font: 800 .625rem/1.2 var(--gh-font); letter-spacing: .06em; text-transform: uppercase; vertical-align: 3px; }
.gh-pg-dp__empty td { padding: 28px 20px !important; color: var(--gh-muted); text-align: center !important; }
.gh-portal .gh-pg-dp__note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--gh-muted); font: 500 var(--gh-fs-xs)/1.55 var(--gh-font); }
.gh-pg-dp__note .gh-icon { flex: none; margin-top: 1px; }
.gh-pg-dp .gh-pg-promos { margin-top: 30px; }

/* Two promo cards under the table */
.gh-pg-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gh-pg-promo {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-lg); background: #fff; box-shadow: var(--gh-shadow-sm); font-family: var(--gh-font);
}
.gh-pg-promo__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gh-red-50); color: var(--gh-red); }
.gh-portal .gh-pg-promo__title { margin: 2px 0 4px; color: var(--gh-ink); font: 800 1.0625rem/1.3 var(--gh-font); }
.gh-portal .gh-pg-promo__text { margin: 0 0 12px; color: var(--gh-muted); font: 500 var(--gh-fs-sm)/1.55 var(--gh-font); }

/* ==========================================================================
   8. Error (404), banned, access denied
   ========================================================================== */
/* error pages are rendered with $skipMainBodyContainer: drop the bare row/column offsets (they overflowed by 15px) */
body.gh-portal.gh-tpl-error-page-not-found #main-body > div:not(.container) > .row,
body.gh-portal.gh-tpl-error-unknown-routepath #main-body > div:not(.container) > .row { margin-left: 0; margin-right: 0; }
body.gh-portal.gh-tpl-error-page-not-found #main-body > div:not(.container) > .row > .primary-content,
body.gh-portal.gh-tpl-error-unknown-routepath #main-body > div:not(.container) > .row > .primary-content { padding-left: 0; padding-right: 0; }
.gh-pg-error { max-width: 980px; margin: 8px auto 0; font-family: var(--gh-font); }
.gh-pg-error .gh-pg-state { padding: 52px 28px 46px; }
.gh-pg-error__art { width: 132px; height: auto; margin-bottom: 20px; }
.gh-pg-error__search { width: 100%; max-width: 520px; margin: 26px auto 0; }
.gh-pg-error .gh-pg-quick { margin-top: 22px; }
.gh-portal .gh-pg-error__hint { margin: 18px 0 0; color: var(--gh-muted); font: 500 var(--gh-fs-xs)/1.5 var(--gh-font); text-align: center; overflow-wrap: anywhere; }
.gh-pg-banned__list { display: grid; gap: 8px; width: 100%; max-width: 440px; margin: 22px auto 0; padding: 0; list-style: none; text-align: left; }
.gh-pg-banned__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--gh-line); border-radius: 12px; background: var(--gh-bg-alt); color: var(--gh-muted); font: 600 var(--gh-fs-sm)/1.4 var(--gh-font); }
.gh-pg-banned__list strong { color: var(--gh-ink); text-align: right; overflow-wrap: anywhere; }
.gh-pg-perms { width: 100%; max-width: 440px; margin: 18px auto 0; padding: 0; list-style: none; text-align: left; }
.gh-pg-perms li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gh-line); color: var(--gh-text); font: 600 var(--gh-fs-sm)/1.4 var(--gh-font); }
.gh-pg-perms li .gh-icon { color: var(--gh-success); }

/* ==========================================================================
   9. Client area lists (DataTables): services, domains, invoices, tickets, quotes, emails
   ========================================================================== */
/* Toolbar: search left/right + info, then table, then length + pagination */
body.gh-portal .dataTables_wrapper .listtable { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
body.gh-portal .dataTables_wrapper .listtable > .dataTables_filter { order: 2; float: none; margin: 0; }
body.gh-portal .dataTables_wrapper .listtable > .dataTables_info { order: 1; float: none; padding: 0; }
body.gh-portal .dataTables_wrapper .listtable > table, body.gh-portal .dataTables_wrapper .listtable > .table { order: 3; flex: 0 0 100%; }
body.gh-portal .dataTables_wrapper .dataTables_filter label { margin: 0; }
body.gh-portal .dataTables_wrapper .dataTables_filter input { margin-left: 0 !important; width: 260px; max-width: 100%; }
body.gh-portal .dataTables_wrapper .dataTables_paginate { float: right; margin: 0; padding-top: 4px; }
body.gh-portal .dataTables_wrapper .dataTables_length { float: left; padding-top: 8px; }
body.gh-portal .dataTables_wrapper .dataTables_length label { display: inline-flex; align-items: center; gap: 8px; }
body.gh-portal .dataTables_wrapper .dataTables_length select { min-width: 76px; }
body.gh-portal .dataTables_wrapper::after { content: ""; display: table; clear: both; }
body.gh-portal .dataTables_wrapper .dataTables_empty { padding: 34px 16px !important; color: var(--gh-muted); font-weight: 600; text-align: center; }
body.gh-portal #tableLoading { padding: 30px 0; color: var(--gh-muted); font-weight: 600; }
body.gh-portal #tableLoading .fa-spinner { color: var(--gh-red); }

body.gh-portal table.table-list { font-family: var(--gh-font); }
body.gh-portal table.table-list thead th { white-space: nowrap; }
body.gh-portal table.table-list tbody tr[onclick] { cursor: pointer; }
body.gh-portal table.table-list tbody td strong { color: var(--gh-ink); font-weight: 700; }
body.gh-portal table.table-list tbody td a:not(.btn) { font-weight: 600; }
body.gh-portal table.table-list tbody td small.text-muted { display: block; margin-top: 2px; font-size: .75rem; }
body.gh-portal table.table-list td.text-center .label { min-width: 84px; text-align: center; }
body.gh-portal table.table-list .ssl-info img { width: 22px; opacity: .9; }
body.gh-portal table.table-list input.domids, body.gh-portal table.table-list input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; }

/* DataTables Responsive (collapsed rows on phones) */
body.gh-portal table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
body.gh-portal table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before,
body.gh-portal table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child::before {
  top: 50%; transform: translateY(-50%); width: 18px; height: 18px; line-height: 18px; border: 0; border-radius: 6px;
  background-color: var(--gh-ink); box-shadow: none; font-family: var(--gh-font); font-weight: 800; text-indent: 0;
}
body.gh-portal table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before,
body.gh-portal table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before { background-color: var(--gh-red); }
body.gh-portal table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
body.gh-portal table.dataTable > tbody > tr.child ul.dtr-details > li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom-color: var(--gh-line); }
body.gh-portal table.dataTable > tbody > tr.child span.dtr-title { min-width: 0; color: var(--gh-muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Tickets list */
body.gh-portal #tableTicketsList a.border-left { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-left: 0; border-left: 0 !important; color: var(--gh-ink); }
body.gh-portal #tableTicketsList .ticket-number {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 8px; background: var(--gh-bg-soft);
  color: var(--gh-muted); font: 700 .75rem/1.3 var(--gh-font); font-variant-numeric: tabular-nums;
}
body.gh-portal #tableTicketsList .ticket-subject { color: var(--gh-ink); font-weight: 600; }
body.gh-portal #tableTicketsList .ticket-subject.unread { font-weight: 800; }
body.gh-portal #tableTicketsList .ticket-subject.unread::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gh-red); vertical-align: 1px; }
body.gh-portal .label.status-custom { color: #fff; }

/* Domains list */
body.gh-portal #tableDomainsList th:first-child, body.gh-portal #tableDomainsList td:first-child { width: 44px; padding-right: 0; }
body.gh-portal #tableDomainsList th:nth-child(2), body.gh-portal #tableDomainsList td:nth-child(2) { width: 44px; padding-left: 6px; padding-right: 6px; }
body.gh-portal #tableDomainsList td:nth-child(3) { min-width: 210px; }
body.gh-portal #tableDomainsList td:nth-child(3) > a { font-weight: 700; white-space: nowrap; }
body.gh-portal #tableDomainsList td:nth-child(3) small { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; color: var(--gh-muted); }
body.gh-portal #tableServicesList td:first-child { width: 52px; }
/* Domains list bulk actions */
body.gh-portal #domainForm > .btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
body.gh-portal #domainForm > .btn-group > .btn, body.gh-portal #domainForm > .btn-group > .btn-group > .btn { flex: 0 0 auto; margin: 0; border-radius: 10px !important; white-space: nowrap; }

/* Sidebar status filters (Pogled) */
body.gh-portal .sidebar .view-filter-btns .list-group-item i.fa-circle, body.gh-portal .sidebar .view-filter-btns .list-group-item i.fa-dot-circle { margin-right: 4px; color: var(--gh-subtle); }
body.gh-portal .sidebar .view-filter-btns .list-group-item.active i.fa-dot-circle { color: var(--gh-red); }

/* Invoices: overdue/unpaid totals on the masspay and addfunds pages */
body.gh-portal.gh-tpl-masspay .table tfoot td, body.gh-portal.gh-tpl-masspay .table .bg-light { font-weight: 700; color: var(--gh-ink); }

/* ==========================================================================
   10. View ticket, ticket confirm
   ========================================================================== */
body.gh-portal .view-ticket { overflow: hidden; }
body.gh-portal .view-ticket > .card-body:first-child { padding: 24px 28px !important; border-bottom: 1px solid var(--gh-line); background: #fff; }
body.gh-portal .view-ticket > .card-body:first-child .card-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 1.25rem; }
body.gh-portal .view-ticket > .card-body:first-child .ticket-actions { display: flex; gap: 8px; margin: 0 !important; float: none !important; }
body.gh-portal .view-ticket > .card-body:first-child p { margin: 0; color: var(--gh-muted); }
body.gh-portal .view-ticket > .card-body:first-child p strong { color: var(--gh-ink); }
body.gh-portal .view-ticket > .card-body + .card-body { padding: 18px 28px; background: var(--gh-bg-alt); }
body.gh-portal .view-ticket > .card-body + .card-body + .card-body { padding-top: 0; }
body.gh-portal .view-ticket > .card-body:last-child { padding-bottom: 26px; }
body.gh-portal .ticket-reply {
  position: relative; margin: 0 48px 0 0; overflow: hidden; border: 1px solid var(--gh-line); border-radius: 18px 18px 18px 6px;
  background: #fff; box-shadow: var(--gh-shadow-xs); font-family: var(--gh-font);
}
body.gh-portal .ticket-reply.staff { margin: 0 0 0 48px; border-color: #F1D5D6; border-radius: 18px 18px 6px 18px; background: #fff; }
body.gh-portal .view-ticket .ticket-reply .posted-by {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 18px; border-bottom: 1px solid var(--gh-line);
  background: #fff; color: var(--gh-muted); font: 500 .8125rem/1.4 var(--gh-font);
}
body.gh-portal .view-ticket .ticket-reply.staff .posted-by { background: var(--gh-red-50); border-bottom-color: #F1D5D6; }
body.gh-portal .ticket-reply .posted-by-name { color: var(--gh-ink); font-weight: 800; }
body.gh-portal .ticket-reply .posted-on { color: var(--gh-muted); }
body.gh-portal .ticket-reply .posted-by-name + .posted-on::before { content: "·"; margin-right: 10px; color: var(--gh-subtle); }
body.gh-portal .ticket-reply .requestor-badge {
  margin-left: auto; float: none !important; padding: 3px 10px; border-radius: 999px; background: var(--gh-bg-soft); color: var(--gh-ink);
  font: 700 .6875rem/1.3 var(--gh-font); letter-spacing: .06em; text-transform: uppercase;
}
body.gh-portal .ticket-reply .requestor-type-operator, body.gh-portal .ticket-reply.staff .requestor-badge { background: var(--gh-red); color: #fff; }
body.gh-portal .ticket-reply .message { padding: 16px 18px !important; color: var(--gh-text); font-size: .9688rem; line-height: 1.7; overflow-wrap: anywhere; }
body.gh-portal .ticket-reply .message hr { margin: 14px 0 10px; }
body.gh-portal .ticket-reply .message p:last-child { margin-bottom: 0; }
body.gh-portal .ticket-reply .attachments { padding: 12px 18px 16px !important; border-top: 1px dashed var(--gh-line); background: #FCFCFE; font-size: .8125rem; }
body.gh-portal .ticket-reply .attachment-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
body.gh-portal .view-ticket .attachment-list li { display: block; width: auto; margin: 0; }
body.gh-portal .view-ticket .attachment-list li a { display: block; border-radius: 10px; text-decoration: none; }
body.gh-portal .view-ticket .attachment-list li span {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid var(--gh-line); border-radius: 10px;
  background: #fff; color: var(--gh-ink); font-weight: 600; transition: border-color var(--gh-dur), box-shadow var(--gh-dur);
}
body.gh-portal .view-ticket .attachment-list li a:hover span { border-color: var(--gh-line-strong); box-shadow: var(--gh-shadow-sm); }
body.gh-portal .view-ticket .attachment-list li figure { margin: 0; padding: 0; background: none; color: var(--gh-red); font-size: 1rem; line-height: 1; }
body.gh-portal .view-ticket .attachment-list .caption { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gh-portal .view-ticket .attachments strong { color: var(--gh-ink); }
body.gh-portal .ticket-reply .rating, body.gh-portal .ticket-reply .rating-done { margin-top: 12px; }
body.gh-portal .ticket-reply .rating span.star::before, body.gh-portal .ticket-reply .rating-done span.star::before { color: var(--gh-line-strong); }
body.gh-portal .ticket-reply .rating span.star:hover::before, body.gh-portal .ticket-reply .rating span.star:hover ~ span.star::before,
body.gh-portal .ticket-reply .rating-done span.star.active::before { color: #E0A030; }
body.gh-portal #ticketReplyContainer .card-body { padding: 26px 28px; }
body.gh-portal #ticketReplyContainer .form-group.text-center { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; text-align: left !important; }
body.gh-portal #ticketReplyContainer .custom-file { height: 48px; }
body.gh-portal #ticketReplyContainer .custom-file-label { border-radius: 12px 0 0 12px; }
body.gh-portal #ticketReplyContainer .input-group-append .btn { border-radius: 0 12px 12px 0; height: 48px; }
/* Sidebar ticket info (viewticket) */
body.gh-portal .sidebar .ticket-details-children .list-group-item, body.gh-portal .sidebar .ticket-details-children .ticket-details-children-item { font-size: .875rem; }
body.gh-portal .sidebar .card-body .ticket-status .label, body.gh-portal .sidebar .label.status { display: inline-block; }

/* Ticket confirm (step 3) */
.gh-pg-confirm { max-width: 760px; margin: 0 auto; }
.gh-pg-confirm .gh-pg-state__ref {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 12px;
  background: var(--gh-bg-alt); color: var(--gh-muted); font: 600 var(--gh-fs-sm)/1.3 var(--gh-font);
}
.gh-portal .gh-pg-confirm .gh-pg-state__ref a { color: var(--gh-ink); font-weight: 800; }

/* ==========================================================================
   11. Account details, tabs, product details, server status
   ========================================================================== */
body.gh-portal.gh-tpl-clientareadetails .card-body .card-title,
body.gh-portal .primary-content > form > .card .card-title { padding-bottom: 14px; border-bottom: 1px solid var(--gh-line); }
body.gh-portal.gh-tpl-clientareadetails .form-group label, body.gh-portal.gh-tpl-clientareadetails .control-label { font-size: .875rem; }
body.gh-portal.gh-tpl-clientareadetails .form-group .text-muted { font-size: .8125rem; }
body.gh-portal .primary-content > form > .form-group.text-center, body.gh-portal .primary-content > form .form-group.text-center:last-child {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; text-align: left !important;
}
body.gh-portal .card .card-body > .form-group:last-child { margin-bottom: 0; }

/* Tabs inside cards (product details, domain details, security) */
body.gh-portal .responsive-tabs-sm { gap: 4px; border-bottom: 1px solid var(--gh-line); }
body.gh-portal .responsive-tabs-sm .nav-item a, body.gh-portal .responsive-tabs-sm .nav-link {
  padding: 12px 16px; border: 0; border-radius: 10px 10px 0 0; color: var(--gh-muted); font: 700 .9375rem/1.2 var(--gh-font);
}
body.gh-portal .responsive-tabs-sm .nav-link.active, body.gh-portal .responsive-tabs-sm .nav-item a.active { color: var(--gh-ink); background: transparent; box-shadow: inset 0 -2px 0 var(--gh-red); }
body.gh-portal .card-header-tabs { border-bottom: 0; }
body.gh-portal .card-header-tabs .nav-link { padding: 10px 14px; }
body.gh-portal .tab-content > .tab-pane > .card:first-child { border-top-left-radius: 0; }

/* Product details overview */
body.gh-portal .product-details .product-icon {
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: var(--gh-bg-alt); box-shadow: none;
}
body.gh-portal .product-details .product-icon .fa-stack { color: var(--gh-red); }
body.gh-portal .product-details .product-icon h3 { color: var(--gh-ink); font-weight: 800; }
body.gh-portal .product-details .product-icon h4 { color: var(--gh-muted); font-size: .9375rem; }
body.gh-portal .product-status { border-radius: var(--gh-radius); overflow: hidden; }
body.gh-portal .product-status-text { padding: 8px; font: 800 .8125rem/1.3 var(--gh-font); letter-spacing: .06em; text-transform: uppercase; }
body.gh-portal .product-status-active { background: var(--gh-success-bg); color: var(--gh-success); }
body.gh-portal .product-status-pending { background: var(--gh-red-50); color: var(--gh-red-700); }
body.gh-portal .product-status-suspended { background: #FFF1D6; color: #7A4D00; }
body.gh-portal .product-status-terminated, body.gh-portal .product-status-cancelled, body.gh-portal .product-status-fraud { background: var(--gh-bg-soft); color: var(--gh-muted); }
body.gh-portal .product-details h4 { color: var(--gh-muted); font: 700 .75rem/1.3 var(--gh-font); letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 2px; }

/* Server status (logged in, NetworkIssuesRequireLogin) */
body.gh-portal.gh-tpl-serverstatus .table td .fa-check, body.gh-portal.gh-tpl-serverstatus .table .text-success { color: var(--gh-success) !important; }
body.gh-portal.gh-tpl-serverstatus .table img { width: 16px; }
body.gh-portal .network-issue { border-radius: var(--gh-radius); }
body.gh-portal.gh-tpl-serverstatus .card-header .card-title { font-size: 1.0625rem; }
body.gh-portal.gh-tpl-serverstatus .label { min-width: 80px; text-align: center; }

/* ==========================================================================
   12. Responsive + motion + print
   ========================================================================== */
@media (max-width: 991.98px) {
  body.gh-portal .gh-pg-card > .card-body { padding: 28px 26px 30px; }
  body.gh-portal .gh-pg-post > .card-body, body.gh-portal .gh-pg-article > .card-body { padding: 30px 26px; }
  .gh-pg-split__aside { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 767.98px) {
  body.gh-portal .dataTables_wrapper .listtable > .dataTables_filter { order: 0; flex: 0 0 100%; }
  body.gh-portal .dataTables_wrapper .dataTables_filter input { width: 100%; }
  body.gh-portal .dataTables_wrapper .dataTables_length, body.gh-portal .dataTables_wrapper .dataTables_paginate { float: none; }
  body.gh-portal .dataTables_wrapper .dataTables_paginate .pagination { justify-content: flex-start !important; margin-top: 12px; }
  body.gh-portal .ticket-reply, body.gh-portal .ticket-reply.staff { margin: 0; }
  body.gh-portal .view-ticket > .card-body + .card-body { padding: 14px 16px; }
  body.gh-portal .view-ticket > .card-body:first-child { padding: 20px 18px !important; }
}
@media (max-width: 640px) {
  /* client-area lists: drop secondary columns so the essentials fit without sideways scrolling */
  body.gh-portal #tableServicesList th:nth-child(1), body.gh-portal #tableServicesList td:nth-child(1),
  body.gh-portal #tableServicesList th:nth-child(3), body.gh-portal #tableServicesList td:nth-child(3),
  body.gh-portal #tableDomainsList th:nth-child(2), body.gh-portal #tableDomainsList td:nth-child(2),
  body.gh-portal #tableDomainsList th:nth-child(4), body.gh-portal #tableDomainsList td:nth-child(4),
  body.gh-portal #tableInvoicesList th:nth-child(2), body.gh-portal #tableInvoicesList td:nth-child(2),
  body.gh-portal #tableTicketsList th:nth-child(1), body.gh-portal #tableTicketsList td:nth-child(1) { display: none; }
  body.gh-portal #tableDomainsList td:nth-child(3) { min-width: 0; }
  body.gh-portal #tableDomainsList td:nth-child(3) > a { white-space: normal; overflow-wrap: anywhere; }
  body.gh-portal #domainForm > .btn-group > .btn, body.gh-portal #domainForm > .btn-group > .btn-group { flex: 1 1 calc(50% - 6px); }
  body.gh-portal #domainForm > .btn-group > .btn-group > .btn { width: 100%; }
  body.gh-portal #domainForm > .btn-group > .btn, body.gh-portal #domainForm > .btn-group > .btn-group > .btn { white-space: normal; text-align: center; line-height: 1.25; }
  body.gh-portal table.table-list { width: 100% !important; }
  body.gh-portal table.table-list thead th { width: auto !important; white-space: normal; padding-left: 10px; padding-right: 10px; }
  body.gh-portal table.table-list td .label { min-width: 0 !important; padding-left: 8px; padding-right: 8px; }
  body.gh-portal table.table-list tbody td { padding: 12px 8px; font-size: .8125rem; }
  body.gh-portal table.table-list tbody td:first-child { padding-left: 12px; }
  body.gh-portal table.dataTable.table-list thead > tr > th { padding: 10px 20px 10px 8px; font-size: .6875rem; letter-spacing: .04em; }
  body.gh-portal table.dataTable.table-list thead > tr > th:first-child { padding-left: 12px; }
  body.gh-portal table.dataTable.table-list thead .sorting::before, body.gh-portal table.dataTable.table-list thead .sorting::after,
  body.gh-portal table.dataTable.table-list thead .sorting_asc::before, body.gh-portal table.dataTable.table-list thead .sorting_asc::after,
  body.gh-portal table.dataTable.table-list thead .sorting_desc::before, body.gh-portal table.dataTable.table-list thead .sorting_desc::after { right: .35em; }
  body.gh-portal table.table-list td .label { font-size: .6875rem; }
  body.gh-portal #tableInvoicesList td:nth-child(1), body.gh-portal #tableInvoicesList td:nth-child(4),
  body.gh-portal #tableServicesList td:nth-child(4) { white-space: nowrap; }
  .gh-pg-split { gap: 20px; }
  body.gh-portal .gh-pg-card > .card-body { padding: 22px 18px 24px; }
  body.gh-portal .gh-pg-post > .card-body, body.gh-portal .gh-pg-article > .card-body { padding: 24px 18px; }
  .gh-pg-head { margin-bottom: 20px; }
  .gh-pg-form__foot .btn { flex: 1 1 auto; }
  .gh-pg-callout { padding: 20px; }
  .gh-pg-channels { padding: 2px 18px; }
  .gh-pg-depts { grid-template-columns: 1fr; gap: 10px; }
  .gh-portal .gh-pg-dept { gap: 14px; padding: 16px 14px 16px 16px; }
  .gh-pg-dept__icon { width: 42px; height: 42px; border-radius: 12px; }
  .gh-pg-dept__arrow { display: none; }
  .gh-pg-note { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .gh-pg-note .gh-btn { grid-column: 1 / -1; }
  .gh-pg-ann__item { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; }
  .gh-pg-date { flex-direction: row; gap: 6px; width: auto; height: auto; padding: 8px 12px; justify-self: start; border-radius: 10px; }
  .gh-pg-date__day { font-size: 1rem; }
  .gh-pg-date__month, .gh-pg-date__year { margin-top: 0; font-size: .75rem; }
  .gh-portal .gh-pg-ann__title { font-size: 1.1875rem; }
  .gh-portal .gh-pg-row { gap: 12px; padding: 14px 16px; }
  .gh-pg-row__action { padding: 8px 10px; }
  .gh-pg-row__action-label { display: none; }
  .gh-pg-dp__search { padding: 22px 18px; border-radius: var(--gh-radius-lg); }
  .gh-pg-dp__form { flex-direction: column; }
  .gh-pg-dp__field { height: 54px; }
  body.gh-portal .gh-pg-dp__form .gh-btn { min-height: 52px; width: 100%; }
  .gh-pg-dp__tools, body.gh-portal .gh-pg-dp__filter, body.gh-portal .gh-pg-dp__filter .form-control, body.gh-portal .gh-pg-dp .currency-selector { width: 100%; }
  .gh-pg-dp__featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gh-pg-tld__logo { height: 76px; padding: 12px; }
  .gh-pg-tld__foot { flex-direction: column; gap: 2px; padding: 10px 12px; }
  /* price table as stacked cards */
  .gh-pg-dp__table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.gh-portal .gh-pg-dp__table { min-width: 0; }
  body.gh-portal .gh-pg-dp__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.gh-portal .gh-pg-dp__table, body.gh-portal .gh-pg-dp__table tbody, body.gh-portal .gh-pg-dp__table tr { display: block; width: 100%; }
  body.gh-portal .gh-pg-dp__table tbody { display: grid; gap: 10px; }
  body.gh-portal .gh-pg-dp__table tr[hidden] { display: none; }
  body.gh-portal .gh-pg-dp__table tbody tr { overflow: hidden; border: 1px solid var(--gh-line); border-radius: var(--gh-radius); background: #fff; box-shadow: var(--gh-shadow-xs); }
  body.gh-portal .gh-pg-dp__table tbody tr:hover { background: #fff; }
  body.gh-portal .gh-pg-dp__table tbody th { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 0; background: var(--gh-bg-alt); }
  body.gh-portal .gh-pg-dp__table tbody th .gh-pg-dp__cat { margin: 0; }
  body.gh-portal .gh-pg-dp__table tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px; }
  body.gh-portal .gh-pg-dp__table tbody td::before { content: attr(data-label); color: var(--gh-muted); font: 600 .8125rem/1.3 var(--gh-font); }
  body.gh-portal .gh-pg-dp__table tbody td > span:first-of-type { margin-left: auto; }
  body.gh-portal .gh-pg-dp__table tbody td .gh-pg-dp__term { display: none; }
  body.gh-portal .gh-pg-dp__table tbody tr.gh-pg-dp__empty td { display: block; }
  body.gh-portal .gh-pg-dp__table tbody tr.gh-pg-dp__empty td::before { content: none; }
  /* attachments: the whole label opens the file picker, drop the "Odaberi" suffix */
  body.gh-portal .gh-pg-attach .custom-file-label::after { display: none; }
  .gh-pg-error .gh-pg-state { padding: 36px 18px 32px; }
  .gh-pg-error__art { width: 104px; }
  .gh-pg-state__actions .gh-btn { flex: 1 1 auto; }
  body.gh-portal .gh-pg-search .input-group-append .btn { min-width: 0; padding-left: 16px; padding-right: 16px; }
  .gh-pg-promo { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-pg-dept, .gh-pg-cat, .gh-pg-quick__item, .gh-pg-ann__item, .gh-pg-row, .gh-pg-link .gh-icon, .gh-pg-dept__arrow, .gh-pg-row__chev,
  body.gh-portal .gh-pg-form__foot .btn .gh-icon, .gh-pg-ann__more .gh-icon { transition: none !important; }
  .gh-pg-dept:hover, .gh-pg-cat:hover, .gh-pg-quick__item:hover { transform: none !important; }
}
@media print {
  .gh-pg-split__aside, .gh-pg-dp__search, .gh-pg-vote, .gh-pg-back { display: none !important; }
  body.gh-portal .col-12.primary-content .gh-pg-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Invoice (viewinvoice.tpl, standalone page: body.gh-invoice-page)
   ========================================================================== */
body.gh-invoice-page {
  min-height: 100vh; margin: 0; padding: 1px 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(124, 140, 255, .10), transparent 70%), var(--gh-bg-alt);
  color: var(--gh-text); font-family: var(--gh-font); -webkit-font-smoothing: antialiased;
}
.gh-invoice-page a { color: var(--gh-red); }
.gh-invoice-page a:hover { color: var(--gh-red-700); }
.gh-invoice-page .invoice-container {
  position: relative; max-width: 920px; margin: 40px auto 18px; padding: 54px 58px 44px; overflow: hidden;
  border: 1px solid var(--gh-line); border-radius: 22px; background: #fff; box-shadow: var(--gh-shadow);
}
.gh-invoice-page .invoice-container::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--gh-red) 0%, var(--gh-red) 30%, var(--gh-navy-900) 100%); }
.gh-invoice-page .invoice-header { align-items: center; }
.gh-invoice-page .invoice-header img { max-height: 54px; width: auto; }
.gh-invoice-page .invoice-header p { margin-bottom: 14px; }
.gh-invoice-page .invoice-header h2 { margin: 0 0 8px; color: var(--gh-ink); font: 800 1.5rem/1.2 var(--gh-font); }
.gh-invoice-page .gh-inv-title { margin: 0; color: var(--gh-ink); font: 800 clamp(1.375rem, 1.2rem + .6vw, 1.75rem)/1.2 var(--gh-font); letter-spacing: -.02em; }
.gh-invoice-page .invoice-container .invoice-status { margin: 0 0 8px; font: 800 .875rem/1 var(--gh-font); letter-spacing: .12em; }
.gh-invoice-page .invoice-status span { display: inline-block; padding: 9px 18px; border-radius: 999px; }
.gh-invoice-page .invoice-status .unpaid { background: var(--gh-red-50); color: var(--gh-red-700); box-shadow: inset 0 0 0 1px #F1C9CA; }
.gh-invoice-page .invoice-status .paid { background: var(--gh-success-bg); color: var(--gh-success); box-shadow: inset 0 0 0 1px #BFE5D3; }
.gh-invoice-page .invoice-status .draft, .gh-invoice-page .invoice-status .cancelled { background: var(--gh-bg-soft); color: var(--gh-muted); }
.gh-invoice-page .invoice-status .refunded { background: #EEF1FF; color: #3B4A9E; }
.gh-invoice-page .invoice-status .collections { background: var(--gh-ink); color: #fff; }
.gh-invoice-page .invoice-container .small-text { font-size: .9063rem; }
.gh-invoice-page .payment-btn-container { margin-top: 12px; }
.gh-invoice-page .payment-btn-container form { margin: 0; }
.gh-invoice-page .invoice-container hr { margin: 28px 0; border-top: 1px solid var(--gh-line); }
.gh-invoice-page .invoice-col > strong {
  display: block; margin-bottom: 6px; color: var(--gh-muted); font: 700 .75rem/1.3 var(--gh-font); letter-spacing: .1em; text-transform: uppercase;
}
.gh-invoice-page .invoice-col address { color: var(--gh-ink); line-height: 1.6; }
.gh-invoice-page .invoice-col .custom-select { height: 42px; padding: 8px 36px 8px 12px; border: 1.5px solid var(--gh-line-strong); border-radius: 10px; font: 600 .875rem/1.2 var(--gh-font); color: var(--gh-ink); }
.gh-invoice-page .card { overflow: hidden; border: 1px solid var(--gh-line); border-radius: 16px; box-shadow: none; }
.gh-invoice-page .card.bg-default .card-header { padding: 14px 18px; border-bottom: 1px solid var(--gh-line); background: var(--gh-bg-alt); }
.gh-invoice-page .card.bg-default .card-title { color: var(--gh-ink); font: 800 1rem/1.3 var(--gh-font) !important; }
.gh-invoice-page .card.bg-default .card-title strong { font-weight: 800; }
.gh-invoice-page .table { margin: 0; color: var(--gh-text); font-size: .9375rem; }
.gh-invoice-page .table td, .gh-invoice-page .table th { padding: 12px 18px; border-top: 1px solid var(--gh-line); vertical-align: middle; }
.gh-invoice-page .table thead td { border-top: 0; color: var(--gh-muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.gh-invoice-page .table thead td strong { font-weight: 700; }
.gh-invoice-page .invoice-container td.total-row { background: #FAFBFD; color: var(--gh-ink); }
.gh-invoice-page .table tbody tr:last-child td.total-row { background: var(--gh-ink); color: #fff; font-size: 1.0625rem; font-weight: 800; }
.gh-invoice-page .table tbody tr:last-child td.total-row strong { color: #fff; }
.gh-invoice-page .table td.text-center:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-invoice-page .transactions-container { margin-top: 18px; overflow: hidden; border: 1px solid var(--gh-line); border-radius: 16px; }
.gh-invoice-page .transactions-container .table tbody tr:last-child td { background: var(--gh-bg-alt); color: var(--gh-ink); font-weight: 800; }
.gh-invoice-page .row.w-100 .card { margin: 0; }
.gh-invoice-page .row.w-100 .card-title { margin: 0 0 8px; padding: 10px 14px !important; border-radius: 0; font: 800 .875rem/1.3 var(--gh-font) !important; }
.gh-invoice-page .row.w-100 .card-title.bg-success { background: var(--gh-success) !important; }
.gh-invoice-page .row.w-100 .card-title.bg-danger { background: var(--gh-red-700) !important; }
.gh-invoice-page .row.w-100 .card-title.bg-info { background: var(--gh-navy-600) !important; }
.gh-invoice-page .btn { display: inline-flex; align-items: center; gap: 8px; padding: .625rem 1.125rem; border-radius: 12px; font: 700 .9375rem/1.3 var(--gh-font); }
.gh-invoice-page .btn-sm, .gh-invoice-page .btn-group-sm > .btn { padding: .5rem .875rem; font-size: .8125rem; }
.gh-invoice-page .invoice-container > .btn-group { margin-top: 16px; }
.gh-invoice-page .btn-group > .btn { border-radius: 0; }
.gh-invoice-page .btn-group > .btn:first-child { border-radius: 10px 0 0 10px; }
.gh-invoice-page .btn-group > .btn:last-child { border-radius: 0 10px 10px 0; }
.gh-invoice-page .btn-default { background: #fff; border: 1px solid var(--gh-line-strong); color: var(--gh-ink); }
.gh-invoice-page .btn-default:hover { border-color: var(--gh-ink); color: var(--gh-ink); }
.gh-invoice-page .btn-primary, .gh-invoice-page .payment-btn-container input[type="submit"], .gh-invoice-page .payment-btn-container button {
  background: var(--gh-red); border: 1px solid var(--gh-red); color: #fff; box-shadow: var(--gh-shadow-red); cursor: pointer;
}
.gh-invoice-page .btn-primary:hover, .gh-invoice-page .payment-btn-container input[type="submit"]:hover, .gh-invoice-page .payment-btn-container button:hover { background: var(--gh-red-600); border-color: var(--gh-red-600); color: #fff; }
.gh-invoice-page .payment-btn-container input[type="submit"], .gh-invoice-page .payment-btn-container button { padding: .7rem 1.4rem; border-radius: 12px; font: 700 .9375rem/1.3 var(--gh-font); }
.gh-invoice-page .btn-success { background: var(--gh-success); border-color: var(--gh-success); }
.gh-invoice-page .btn:focus-visible, .gh-invoice-page a:focus-visible, .gh-invoice-page .custom-select:focus { outline: 3px solid var(--gh-focus); outline-offset: 2px; box-shadow: none; }
.gh-invoice-page > p.text-center { margin: 0 0 40px; font: 700 .875rem/1.4 var(--gh-font); }
.gh-invoice-page > p.text-center a { color: var(--gh-muted); }
.gh-invoice-page > p.text-center a:hover { color: var(--gh-ink); }
@media (max-width: 767px) {
  .gh-invoice-page .invoice-container { margin: 16px; padding: 34px 20px 28px; border-radius: 18px; }
  .gh-invoice-page .table td, .gh-invoice-page .table th { padding: 10px 12px; }
}
@media print {
  body.gh-invoice-page { background: #fff; }
  .gh-invoice-page .invoice-container { margin: 0; padding: 0; border: 0; box-shadow: none; }
  .gh-invoice-page .invoice-container::before { display: none; }
  .gh-invoice-page .table tbody tr:last-child td.total-row { background: #fff; color: #000; }
  .gh-invoice-page .table tbody tr:last-child td.total-row strong { color: #000; }
}
