/* SiteChai native WHMCS client area, 4.1.
   WHMCS owns all live menus, dashboard panels, forms and module output.
   This stylesheet changes presentation only and keeps module boundaries intact. */
:root {
  color-scheme: light;
  --sitechai-blue: #1c5fa8;
  --sitechai-blue-dark: #164d8c;
  --sitechai-navy: #12365c;
  --sitechai-ink: #102b49;
  --sitechai-muted: #5d718b;
  --sitechai-border: #e2e7ed;
  --sitechai-background: #f6f7f9;
  --sitechai-surface: #fff;
  --sitechai-soft-blue: #edf5ff;
  --sitechai-radius: 6px;
  --sitechai-sidebar-width: 248px;
  --sitechai-shadow: none;
}
body.sc-portal { margin: 0; background: var(--sitechai-background); color: var(--sitechai-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
.sc-icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle; }
.sc-control-icon { width: 20px; height: 20px; }
.sc-workspace-icon, .sc-foot-icon { width: 16px; height: 16px; }
/* The original icon element stays in place for native links and listeners. */
i.sc-vector-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; line-height: 1; vertical-align: -3px; font-style: normal; }
i.sc-vector-icon::before { display: none !important; }
i.sc-vector-icon > svg { display: block; flex: 0 0 auto; width: 100%; height: 100%; }
.sc-sidebar i.sc-vector-icon.sc-nav-icon { width: 18px; height: 18px; }
.sc-shell { min-height: 100vh; }
.sc-shell-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; margin-left: var(--sitechai-sidebar-width); }
.sc-skip-link { position: fixed; top: 8px; left: 12px; z-index: 1200; padding: 12px 18px; transform: translateY(-150%); border-radius: 4px; background: #fff; color: var(--sitechai-blue-dark); }
.sc-skip-link:focus { transform: none; }

/* Light navigation keeps every native and extension-provided menu entry. */
.sc-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; display: flex; flex-direction: column; width: var(--sitechai-sidebar-width); padding: 26px 16px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--sitechai-border); background: #fff; color: #526b86; scrollbar-width: thin; scrollbar-color: #d5e1ef #fff; }
.sc-sidebar-brand-row { position: relative; }
.sc-sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 0 12px 25px; text-decoration: none; }
.sc-sidebar-brand:hover { text-decoration: none; }
.sc-brand-picture { display: block; width: 180px; max-width: 100%; }
.sc-brand-logo { display: block; width: 180px; max-width: 100%; height: 50px; object-fit: cover; object-position: center; }
/* Density-matched horizontal sources keep the artwork sharp at every width. */
@media (min-width: 992px) {
  .sc-brand-logo { object-fit: contain; }
}
.sc-brand-caption { padding-left: 8px; color: var(--sitechai-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.7px; }
.sc-brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 4px; background: var(--sitechai-blue); color: #fff; font-size: 12px; font-weight: 700; }
.sc-brand-name { color: var(--sitechai-ink); font-size: 25px; font-weight: 700; letter-spacing: -.9px; line-height: 1.3; }
.sc-sidebar-nav { margin-top: 7px; }
.sc-nav-list { padding: 0; margin: 0; list-style: none; }
.sc-nav-item { margin: 3px 0; }
.sc-nav-link, .sc-nav-summary { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 12px; border-radius: 7px; background: transparent; color: #425d7b; font-size: 13px; font-weight: 500; line-height: 20px; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.sc-nav-label { min-width: 0; overflow-wrap: anywhere; }
.sc-nav-icon { flex: 0 0 18px; width: 18px; color: #3e658e; text-align: center; font-size: 16px; }
.sc-nav-link:hover, .sc-nav-summary:hover { background: #f5f8fc; color: var(--sitechai-blue); text-decoration: none; }
.sc-sidebar .sc-nav-item.active > .sc-nav-link, .sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary, .sc-sidebar .sc-nav-link[aria-current="page"] { background: var(--sitechai-blue); color: #fff; font-weight: 600; box-shadow: none; }
.sc-sidebar .sc-nav-item.active > .sc-nav-link > .sc-nav-icon, .sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary > .sc-nav-icon, .sc-sidebar .sc-nav-link[aria-current="page"] > .sc-nav-icon { color: #fff; }
.sc-nav-summary { list-style: none; }
.sc-nav-summary::-webkit-details-marker { display: none; }
.sc-nav-chevron { flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; color: inherit; transition: transform 150ms ease; }
.sc-nav-group[open] > .sc-nav-summary > .sc-nav-chevron { transform: rotate(180deg); }
.sc-nav-children { padding: 3px 0 3px 9px; margin: 0 0 7px 23px; border-left: 1px solid var(--sitechai-border); }
.sc-nav-children .sc-nav-link, .sc-nav-children .sc-nav-summary { min-height: 36px; padding: 8px 9px; gap: 8px; border-radius: 6px; font-size: 12px; font-weight: 400; }
/* Nested navigation uses text labels and a quiet guide line, without icon bullets. */
.sc-nav-children .sc-nav-icon { display: none; }
.sc-nav-children .sc-nav-children { margin-left: 6px; padding-left: 9px; }
.sc-nav-badge { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: #f0f3f7; color: #536983; font-size: 10px; font-weight: 500; }
.sc-sidebar .sc-nav-item.active > .sc-nav-link > .sc-nav-badge, .sc-sidebar .sc-nav-item.active > .sc-nav-group > .sc-nav-summary > .sc-nav-badge { background: rgba(255,255,255,.18); color: #fff; }
.sc-nav-item.disabled > .sc-nav-link, .sc-nav-link[aria-disabled="true"] { color: #929eae; cursor: default; }
.sc-nav-divider { margin: 14px 12px; border-top: 1px solid var(--sitechai-border); }
.sc-sidebar-bottom { margin-top: auto; padding: 26px 2px 0; }
.sc-workspace { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 15px; padding: 12px 8px; border: 0; border-top: 1px solid var(--sitechai-border); border-radius: 0; background: transparent; }
.sc-workspace-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 32px; border-radius: 6px; background: #e6f0fc; color: var(--sitechai-blue); font-size: 12px; }
.sc-workspace-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sc-workspace-label a { text-decoration: none; }
.sc-workspace-label strong { display: block; color: #3e526e; font-size: 12px; font-weight: 500; }
.sc-workspace-label small { display: block; margin-top: 1px; color: var(--sitechai-muted); font-size: 10px; }
.sc-workspace-switch { flex: 0 0 20px; padding: 4px 0; color: #7b879b; font-size: 11px; text-align: center; }
.sc-workspace-switch:hover { color: var(--sitechai-blue); }
.sc-sidebar-foot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; color: #496d93; font-size: 12px; text-decoration: none; }
.sc-sidebar-foot > span { flex: 1 1 auto; }
.sc-sidebar-foot > i { font-size: 12px; }
.sc-sidebar-foot:hover { color: var(--sitechai-blue); text-decoration: none; }
.sc-sidebar-caption { margin: 16px 0 0; color: #8a96a8; font-size: 10px; text-align: center; }
.sc-sidebar-close, .sc-menu-toggle, .sc-overlay { display: none; }
.sc-overlay[hidden] { display: none !important; }

/* Quiet white topbar retains native search, notifications, cart and account actions. */
#header.sc-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 20px; min-height: 70px; padding: 12px 30px; border-top: 0; border-bottom: 1px solid var(--sitechai-border); background: #fff; }
.sc-topbar-start, .sc-topbar-end { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sc-topbar-start { flex: 1 1 auto; }
.sc-topbar-end { flex: 0 1 auto; }
.sc-workspace-breadcrumbs { min-width: 0; color: #8895aa; font-size: 12px; }
.sc-workspace-breadcrumbs .breadcrumb { display: flex; flex-wrap: wrap; padding: 0; margin: 0; border: 0; background: transparent; font-size: 12px; }
.sc-workspace-breadcrumbs .breadcrumb-item, .sc-workspace-breadcrumbs .breadcrumb-item a { color: #7a899f; }
.sc-workspace-breadcrumbs .breadcrumb-item.active { color: #445873; }
.sc-workspace-breadcrumbs .breadcrumb-item + .breadcrumb-item { padding-left: 9px; }
.sc-workspace-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { padding-right: 9px; color: #b1bdcf; }
.sc-search { display: flex; align-items: center; flex: 0 1 250px; min-width: 130px; margin: 0; padding: 2px 9px; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fafbfc; }
.sc-search input { width: 100%; min-width: 0; height: 34px; padding: 8px 0 8px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--sitechai-ink); font: inherit; font-size: 12px; }
.sc-search input::placeholder { color: #6e8198; opacity: 1; }
.sc-search button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #527ca8; font-size: 13px; }
.sc-search:focus-within { border-color: #7ba7d7; box-shadow: 0 0 0 3px rgba(28,95,168,.1); }
.sc-search input:focus { outline: 0; }
#header.sc-topbar .sc-topbar-end { overflow: visible; }
#header.sc-topbar #accountNotifications.sc-notifications { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 6px; background: #fff; color: var(--sitechai-blue); line-height: 1; box-shadow: none; }
#header.sc-topbar #accountNotifications.sc-notifications:hover { background: #f3f5f7; color: var(--sitechai-blue); }
#header.sc-topbar #accountNotifications:focus-visible { outline: 2px solid var(--sitechai-blue); outline-offset: 2px; }
#header.sc-topbar .sc-notification-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; overflow: visible; }
#header.sc-topbar #accountNotifications .sc-notification-count { position: absolute; inset: auto; top: 1px; right: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; background: #c63d4d; color: #fff; font-size: 9px; font-weight: 600; line-height: 1; white-space: nowrap; transform: none; }
/* Keep the live WHMCS counter in normal flow, away from the cart glyph. */
#header.sc-topbar .sc-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; width: auto; min-width: 76px; height: auto; min-height: 44px; margin: 0; padding: 9px 11px; overflow: visible; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fff; color: var(--sitechai-blue-dark); line-height: 1.4; white-space: nowrap; text-decoration: none; box-shadow: none; }
#header.sc-topbar .sc-cart:hover { border-color: #9ab3cf; background: #f7f9fb; color: var(--sitechai-blue-dark); }
#header.sc-topbar .sc-cart:focus-visible { outline: 3px solid #83b1de; outline-offset: 3px; }
#header.sc-topbar .sc-cart .sc-cart-icon { position: static; display: block; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; overflow: visible; }
#header.sc-topbar .sc-cart .sc-cart-label { position: static; font-size: 12px; font-weight: 500; }
#header.sc-topbar .sc-cart #cartItemCount { position: static; inset: auto; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: auto; min-width: 20px; height: auto; min-height: 20px; margin: 0; padding: 2px 5px; border: 0; border-radius: 4px; background: #dfebfa; color: var(--sitechai-blue-dark); font-size: 11px; font-weight: 600; line-height: 1.4; transform: none; }
.sc-account-nav > .sc-nav-list { display: flex; align-items: center; gap: 5px; }
.sc-account-nav .sc-nav-item { position: relative; }
.sc-account-nav .sc-nav-link, .sc-account-nav .sc-nav-summary { min-height: 36px; padding: 8px 9px; gap: 7px; color: #3e526e; font-size: 12px; }
.sc-account-nav .sc-nav-icon { flex-basis: 18px; width: 18px; height: 18px; color: #5d718b; font-size: 16px; }
.sc-account-nav .sc-nav-link:hover, .sc-account-nav .sc-nav-summary:hover, .sc-account-nav .sc-nav-item.active > .sc-nav-link { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-children { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1045; width: 240px; max-width: calc(100vw - 36px); max-height: 70vh; overflow-y: auto; padding: 8px; margin: 0; border: 1px solid var(--sitechai-border); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(16,31,59,.08); }
.sc-account-nav .sc-nav-children .sc-nav-children { border-left-color: var(--sitechai-border); }
.sc-account-nav .sc-nav-badge { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-account-nav .sc-nav-divider { border-color: var(--sitechai-border); }
.sc-account-nav .sc-nav-link[aria-disabled="true"] { color: #929eae; }

/* Live account credit and the installed Add Funds destination share one control. */
.sc-account-funds { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; max-width: 100%; min-height: 38px; border: 1px solid var(--sitechai-border); border-radius: 6px; background: #fff; }
.sc-account-balance { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 10px; color: #34465d; font-size: 12px; }
.sc-account-balance strong { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-balance-icon { flex: 0 0 16px; width: 16px; height: 16px; color: #64748b; }
.sc-account-funding { display: inline-flex; flex: 0 0 auto; }
.sc-account-funding > .sc-page-shortcut { gap: 5px; min-height: 36px; margin: 0; padding: 7px 10px; border: 0; border-left: 1px solid var(--sitechai-border); border-radius: 0 5px 5px 0; background: #fafbfc; color: var(--sitechai-blue); font-size: 12px; font-weight: 500; white-space: nowrap; }
.sc-account-funding:first-child > .sc-page-shortcut { border-left: 0; border-radius: 5px; }
.sc-account-funding > .sc-page-shortcut:hover { background: #edf4fb; color: var(--sitechai-blue-dark); }
.sc-account-funding .sc-action-icon { width: 16px; height: 16px; }

/* Persistent page actions use the same enabled destinations as the native menu. */
.sc-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--sitechai-border); }
.sc-back-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid #cfdeef; border-radius: 7px; background: #fff; color: var(--sitechai-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.sc-back-link:hover { border-color: #9fb9d8; background: #f5f8fc; color: var(--sitechai-blue-dark); text-decoration: none; }
.sc-back-link > i { font-size: 12px; }
.sc-page-shortcuts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.sc-page-shortcuts:empty { display: none; }
.sc-page-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid #cbdff4; border-radius: 7px; background: #fff; color: var(--sitechai-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; text-align: center; overflow-wrap: anywhere; }
.sc-page-shortcut:hover { border-color: #bdd1e7; background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); text-decoration: none; }
.sc-page-shortcut > i { flex: 0 0 auto; font-size: 13px; }
.sc-page-shortcut-order { border-color: var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; box-shadow: none; }
.sc-page-shortcut-order:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); color: #fff; }
.sc-page-shortcut-order .sc-nav-badge { background: rgba(255,255,255,.18); color: #fff; }

/* Preserve the complete native context rail on every service/module page. */
#main-body.sc-main { flex: 1 0 auto; width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 30px 20px; }
.sc-main > .sc-content-container { width: 100%; max-width: none; margin: 0; padding: 0; }
.sc-native-layout, .sc-content-row { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 22px; margin: 0; }
.sc-native-content, .sc-primary-content { order: 1; flex: 1 1 0; width: 0; max-width: 100%; min-width: 0; padding: 0; }
.sc-context-sidebar { order: 2; flex: 0 0 250px; width: 250px; max-width: 250px; min-width: 0; padding: 0; }
.sc-native-content > .header-lined { margin: 0 0 24px; padding-bottom: 0; border: 0; }
.sc-native-content > .header-lined h1 { margin: 0; border: 0; color: var(--sitechai-ink); font-family: inherit; font-size: 25px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; }
.sc-native-content > .header-lined h1 small { display: block; margin-top: 7px; color: var(--sitechai-muted); font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.sc-native-content > .header-lined .breadcrumb { margin: 10px 0 0; padding: 0; background: transparent; font-size: 12px; }
.sc-context-sidebar .sidebar > .card { margin-bottom: 18px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
.sc-context-sidebar .sidebar > .card > .card-header { padding: 14px 16px; border-bottom: 1px solid var(--sitechai-border); border-radius: 5px 5px 0 0; background: #fafbfc; color: var(--sitechai-ink); }
.sc-context-sidebar .card-header .card-title { margin: 0; color: var(--sitechai-ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.sc-context-sidebar .card-header .card-title > i { color: #64748b; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .card-body { padding: 18px; color: var(--sitechai-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > .list-group-item { padding: 11px 18px; border-color: #f0f2f6; background: #fff; color: #445873; font-size: 12px; }
.sc-context-sidebar .sidebar-menu-item-wrapper, .sc-context-sidebar .sidebar-menu-item-label { min-width: 0; }
.sc-context-sidebar .sidebar-menu-item-label { overflow-wrap: anywhere; }
.sc-context-sidebar .list-group-item .badge { flex-shrink: 0; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > a.list-group-item:hover { background: #f7f9fc; color: var(--sitechai-blue); }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > .list-group-item.active { border-color: #dce8f4; background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); font-weight: 600; }
.sc-context-sidebar .card-sidebar > .collapsable-card-body > .list-group > .list-group-item.disabled { background: #f7f9fc; color: #929eae; }
.sc-context-sidebar .card-sidebar > .card-footer { padding: 12px 18px; border-color: var(--sitechai-border); border-radius: 0 0 5px 5px; background: #fafbfc; }
/* Center native footer actions inside their full-height button box. */
.sc-context-sidebar .card-sidebar > .card-footer > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border-radius: 6px; font-size: 12px; line-height: 18px; }
.sc-context-sidebar .card-sidebar > .card-footer > .btn > i { flex: 0 0 auto; line-height: 1; vertical-align: middle; }


.sc-context-sidebar .card-sidebar > .card-footer > .btn-primary,
.sc-context-sidebar .card-sidebar > .card-footer > .btn-success { border-color: var(--sitechai-blue); background: var(--sitechai-blue); color: #fff; }
.sc-context-sidebar .card-sidebar > .card-footer > .btn-primary:hover,
.sc-context-sidebar .card-sidebar > .card-footer > .btn-success:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-children .sc-nav-item.active > .sc-nav-link,
.sc-sidebar .sc-nav-children .sc-nav-item.active > .sc-nav-group > .sc-nav-summary { background: #e4effc; color: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-children .sc-nav-item.active .sc-nav-badge { background: #d6e7fa; color: var(--sitechai-blue-dark); }

/* Clear account summaries use only the live counts WHMCS supplies. */
.sc-dashboard-heading h1 { margin: 0; color: var(--sitechai-ink); font-family: inherit; font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.35px; }
.sc-dashboard-heading p { margin: 5px 0 0; color: var(--sitechai-muted); font-size: 13px; line-height: 1.65; }
.sc-dashboard-stats.tiles { margin: 0 0 22px !important; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sc-dashboard-stats.tiles > .row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0; }
.sc-dashboard-stats .row > [class*="col-"] { width: auto; max-width: none; min-width: 0; padding: 0; }
.sc-dashboard-stats.tiles > .row > div > .tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 118px; height: 100%; margin: 0; padding: 16px 18px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; color: var(--sitechai-ink); box-shadow: var(--sitechai-shadow); text-align: left; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.sc-dashboard-stats.tiles > .row > div > .tile:hover { border-color: #a9c7e8; background: #fafbfc; text-decoration: none; }
.sc-stat-icon-box { position: absolute; top: 16px; left: 18px; display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 0; background: transparent; color: var(--sitechai-blue); }
.sc-stat-icon-box > .sc-stat-icon { position: static; width: 18px; height: 18px; color: inherit; }
.sc-dashboard-stats .tile .title { order: 1; display: flex; align-items: center; min-height: 18px; margin: 0 0 14px; padding: 0 0 0 28px; color: #385978; font-size: 13px; font-weight: 500; line-height: 1.45; text-transform: none; overflow-wrap: anywhere; }
.sc-dashboard-stats .tile .stat { order: 2; margin: 0; color: var(--sitechai-ink); font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.sc-stat-caption { order: 3; margin-top: 5px; padding-right: 20px; color: var(--sitechai-muted); font-size: 11px; line-height: 1.4; }
.sc-stat-arrow { position: absolute; right: 16px; bottom: 16px; width: 16px; height: 16px; color: #527ca8; }
.sc-dashboard-stats .tile .highlight { display: none; }

/* Every native home panel is retained, with the live context cards alongside. */
.sc-dashboard-grid { min-width: 0; }
.sc-dashboard-has-rail { display: grid; grid-template-columns: minmax(0,1fr) 270px; align-items: start; gap: 20px; }
.sc-dashboard-rail { width: 100%; max-width: none; }
.sc-dashboard-panels { min-width: 0; }
.sc-dashboard-panels > .row { margin-right: -10px; margin-left: -10px; }
.sc-dashboard-panels > .row > [class*="col-"] { padding-right: 10px; padding-left: 10px; }
.sc-dashboard-has-rail .sc-dashboard-panels > .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.sc-dashboard-panels > .row > div > .card { margin-bottom: 20px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
.sc-dashboard-panels > .row > div > .card > .card-header { padding: 13px 18px; border-bottom: 1px solid var(--sitechai-border); border-radius: 5px 5px 0 0; background: #fafbfc; }
.sc-dashboard-panels .card > .card-header > .card-title { margin: 0; color: var(--sitechai-ink); font-size: 14px; font-weight: 600; line-height: 1.7; }
.sc-dashboard-panels .card > .card-header .card-title > i { margin-right: 5px; color: #64748b; font-size: 12px; }
.sc-dashboard-panels .card > .card-header .card-title > .float-right > .btn { margin-left: 8px; padding: 3px 0 3px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--sitechai-blue); font-size: 11px; font-weight: 500; }
.sc-dashboard-panels .card > .card-header .card-title > .float-right > .btn:hover { color: var(--sitechai-blue); }
.sc-dashboard-panels > .row > div > .card > .card-body { padding: 20px; color: var(--sitechai-muted); font-size: 13px; line-height: 1.75; }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item { padding: 14px 18px; border-color: #edf0f4; background: #fff; color: var(--sitechai-ink); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.sc-dashboard-panels > .row > div > .card > .list-group > a.list-group-item:hover { background: #f8fafc; }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item.active { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item:last-child { border-radius: 0 0 5px 5px; }
.sc-dashboard-panels > .row > div > .card > .card-footer { padding: 12px 20px; border-top-color: var(--sitechai-border); border-radius: 0 0 5px 5px; background: #fafbfc; color: var(--sitechai-muted); font-size: 12px; }
.sc-dashboard-panels > .row > div > .card > .card-footer a { color: var(--sitechai-blue); }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item .btn-default { padding: 7px 11px; border-color: #dbe2ea; background: #fff; color: var(--sitechai-blue-dark); font-size: 12px; font-weight: 500; }
.sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item .btn-default:hover { border-color: #a5c4e5; background: #eaf3fe; }
.sc-dashboard-panels .card > .card-footer:empty { display: none; }

/* Compact invoice summary and aligned rows; all payment destinations stay native. */
.sc-dashboard-panels > .row > div > .sc-unpaid-card > .card-header { padding: 16px 18px; background: #fff; }
.sc-dashboard-panels .sc-unpaid-card > .card-header > .card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.4; }
.sc-panel-icon { width: 18px; height: 18px; margin-right: 2px; color: var(--sitechai-blue); }
.sc-dashboard-panels .sc-unpaid-card .sc-unpaid-panel-actions { order: 3; float: none !important; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--sitechai-blue); border-radius: 5px; background: var(--sitechai-blue); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; text-decoration: none; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay:hover { border-color: var(--sitechai-blue-dark); background: var(--sitechai-blue-dark); }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay .sc-action-icon { width: 16px; height: 16px; }
.sc-dashboard-panels .sc-unpaid-card > .card-header .card-title > .sc-unpaid-panel-actions > .btn { margin: 0; padding: 7px 0; font-size: 12px; }
.sc-dashboard-panels > .row > div > .sc-unpaid-card > .card-body { min-height: 0; padding: 16px 18px; background: #f8fafc; color: #52677f; font-size: 13px; line-height: 1.6; }
.sc-unpaid-card > .card-body > p:last-child { margin-bottom: 0; }
.sc-unpaid-card > .card-body > p:first-child { margin-top: 0; }
.sc-unpaid-invoice-list { border-top: 1px solid var(--sitechai-border); }
.sc-unpaid-invoice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-width: 0; padding: 16px 18px; border-bottom: 1px solid #edf0f4; }
.sc-unpaid-invoice-row:last-child { border-bottom: 0; }
.sc-unpaid-invoice-info { flex: 1 1 200px; min-width: 0; }
.sc-unpaid-invoice-info > a { display: block; color: var(--sitechai-ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sc-unpaid-invoice-info > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--sitechai-muted); font-size: 12px; }
.sc-invoice-overdue { padding: 1px 6px; border-radius: 4px; background: #fff0ee; color: #a23c34; font-size: 11px; line-height: 18px; }
.sc-unpaid-invoice-action { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 22px; min-width: 0; max-width: 100%; margin-left: auto; }
.sc-unpaid-invoice-action > strong { margin-left: auto; color: var(--sitechai-ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sc-unpaid-invoice-action > .btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 34px; padding: 7px 10px; border: 1px solid #d5e0ec; border-radius: 5px; background: #fff; color: var(--sitechai-blue); font-size: 12px; line-height: 18px; }
.sc-unpaid-invoice-action > .btn:hover { border-color: #91b2d7; background: #f1f6fc; }
.sc-invoice-action-icon { width: 16px; height: 16px; }
.sc-unpaid-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 18px; border-top: 1px solid var(--sitechai-border); color: var(--sitechai-muted); font-size: 12px; }
.sc-unpaid-more a { color: var(--sitechai-blue); }
/* Only parent template surfaces; no broad module, iframe or gateway selectors. */
#main-body .primary-content > .card,
#main-body .primary-content > form > .card,
#main-body .primary-content > .tab-content > .tab-pane > .card,
#main-body .primary-content > #registration > form > div > .card { border-color: var(--sitechai-border); border-radius: var(--sitechai-radius); box-shadow: var(--sitechai-shadow); }
#main-body .primary-content > .card > .card-header,
#main-body .primary-content > form > .card > .card-header,
#main-body .primary-content > .tab-content > .tab-pane > .card > .card-header { padding: 18px 20px; border-bottom-color: var(--sitechai-border); border-radius: 5px 5px 0 0; background: #fafbfc; }
#main-body .primary-content > .card > .card-header > .card-title { color: var(--sitechai-ink); font-size: 15px; font-weight: 650; }
#main-body .primary-content > .card > .card-footer { border-top-color: var(--sitechai-border); border-radius: 0 0 5px 5px; background: #fafbfc; }
#main-body .primary-content > .table-container { min-width: 0; padding: 16px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
#main-body .primary-content > .table-container .table-list > thead > tr > th { padding-top: 13px; padding-bottom: 13px; border-color: var(--sitechai-border); background: #f7f8fa; color: #496887; font-size: 12px; font-weight: 600; }
#main-body .primary-content > .table-container .table-list > tbody > tr > td { padding-top: 16px; padding-bottom: 16px; border-color: #edf1f7; color: var(--sitechai-ink); font-size: 12px; }
#main-body .primary-content > .table-container .table-list > tbody > tr:hover > td { background: #f8fafc; }
#main-body .primary-content > .table-container .table-list a { color: var(--sitechai-blue-dark); }
#main-body .primary-content > .table-container .dataTables_filter input { border-color: #d3e1f0; border-radius: 7px; }
/* Low specificity keeps parent validation and disabled states authoritative. */
:where(#main-body #frmEditContact, #main-body #frmAddContact, #main-body #frmUpdateDetails, #main-body #frmSubmitTicket, #main-body #registration, #main-body #tabChangepw, #main-body #tabNameservers, #main-body #tabAutorenew, #main-body #tabReglock, #main-body #tabRelease) .form-control { border-color: #cbdcee; border-radius: 7px; }
:where(#main-body #frmEditContact, #main-body #frmAddContact, #main-body #frmUpdateDetails, #main-body #frmSubmitTicket, #main-body #registration, #main-body #tabChangepw, #main-body #tabNameservers, #main-body #tabAutorenew, #main-body #tabReglock, #main-body #tabRelease) .form-control:focus { border-color: var(--sitechai-blue); box-shadow: 0 0 0 3px rgba(29,95,169,.15); }
:where(#main-body #frmEditContact, #main-body #frmAddContact, #main-body #frmUpdateDetails, #main-body #frmSubmitTicket, #main-body #registration, #main-body #tabChangepw, #main-body #tabNameservers, #main-body #tabAutorenew, #main-body #tabReglock, #main-body #tabRelease) .btn-primary { border-color: var(--sitechai-blue); border-radius: 7px; background: var(--sitechai-blue); color: #fff; }
#main-body #tabOverview > .nav-tabs { border-bottom-color: var(--sitechai-border); }
#main-body #tabOverview > .nav-tabs > .nav-item > .nav-link { color: var(--sitechai-muted); border-radius: 5px 5px 0 0; }
#main-body #tabOverview > .nav-tabs > .nav-item > .nav-link.active { color: var(--sitechai-blue-dark); background: #fff; border-color: var(--sitechai-border) var(--sitechai-border) transparent; }
#main-body #tabOverview > .product-details-tab-container { border-color: var(--sitechai-border); border-radius: 0 0 var(--sitechai-radius) var(--sitechai-radius); }

#footer.sc-footer { padding: 22px 36px; border: 0; background: transparent; color: #8391a6; font-size: 11px; }
.sc-footer > .sc-footer-inner { max-width: none; padding: 0; }
#footer.sc-footer .nav-link, #footer.sc-footer .btn { color: #6d7e97; font-size: 11px; }
.sc-footer p { margin-bottom: 0; }
.sc-sidebar a:focus-visible, .sc-sidebar summary:focus-visible, .sc-sidebar button:focus-visible,
.sc-topbar a:focus-visible, .sc-topbar button:focus-visible, .sc-topbar summary:focus-visible,
.sc-context-sidebar a:focus-visible, .sc-dashboard-stats .tile:focus-visible,
.sc-page-toolbar a:focus-visible,
.sc-dashboard-actions a:focus-visible, .sc-footer a:focus-visible, .sc-footer button:focus-visible { outline: 3px solid #75a8db; outline-offset: 3px; }

/* SiteChai brand surfaces, scoped away from third-party module internals. */
#header.sc-topbar { border-bottom-color: var(--sitechai-border); background: #fff; }
.sc-sidebar .sc-nav-icon { color: #3e658e; }
.sc-sidebar .sc-nav-link:hover, .sc-sidebar .sc-nav-summary:hover { background: var(--sitechai-soft-blue); }
.sc-sidebar .sc-nav-group[open] > .sc-nav-summary { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
.sc-sidebar .sc-nav-item.active > .sc-nav-group[open] > .sc-nav-summary { background: var(--sitechai-blue); color: #fff; }
.sc-context-sidebar .sidebar > .card > .card-header,
.sc-dashboard-panels > .row > div > .card > .card-header { background: #fafbfc; border-bottom-color: var(--sitechai-border); }
.sc-shell-main { background: var(--sitechai-background); }
.sc-sidebar { border-top: 0; }
.sc-sidebar-caption { color: #596e8a; font-size: 11px; }
.sc-topbar-label { display: block; color: var(--sitechai-ink); font-size: 13px; font-weight: 650; }
.sc-topbar-context { min-width: 0; }
.sc-workspace-breadcrumbs { margin-top: 3px; }
.sc-workspace-breadcrumbs:empty { display: none; }
.sc-page-toolbar { padding-bottom: 0; border-bottom: 0; }
.sc-native-content { padding: 24px; border: 1px solid var(--sitechai-border); border-radius: var(--sitechai-radius); background: #fff; box-shadow: var(--sitechai-shadow); }
.sc-dashboard-page .sc-native-content, .sc-cart-page .sc-native-content { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sc-dashboard-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 0; margin-bottom: 22px; border: 0; border-radius: 0; background: transparent; }
.sc-dashboard-heading > div { flex: 1 1 280px; min-width: 0; }
.sc-dashboard-heading > .sc-page-shortcuts { flex: 0 0 auto; }
.sc-dashboard-extras { margin-top: 28px; }
.sc-dashboard-extras:empty { display: none; }
.sc-dashboard-heading h1 { font-size: 24px; font-weight: 600; letter-spacing: -.35px; }
.sc-dashboard-heading p { margin-top: 6px; font-size: 13px; }
.sc-not-found { max-width: 650px; margin: 22px auto; padding: 32px 20px; text-align: center; }
.sc-error-code { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 72px; margin-bottom: 24px; border-radius: 20px; background: #eaf2fc; color: var(--sitechai-blue); font-size: 34px; font-weight: 750; }
.sc-not-found h1 { font-size: 30px; font-weight: 650; letter-spacing: -.7px; }
.sc-not-found p { max-width: 440px; margin: 16px auto 24px; color: var(--sitechai-muted); font-size: 14px; line-height: 1.8; }
.sc-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sc-error-actions .btn { padding: 12px 18px; border-radius: 9px; }
.sc-error-actions .btn-primary { background: var(--sitechai-blue); border-color: var(--sitechai-blue); }
.sc-error-actions .btn-default { border: 1px solid var(--sitechai-border); background: #fff; }
.sc-not-found > small { display: block; margin-top: 30px; color: var(--sitechai-muted); }
@media (max-width: 767.98px) {
  #header.sc-topbar .sc-cart .sc-cart-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #header.sc-topbar .sc-cart { gap: 6px; min-width: 70px; padding: 9px; }
  .sc-native-content { padding: 18px; }
  .sc-dashboard-heading { flex-direction: column; align-items: flex-start; padding: 0; gap: 16px; }
  .sc-dashboard-heading > div { flex: 0 1 auto; }
  .sc-dashboard-heading > .sc-page-shortcuts { justify-content: flex-start; }
  .sc-dashboard-heading h1, .sc-not-found h1 { font-size: 24px; }
  .sc-not-found { padding: 20px 0; }
  .sc-error-actions .btn { width: 100%; }
}

@media (min-width: 1600px) {
  .sc-dashboard-has-rail { grid-template-columns: minmax(0,1fr) 290px; }
}
@media (max-width: 1399.98px) {
  #header.sc-topbar { gap: 14px; padding-inline: 26px; }
  #main-body.sc-main { padding-inline: 26px; }
  .sc-native-layout, .sc-content-row { gap: 20px; }
  .sc-context-sidebar:not(.sc-dashboard-rail) { flex-basis: 220px; width: 220px; max-width: 220px; }
  .sc-dashboard-has-rail { grid-template-columns: minmax(0,1fr) 250px; gap: 18px; }
  .sc-search { flex-basis: 175px; }
  #header.sc-topbar .sc-cart .sc-cart-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #footer.sc-footer { padding-inline: 26px; }
}
@media (max-width: 1199.98px) {
  #header.sc-topbar { flex-wrap: wrap; }
  #header.sc-topbar .sc-topbar-start { flex: 1 1 auto; }
  #header.sc-topbar .sc-topbar-end { flex: 1 1 100%; justify-content: flex-end; }
  .sc-native-layout, .sc-content-row { flex-wrap: wrap; }
  .sc-native-content, .sc-primary-content { flex: 1 1 100%; width: 100%; }
  .sc-context-sidebar:not(.sc-dashboard-rail) { flex: 1 1 100%; width: 100%; max-width: 100%; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar > .card { margin-bottom: 0; }
  .sc-context-sidebar .sidebar + .sidebar { margin-top: 18px; }
  .sc-topbar-start, .sc-topbar-end { gap: 9px; }
  .sc-search { flex-basis: 155px; }
  .sc-dashboard-stats.tiles > .row { gap: 12px; }
  .sc-dashboard-stats.tiles > .row > div > .tile { padding: 17px 15px; }
  .sc-stat-icon-box { top: 17px; left: 15px; }
  .sc-dashboard-stats .tile .title { padding-left: 28px; font-size: 12px; }
}
@media (max-width: 991.98px) {
  /* No-JS navigation stays in the document and is always reachable. */
  .sc-sidebar { position: static; width: auto; max-height: none; padding: 20px; border-right: 0; border-bottom: 1px solid var(--sitechai-border); }
  .sc-sidebar-brand { padding-left: 0; padding-bottom: 14px; }
  .sc-sidebar-bottom { padding-top: 20px; }
  .sc-shell-main { margin-left: 0; }
  #header.sc-topbar { min-height: 62px; padding: 10px 22px; }
  .sc-enhanced .sc-sidebar { position: fixed; width: var(--sitechai-sidebar-width); padding: 26px 14px 20px; border-right: 1px solid var(--sitechai-border); transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
  .sc-enhanced.sc-navigation-open .sc-sidebar { transform: translateX(0); visibility: visible; }
  .sc-enhanced.sc-navigation-open { overflow: hidden; }
  .sc-enhanced .sc-menu-toggle, .sc-enhanced .sc-sidebar-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #6c7f9d; }
  .sc-enhanced .sc-sidebar-close { position: absolute; top: -18px; right: -9px; }
  .sc-enhanced .sc-menu-toggle:hover { background: var(--sitechai-soft-blue); color: var(--sitechai-blue-dark); }
  .sc-enhanced.sc-navigation-open .sc-overlay { position: fixed; inset: 0; z-index: 1035; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(8,21,44,.4); cursor: pointer; }
  #main-body.sc-main { padding: 25px 22px 20px; }
}
@media (max-width: 767.98px) {
  #header.sc-topbar { gap: 10px; padding-inline: 18px; }
  .sc-topbar-start { min-width: 34px; }
  .sc-workspace-breadcrumbs .breadcrumb { font-size: 11px; }
  .sc-topbar-end { gap: 7px; }
  .sc-search { flex-basis: 145px; }
  .sc-account-nav .sc-nav-summary, .sc-account-nav .sc-nav-link { padding: 7px; font-size: 11px; }
  #main-body.sc-main { padding: 23px 18px 15px; }
  .sc-page-toolbar { align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; }
  .sc-page-shortcuts { gap: 8px; }
  .sc-back-link, .sc-page-shortcut { min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .sc-dashboard-heading { margin-bottom: 18px; }
  .sc-dashboard-heading h1, .sc-native-content > .header-lined h1 { font-size: 23px; }
  .sc-dashboard-heading p { font-size: 12px; }
  .sc-dashboard-stats.tiles > .row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sc-dashboard-stats.tiles > .row > div > .tile { min-height: 118px; }
  .sc-dashboard-has-rail { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sc-dashboard-panels > .row > div { flex: 0 0 100%; max-width: 100%; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar { gap: 15px; }
  /* Let native table regions scroll without clipping module or gateway content. */
  #main-body .primary-content > .table-container { max-width: 100%; overflow-x: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
  #main-body .primary-content > .table-container .table-list { min-width: 540px; }
  #main-body .primary-content > .table-container .dataTables_wrapper > .row { margin-inline: 0; }
  #footer.sc-footer { padding: 20px 18px; }
}
@media (max-width: 575.98px) {
  #header.sc-topbar { flex-wrap: wrap; }
  #header.sc-topbar .sc-topbar-start { flex: 0 0 34px; }
  #header.sc-topbar .sc-topbar-context { display: none; }
  .sc-search { flex: 1 1 130px; }
  #header.sc-topbar .sc-topbar-end { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .sc-account-funds { flex: 1 1 100%; width: 100%; justify-content: space-between; }
  .sc-account-nav { flex: 1 1 auto; min-width: 0; }
  .sc-account-nav > .sc-nav-list { justify-content: flex-end; }
  .sc-unpaid-invoice-row { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 16px; }
  .sc-unpaid-invoice-info { flex-basis: auto; }
  .sc-unpaid-invoice-action { flex-basis: auto; width: 100%; justify-content: space-between; gap: 12px; }
  .sc-unpaid-invoice-action > strong { margin-left: 0; }
  .sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-children { right: 0; }
  .sc-page-shortcuts { flex-direction: column; align-items: stretch; }
  .sc-page-shortcut-order { order: -1; }
  .sc-context-sidebar:not(.sc-dashboard-rail) .sidebar { grid-template-columns: minmax(0,1fr); }
  .sc-dashboard-stats .tile .stat { font-size: 26px; }
  .sc-dashboard-panels > .row > div > .card > .card-header, .sc-dashboard-panels > .row > div > .card > .card-body { padding: 16px; }
  .sc-dashboard-panels > .row > div > .card > .list-group > .list-group-item { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-sidebar, .sc-nav-link, .sc-nav-summary, .sc-nav-chevron, .sc-dashboard-stats .tile { transition: none !important; }
  .sc-shell { scroll-behavior: auto; }
}
@media print {
  .sc-sidebar, .sc-topbar, .sc-overlay, .sc-footer, .sc-skip-link, .sc-page-toolbar { display: none !important; }
  .sc-shell-main { display: block; min-height: 0; margin: 0; }
  #main-body.sc-main { max-width: none; margin: 0; padding: 0; }
  .sc-native-layout, .sc-content-row, .sc-dashboard-grid { display: block; }
  .sc-native-content, .sc-primary-content, .sc-context-sidebar { width: 100%; max-width: none; }
  .sc-context-sidebar { margin-top: 24px; }
  .sc-dashboard-stats .tile, .sc-dashboard-panels > .row > div > .card, .sc-context-sidebar .card { break-inside: avoid; box-shadow: none; }
  #main-body .primary-content > .table-container { overflow: visible; padding: 0; }
  body.sc-portal { background: #fff; }
}

#main-body.sc-main:focus { outline: none; }
#main-body.sc-main:focus-visible { outline: 2px solid #84addc; outline-offset: -2px; }

/* Native account pages: quiet navigation and one table surface. */
.sc-page-toolbar { gap: 12px; margin-bottom: 18px; padding-bottom: 0; }
.sc-back-link { min-height: 40px; padding: 8px 2px; border: 0; border-radius: 3px; background: transparent; color: #52677f; font-weight: 500; }
.sc-back-link:hover { border: 0; background: transparent; color: var(--sitechai-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.sc-page-shortcut { min-height: 38px; padding: 8px 12px; border-radius: 4px; font-weight: 500; }
.sc-page-shortcut-affiliates { border-color: transparent; background: transparent; color: #52677f; }
.sc-page-shortcut-affiliates:hover { background: #edf1f5; border-color: transparent; }
.sc-sidebar-nav [menuItemName="Support"] [menuItemName="Downloads"],
.sc-sidebar-nav [menuItemName="Support"] [menuItemName="Network Status"],
.sc-context-sidebar [menuItemName="Support"] [menuItemName="Downloads"],
.sc-context-sidebar [menuItemName="Support"] [menuItemName="Network Status"] { display: none !important; }

/* The native responsive table keeps its existing controls, events and row data. */
body[data-sc-page="clientareadomains"] .sc-native-content,
body[data-sc-page="clientareaproducts"] .sc-native-content { padding: 0; border: 0; background: transparent; }
body[data-sc-page="clientareadomains"] #domainForm > .table-container,
body[data-sc-page="clientareaproducts"] #main-body .primary-content > .table-container { min-width: 0; max-width: 100%; padding: 16px; border: 1px solid var(--sitechai-border); border-radius: 5px; background: #fff; overflow: visible; }
body[data-sc-page="clientareadomains"] #domainForm .listtable,
body[data-sc-page="clientareaproducts"] .sc-native-content .listtable { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,240px); gap: 12px; align-items: center; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_info,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_info { grid-column: 1; grid-row: 1; padding: 0; text-align: left; color: var(--sitechai-muted); font-size: 12px; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_filter,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter { grid-column: 2; grid-row: 1; float: none; width: auto; margin: 0; text-align: left; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_filter label,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter label { display: block; margin: 0; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_filter input,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter input { width: 100%; min-height: 38px; margin: 0; padding: 8px 10px 8px 34px !important; border: 1px solid #cdd6e0; border-radius: 4px; background-color: #fff; background-size: 17px; background-position: 10px center; font-size: 13px; }
body[data-sc-page="clientareadomains"] #tableDomainsList,
body[data-sc-page="clientareaproducts"] #tableServicesList { grid-column: 1 / -1; grid-row: 2; min-width: 0; max-width: 100%; margin: 0 0 12px !important; border: 0; border-radius: 0; }
body[data-sc-page="clientareadomains"] #tableDomainsList th,
body[data-sc-page="clientareaproducts"] #tableServicesList th { padding: 12px 9px; border-bottom: 1px solid #dce3ea; background: #f6f8fa; color: #52677f; font-size: 12px; font-weight: 600; }
body[data-sc-page="clientareadomains"] #tableDomainsList td,
body[data-sc-page="clientareaproducts"] #tableServicesList td { padding: 13px 9px; border-color: #e9edf2; font-size: 13px; overflow-wrap: anywhere; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_paginate,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_paginate { padding-top: 4px; }
body[data-sc-page="clientareadomains"] #domainForm .pagination,
body[data-sc-page="clientareaproducts"] .sc-native-content .pagination { flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_length,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_length { margin-top: 5px; text-align: left; font-size: 12px; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_length select,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_length select { min-height: 34px; border-radius: 4px; }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group { display: flex; flex-wrap: wrap; gap: 8px; }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group > .btn,
body[data-sc-page="clientareadomains"] #domainForm > .btn-group > .btn-group > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 12px; margin: 0; border: 1px solid #d3dce6; border-radius: 4px; background: #fff; color: #294763; font-size: 13px; line-height: 1.4; white-space: normal; }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group > .btn-group { margin: 0; }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group .btn:hover { background: #f0f5fa; border-color: #a7bacf; }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group .dropdown-menu { left: auto !important; right: 0; top: calc(100% + 4px) !important; transform: none !important; min-width: 220px; max-width: calc(100vw - 40px); padding: 5px; border-color: #d3dce6; border-radius: 5px; box-shadow: 0 4px 12px rgba(16,43,73,.09); }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group .dropdown-item { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 11px; border-radius: 3px; white-space: normal; }
body[data-sc-page="clientareadomains"] #domainForm > .btn-group i { flex: 0 0 16px; width: 16px; text-align: center; }

.sc-service-location-value { display: flex; align-items: center; gap: 8px; }
.sc-service-location-flag { display: inline-block; flex: 0 0 24px; width: 24px; height: 18px; object-fit: contain; border-radius: 2px; }
/* A restrained red action signals unpaid balances without an alarming banner. */
.sc-dashboard-panels .sc-unpaid-card > .card-header { border-top: 2px solid #bb4b49; }
.sc-dashboard-panels .sc-unpaid-card .sc-panel-icon { color: #a43f3c; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay { border-color: #aa403d; background: #aa403d; color: #fff; border-radius: 4px; }
.sc-unpaid-panel-actions .sc-page-shortcut-masspay:hover { border-color: #913632; background: #913632; }
.sc-unpaid-invoice-action > .btn { border-color: #e0b9b5; color: #9b3e39; border-radius: 4px; }
.sc-unpaid-invoice-action > .btn:hover { border-color: #bc7771; background: #fff5f3; }

@media (max-width: 767.98px) {
  #header.sc-topbar { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px 58px; gap: 8px 6px; min-height: 0; padding: 10px 12px; }
  #header.sc-topbar .sc-topbar-start, #header.sc-topbar .sc-topbar-end { display: contents; }
  #header.sc-topbar .sc-topbar-context { display: none; }
  #header.sc-topbar .sc-menu-toggle { grid-column: 1; grid-row: 1; width: 36px; height: 40px; }
  #header.sc-topbar .sc-search { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; margin: 0; }
  #header.sc-topbar .sc-search input { min-height: 40px; padding-right: 5px; font-size: 12px; }
  #header.sc-topbar .sc-notifications { grid-column: 3; grid-row: 1; width: 36px; height: 40px; min-height: 40px; padding: 7px; }
  #header.sc-topbar .sc-cart { grid-column: 4; grid-row: 1; width: 58px; min-width: 0; min-height: 40px; height: 40px; gap: 5px; padding: 7px 5px; border-radius: 4px; }
  #header.sc-topbar .sc-cart #cartItemCount { min-width: 17px; height: 18px; padding-inline: 3px; font-size: 10px; line-height: 18px; }
  #header.sc-topbar .sc-account-funds { grid-column: 1 / 3; grid-row: 2; width: 100%; min-width: 0; margin: 0; justify-content: space-between; border-radius: 4px; }
  #header.sc-topbar .sc-account-balance { gap: 5px; min-width: 0; padding-inline: 7px; font-size: 11px; }
  #header.sc-topbar .sc-account-balance strong { white-space: normal; overflow-wrap: anywhere; }
  #header.sc-topbar .sc-account-balance .sc-balance-icon { width: 14px; height: 14px; flex-shrink: 0; }
  #header.sc-topbar .sc-account-funding { flex-shrink: 0; }
  #header.sc-topbar .sc-account-funding .sc-page-shortcut-addfunds { gap: 3px; min-height: 36px; padding: 7px 6px; font-size: 11px; }
  #header.sc-topbar .sc-account-funding .sc-action-icon { width: 14px; height: 14px; }
  #header.sc-topbar .sc-account-nav { grid-column: 3 / 5; grid-row: 2; min-width: 0; width: 100%; }
  #header.sc-topbar .sc-account-nav > .sc-nav-list { justify-content: flex-end; }
  #header.sc-topbar .sc-account-nav .sc-nav-summary, #header.sc-topbar .sc-account-nav .sc-nav-link { min-height: 38px; gap: 5px; padding: 7px 3px; font-size: 11px; }
  #header.sc-topbar .sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-summary .sc-nav-icon { display: none; }
  #header.sc-topbar .sc-account-nav .sc-nav-label { white-space: normal; overflow-wrap: anywhere; }
  #header.sc-topbar .sc-account-nav > .sc-nav-list > .sc-nav-item > .sc-nav-group > .sc-nav-children { right: 0; width: 240px; }
  #header.sc-topbar .btn-return-to-admin { grid-column: 1 / -1; justify-self: end; }
  #main-body.sc-main { padding: 18px 12px; }
  .sc-native-content { padding: 14px; }
  .sc-page-toolbar { flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; padding-bottom: 0; }
  .sc-page-toolbar > .sc-page-shortcuts { display: contents; }
  .sc-back-link { margin-right: auto; padding: 8px 2px; min-height: 40px; font-size: 13px; }
  .sc-page-toolbar .sc-page-shortcut { order: 0; min-height: 40px; padding: 8px 10px; gap: 6px; font-size: 12px; }
  .sc-dashboard-heading > .sc-page-shortcuts { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .sc-dashboard-heading .sc-page-shortcut { order: 0; min-height: 40px; padding: 8px 10px; font-size: 12px; }
  body[data-sc-page="clientareadomains"] #domainForm > .table-container,
  body[data-sc-page="clientareaproducts"] #main-body .primary-content > .table-container { padding: 12px; }
  body[data-sc-page="clientareadomains"] #domainForm .listtable,
  body[data-sc-page="clientareaproducts"] .sc-native-content .listtable { grid-template-columns: minmax(0,1fr); gap: 10px; }
  body[data-sc-page="clientareadomains"] #domainForm .dataTables_filter,
  body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter { grid-column: 1; grid-row: 1; }
  body[data-sc-page="clientareadomains"] #domainForm .dataTables_info,
  body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_info { grid-column: 1; grid-row: 2; }
  body[data-sc-page="clientareadomains"] #tableDomainsList,
  body[data-sc-page="clientareaproducts"] #tableServicesList { grid-column: 1; grid-row: 3; min-width: 0; }
  body[data-sc-page="clientareadomains"] #tableDomainsList td,
  body[data-sc-page="clientareaproducts"] #tableServicesList td { padding: 12px 7px; font-size: 12px; }
  body[data-sc-page="clientareadomains"] #domainForm > .btn-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body[data-sc-page="clientareadomains"] #domainForm > .btn-group > .btn,
  body[data-sc-page="clientareadomains"] #domainForm > .btn-group > .btn-group > .btn { width: 100%; min-height: 44px; padding: 9px 8px; font-size: 12px; }
  body[data-sc-page="clientareadomains"] #domainForm > .btn-group > .btn-group { min-width: 0; }
  body[data-sc-page="clientareadomains"] #domainForm > .btn-group .dropdown-menu { max-width: calc(100vw - 24px); }
  body[data-sc-page="clientareaproductdetails"] #configoptions > .row { padding-block: 9px; text-align: left; }
  body[data-sc-page="clientareaproductdetails"] #configoptions > .row > div + div { margin-top: 3px; }
}
.sc-context-sidebar [menuItemName="Support"] + .card.d-md-none option[menuItemName="Downloads"],
.sc-context-sidebar [menuItemName="Support"] + .card.d-md-none option[menuItemName="Network Status"] { display: none !important; }
body[data-sc-page="clientareadomains"] #domainForm .dataTables_filter input,
body[data-sc-page="clientareaproducts"] .sc-native-content .dataTables_filter input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718599' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"); }
@media (max-width: 767.98px) {
  #header.sc-topbar #accountNotifications.sc-notifications { width: 36px; height: 40px; min-height: 40px; }
}
/* Long native tables scroll within their own row; search and paging stay put. */
body.sc-portal:not(.sc-dashboard-page) .sc-shell-main { background: #fff; }
.sc-native-table-scroll { grid-column: 1 / -1; grid-row: 2; min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b8c4d0 #f0f3f6; }
.sc-native-table-scroll:focus-visible { outline: 2px solid #75a8db; outline-offset: 2px; }
body[data-sc-page="clientareadomains"] .sc-native-table-scroll #tableDomainsList { min-width: 620px; }
body[data-sc-page="clientareaproducts"] .sc-native-table-scroll #tableServicesList { min-width: 620px; }
body[data-sc-page="clientareadomains"] #tableDomainsList td:nth-child(3),
body[data-sc-page="clientareaproducts"] #tableServicesList td:nth-child(2) { min-width: 180px; }
@media (max-width: 767.98px) {
  .sc-native-table-scroll { grid-row: 3; }
  #header.sc-topbar .sc-account-balance { gap: 4px; padding: 5px; font-size: 10.5px; line-height: 14px; }
}
.sc-skip-link:not(:focus) { clip-path: inset(50%); }
/* Service summaries retain their native tabs and actions without oversized headings. */
body[data-sc-page="clientareaproductdetails"] .sc-native-content { padding: 0; border: 0; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon { padding: 8px 0 12px; border-radius: 0; background: transparent; text-align: left !important; font-size: 20px; line-height: 1.4; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon .fa-stack { display: none; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; line-height: 1.35; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-icon h4 { margin: 0; color: var(--sitechai-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-status { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border-radius: 0; background: transparent; }
body[data-sc-page="clientareaproductdetails"] .product-details .product-status-text { display: inline-block; padding: 3px 7px; border-radius: 3px; background: #eef2f5; color: #52677f; font-size: 11px; line-height: 18px; font-weight: 600; text-transform: none; }
body[data-sc-page="clientareaproductdetails"] .product-status-active .product-status-text { background: #edf6ef; color: #327342; }
body[data-sc-page="clientareaproductdetails"] .product-status-pending .product-status-text,
body[data-sc-page="clientareaproductdetails"] .product-status-suspended .product-status-text { background: #fff4e7; color: #976321; }
body[data-sc-page="clientareaproductdetails"] .product-status-fraud .product-status-text { background: #fff0ee; color: #a23c34; }
body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center { text-align: left !important; font-size: 13px; line-height: 1.6; }
body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center > h4 { margin: 14px 0 2px; color: #5d718b; font-size: 12px; font-weight: 500; line-height: 1.5; }
body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center > h4:first-child { margin-top: 0; }
body[data-sc-page="clientareaproductdetails"] .product-details-tab-container { padding: 18px; border-color: var(--sitechai-border); font-size: 13px; }
body[data-sc-page="clientareaproductdetails"] .responsive-tabs-sm .nav-link { padding: 11px 13px; color: #52677f; font-size: 13px; line-height: 1.4; }
body[data-sc-page="clientareaproductdetails"] .responsive-tabs-sm .nav-link.active { color: var(--sitechai-blue-dark); font-weight: 600; }
@media (max-width: 767.98px) {
  body[data-sc-page="clientareaproductdetails"] .product-details > .row > .col-md-6.text-center { padding-top: 6px; }
  body[data-sc-page="clientareaproductdetails"] .product-details-tab-container { padding: 14px; }
}
