/* Shared customer components. Loaded outside the approved login/dashboard only.
   Semantic selectors preserve native forms, status meaning and vendor behaviour. */
.uh-foundation-page:not([data-uh-page="login"]):not([data-uh-page="clientareahome"]) {
  --uh-component-primary: #27834a;
  --uh-component-primary-hover: #1b6839;
  --uh-component-forest: #004a34;
  --uh-component-line: #dce7df;
  --uh-component-muted: #496477;
  --uh-component-soft: #f4f9f7;
}
.uh-foundation-page .primary-content { min-width: 0; }
.uh-foundation-page .primary-content .list-group-item.active,
.uh-foundation-page .primary-content .nav-pills .nav-link.active,
.uh-foundation-page .primary-content .pagination .active > a {
  background-color: var(--uh-component-primary); border-color: var(--uh-component-primary); color: #fff;
}
.uh-foundation-page .primary-content .btn-success { background-color: var(--uh-component-primary); border-color: var(--uh-component-primary); }
.uh-foundation-page .primary-content .btn-success:hover { background-color: var(--uh-component-primary-hover); border-color: var(--uh-component-primary-hover); }
.uh-foundation-page .primary-content .list-group-item { border-color: var(--uh-component-line); overflow-wrap: anywhere; }
.uh-foundation-page .primary-content .list-group-item-action:hover { background-color: var(--uh-component-soft); }
.uh-foundation-page .primary-content .nav-tabs { flex-wrap: wrap; gap: 2px; }
.uh-foundation-page .primary-content .nav-tabs .nav-link { border-radius: 6px 6px 0 0; }
.uh-foundation-page .primary-content .nav-tabs .nav-link:focus-visible,
.uh-foundation-page .primary-content .page-link:focus-visible { outline: 3px solid #27834a; outline-offset: 2px; }
.uh-foundation-page .primary-content .dataTables_wrapper .dataTables_filter label,
.uh-foundation-page .primary-content .dataTables_wrapper .dataTables_length label { font-size: 14px; color: #375b49; }
.uh-foundation-page .primary-content .dataTables_wrapper :is(input[type="search"],select) { border: 1px solid #a8bcb1; border-radius: 6px; padding: 7px 10px; background: #fff; color: #173d2a; }
.uh-foundation-page .primary-content .dataTables_wrapper .dataTables_info { color: var(--uh-component-muted); font-size: 14px; padding: 12px 0; }
.uh-foundation-page .primary-content .dataTables_empty { padding: 28px 18px; color: var(--uh-component-muted); background: #fff; }
.uh-foundation-page .primary-content .table :is(th,td) { overflow-wrap: break-word; }
.uh-foundation-page .primary-content .table-responsive { max-width: 100%; overscroll-behavior-x: contain; }
.uh-foundation-page .primary-content .table-striped tbody tr:nth-of-type(odd) { background-color: #f8fbf9; }
.uh-foundation-page .primary-content .table-hover tbody tr:hover { background-color: #edf7f0; }
.uh-foundation-page .primary-content :is(input[type="checkbox"],input[type="radio"]) { accent-color: #27834a; }
.uh-foundation-page .primary-content :is(.custom-control-label,.form-check-label) { line-height: 1.6; }
.uh-foundation-page .primary-content .invalid-feedback { line-height: 1.5; margin-top: 6px; }
.uh-foundation-page .primary-content .form-text { font-size: 14px; line-height: 1.6; color: var(--uh-component-muted); }
.uh-foundation-page .primary-content .input-group { min-width: 0; }
.uh-foundation-page .primary-content .input-group > .form-control { min-width: 0; }
.uh-foundation-page .primary-content .input-group-append .btn { display: inline-flex; align-items: center; justify-content: center; }
.uh-foundation-page .modal-content { box-shadow: 0 14px 48px #123b2420; }
.uh-foundation-page .modal-header .modal-title { color: #10281d; font-size: 21px; }
.uh-foundation-page .modal-footer { flex-wrap: wrap; gap: 8px; }
.uh-foundation-page .modal-localisation .item-selector .item.active { background: #e7f4eb; border-color: #27834a; color: #14532d; }
.uh-foundation-page .modal-localisation .item-selector .item:hover { border-color: #27834a; }
.uh-foundation-page .modal-localisation .close.text-light { color: #173d2a!important; opacity: .8; }
.uh-foundation-page .popover .client-alerts a { overflow-wrap: anywhere; }
.uh-foundation-page .primary-content .progress { border-radius: 6px; background-color: #e6ede8; }
.uh-foundation-page .primary-content .progress-bar:not(.bg-danger):not(.bg-warning) { background-color: #27834a; }
.uh-foundation-page .primary-content .action-icon-btns { row-gap: 18px; }
.uh-foundation-page .primary-content .action-icon-btns a {
  height: 100%; padding: 22px 16px; border: 1px solid var(--uh-component-line); border-radius: 9px;
  background: #fff; color: #145c37; box-shadow: 0 3px 10px #16433405;
}
.uh-foundation-page .primary-content .action-icon-btns a:hover { border-color: #92bda2; background: #f4f9f7; }
.uh-foundation-page .primary-content .action-icon-btns .ico-container { color: #27834a; }
.uh-foundation-page .primary-content .action-icon-btns .ico-container i { color: #27834a; }
.uh-foundation-page[data-uh-page^="error/"] .primary-content .text-primary { color: #17663c!important; }
.uh-foundation-page[data-uh-page^="error/"] .primary-content .btn-info { color: #17663c; background: #fff; border: 1px solid #93b9a2; }
.uh-foundation-page[data-uh-page^="error/"] .primary-content .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.uh-foundation-page .primary-content .domain-pricing .tld-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.uh-foundation-page .primary-content .domain-pricing .currency-selector { max-width: 280px; }
.uh-foundation-page .primary-content .uh-empty-domain-pricing { margin: 20px 0; padding: 24px; border: 1px solid #dce7df; border-left: 4px solid #27834a; border-radius: 9px; background: #fff; color: #375b49; }
/* The homepage uses a native domain-search partial outside the main card body. */
.uh-foundation-page[data-uh-page="homepage"] .home-domain-search { margin: 0 24px 24px; border: 1px solid #dce7df; border-radius: 9px; }
.uh-foundation-page[data-uh-page="homepage"] .home-domain-search .p-5 { padding: 24px!important; }
.uh-foundation-page[data-uh-page="homepage"] .home-domain-search h2 { text-align: left!important; font-size: 25px; margin-bottom: 20px; }
.uh-foundation-page[data-uh-page="homepage"] #frmDomainHomepage .input-group-wrapper { border: 1px solid #a8bcb1; border-radius: 7px; padding: 12px; }
.uh-foundation-page[data-uh-page="homepage"] #frmDomainHomepage textarea { width: 100%; min-height: 76px; height: 76px; padding: 12px; border: 1px solid #a8bcb1; border-radius: 6px; background: #fff; font: inherit; resize: vertical; }
.uh-foundation-page[data-uh-page="homepage"] #frmDomainHomepage .advanced-input { gap: 10px; }
.uh-foundation-page[data-uh-page="homepage"] #frmDomainHomepage .advanced-input .input-group-append { position: static!important; inset: auto!important; margin-left: auto; }
.uh-foundation-page[data-uh-page="homepage"] #frmDomainHomepage .default-captcha { margin-bottom: 0; }
@media(max-width:767.98px) {
  .uh-foundation-page .primary-content .dataTables_wrapper .dataTables_filter { text-align: left; }
  .uh-foundation-page .primary-content .dataTables_wrapper .dataTables_filter input { max-width: 100%; margin-left: 0; }
  .uh-foundation-page .primary-content .pagination { flex-wrap: wrap; gap: 4px; }
  .uh-foundation-page[data-uh-page="domain-pricing"] .domain-pricing>.float-right { float: none!important; margin-bottom: 16px; }
  .uh-foundation-page[data-uh-page="domain-pricing"] .domain-pricing .currency-selector { max-width: 100%; }
  .uh-foundation-page .modal-dialog { margin: 12px; }
  .uh-foundation-page[data-uh-page="homepage"] .home-domain-search { margin: 0 12px 20px; }
  .uh-foundation-page[data-uh-page="homepage"] .home-domain-search .p-5 { padding: 18px!important; }
  .uh-foundation-page[data-uh-page="homepage"] #frmDomainHomepage .advanced-input .input-group-append { margin-left: 0; }
}
/* ModulesGarden's public CSS variables are the integration seam. No vendor source,
   network behaviour, action visibility, error content or semantic danger tokens change. */
.uh-foundation-page .mg-wrapper #layers2,
.uh-foundation-page #layers2-body {
  --type-primary: #27834a; --type-primary-hover: #1b6839; --type-primary-active: #14532d; --type-primary-faded: #d8eddf;
  --background-primary: #27834a; --background-primary-hover: #1b6839; --background-primary-active: #14532d;
  --border-primary: #27834a; --border-primary-hover: #1b6839;
  --text-default: #173d2a; --text-headers: #10281d; --text-faded: #496477;
  --app-background: #f1f7f8; --whmcs-ca-base: #f1f7f8; --components-background: #fff; --components-border: #dce7df;
  --table-lines: #e3ebf1; --menu-text-active: #17663c; --input-border: #a8bcb1;
  --input-border-active: #27834a; --url-text: #17663c; --url-text-hover: #14532d;
  --alert-danger-text: #991b1b; --alert-warning-text: #854d0e;
  font-family: Arial,Helvetica,sans-serif; color: #173d2a;
}
.uh-foundation-page .mg-wrapper #layers2 :is(.lu-widget,.lu-panel,.lu-tile) { border-radius: 9px; border-color: #dce7df; }
.uh-foundation-page .mg-wrapper #layers2 :is(.lu-btn,.lu-form-control,.lu-input-group) { border-radius: 6px; }
.uh-foundation-page .mg-wrapper #layers2 .lu-btn--primary { color: #fff; background-color: #27834a; border-color: #27834a; }
.uh-foundation-page .mg-wrapper #layers2 .lu-btn--primary:hover { background-color: #1b6839; border-color: #1b6839; }
.uh-foundation-page .mg-wrapper #layers2 .lu-form-control { min-height: 40px; font-family: inherit; border-color: #a8bcb1; }
.uh-foundation-page .mg-wrapper #layers2 .lu-widget__title { font-size: 20px; line-height: 1.4; font-weight: 700; }
.uh-foundation-page .mg-wrapper #layers2 .lu-alert { font-size: 15px; line-height: 1.6; }
.uh-foundation-page .mg-wrapper #layers2 .lu-table { color: #173d2a; }
.uh-foundation-page .mg-wrapper #layers2 .lu-table th { color: #145c37; background: #f4f9f7; }
.uh-foundation-page .mg-wrapper #layers2 :is(.lu-alert,.lu-modal) { overflow-wrap: anywhere; }
.uh-foundation-page .mg-wrapper #layers2 :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #27834a; outline-offset: 3px; }
@media(max-width:767.98px) {
  .uh-foundation-page .mg-wrapper #layers2 .lu-widget__body { padding: 16px; }
  .uh-foundation-page .mg-wrapper #layers2 .lu-table-responsive { max-width: 100%; overflow-x: auto; }
}
