/* Premium admin navigation drawer */
.admin-shell .app-sidebar{--drawer-ink:#14213a;--drawer-muted:#72829a;--drawer-line:#dfe7f2;position:relative;background:radial-gradient(circle at 0 0,rgba(37,99,235,.08),transparent 24%),linear-gradient(180deg,#fbfdff 0%,#f7faff 48%,#f3f7fd 100%);border-right:1px solid rgba(205,217,232,.9);box-shadow:10px 0 34px rgba(27,47,77,.055)}
.admin-shell .app-sidebar:before{position:absolute;inset:0 0 auto;z-index:0;height:3px;content:"";background:linear-gradient(90deg,#2563eb,#06b6d4,#8b5cf6)}
.admin-shell .sidebar-header{position:relative;z-index:2;min-height:76px;padding:15px 13px 15px 17px;border-bottom:1px solid rgba(214,224,237,.92);background:rgba(255,255,255,.7);backdrop-filter:blur(15px)}
.admin-shell .sidebar-brand{gap:11px}.admin-shell .sidebar-brand .brand-mark,.admin-shell .sidebar-brand .brand-initials{width:42px;height:42px;flex-basis:42px;border-radius:13px;background:linear-gradient(145deg,#3b82f6 0%,#245bd7 58%,#5138ba 100%);box-shadow:0 10px 23px rgba(37,99,235,.25),inset 0 0 0 1px rgba(255,255,255,.17)}.admin-shell .sidebar-brand .brand-copy strong{color:#111d34;font-size:.98rem;letter-spacing:-.02em}.admin-shell .sidebar-brand .brand-copy small{margin-top:3px;color:#78879c;font-size:.62rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.admin-shell .sidebar-collapse-btn{width:34px;height:34px;border:1px solid #dbe4ef;border-radius:10px;color:#66758d;background:rgba(255,255,255,.9);box-shadow:0 5px 15px rgba(31,50,81,.06);transition:color .18s,border-color .18s,transform .18s}.admin-shell .sidebar-collapse-btn:hover{color:#2563eb;border-color:#bcd0f6;transform:translateX(-1px)}
.admin-shell .sidebar-nav{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;padding:14px 10px 17px;scrollbar-color:#cbd7e6 transparent}.admin-shell .sidebar-nav::-webkit-scrollbar{width:5px}.admin-shell .sidebar-nav::-webkit-scrollbar-thumb{border-radius:999px;background:#cbd7e6}
.sidebar-command-search{position:relative;flex:0 0 auto;margin:0 2px 1px}.sidebar-command-search>i{position:absolute;left:13px;top:50%;z-index:2;transform:translateY(-50%);color:#8292aa;font-size:.72rem}.sidebar-command-search input{width:100%;height:40px;padding:0 42px 0 36px;border:1px solid #dbe5f1;border-radius:12px;outline:none;color:#1c2b44;background:rgba(255,255,255,.87);box-shadow:0 5px 16px rgba(41,61,92,.04);font:inherit;font-size:.72rem;font-weight:650}.sidebar-command-search input::placeholder{color:#93a1b4}.sidebar-command-search input:focus{border-color:#8eb4fb;box-shadow:0 0 0 3px rgba(37,99,235,.09)}.sidebar-command-search kbd{position:absolute;right:9px;top:50%;transform:translateY(-50%);padding:3px 6px;border:1px solid #dbe4ee;border-radius:6px;color:#8a99ad;background:#f7f9fc;font-size:.5rem}
.admin-shell .sidebar-groups{gap:4px}.admin-shell .sidebar-section-label{position:relative;margin:16px 11px 6px;padding-left:12px;color:#91a0b4;font-size:.57rem;font-weight:900;letter-spacing:.14em}.admin-shell .sidebar-section-label:before{position:absolute;left:0;top:50%;width:5px;height:5px;content:"";transform:translateY(-50%);border-radius:50%;background:#b9c6d7}.admin-shell .sidebar-section-label:first-child{margin-top:5px}
.admin-shell .sidebar-groups [hidden]{display:none!important}
.admin-shell .sidebar-link{position:relative;min-height:42px;gap:11px;padding:9px 11px;border:1px solid transparent;border-radius:12px;color:#53637a;font-size:.82rem;font-weight:700;transition:color .17s,background .17s,border-color .17s,transform .17s,box-shadow .17s}.admin-shell .sidebar-link>i:first-child{width:29px;height:29px;display:grid;place-items:center;flex:0 0 29px;border-radius:9px;color:#7f90a7;background:rgba(226,233,243,.62);font-size:.72rem;transition:color .17s,background .17s,transform .17s}.admin-shell .sidebar-link:hover{color:#173d7c;border-color:#d8e6fa;background:rgba(240,246,255,.94);transform:translateX(2px);box-shadow:0 5px 16px rgba(37,99,235,.05)}.admin-shell .sidebar-link:hover>i:first-child{color:#2563eb;background:#e3edff;transform:scale(1.04)}.admin-shell .sidebar-link.active{color:#174ea9;border-color:#ceddf8;background:linear-gradient(135deg,#e8f1ff,#f1efff);box-shadow:0 8px 20px rgba(37,99,235,.1),inset 3px 0 0 #2563eb}.admin-shell .sidebar-link.active:after{position:absolute;right:11px;width:6px;height:6px;content:"";border-radius:50%;background:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.1)}.admin-shell .sidebar-parent.active:after{display:none}.admin-shell .sidebar-link.active>i:first-child{color:#fff;background:linear-gradient(145deg,#3b82f6,#4f46e5);box-shadow:0 5px 12px rgba(37,99,235,.2)}
.admin-shell .sidebar-parent .sidebar-chevron{width:14px;height:auto;display:block;flex-basis:14px;color:#93a2b5!important;background:transparent!important;font-size:.58rem}.admin-shell .sidebar-parent[aria-expanded=true]{color:#214a86;background:#f1f6fe}.admin-shell .sidebar-parent[aria-expanded=true]>i:first-child{color:#2563eb;background:#e3edff}.admin-shell .sidebar-parent[aria-expanded=true] .sidebar-chevron{color:#2563eb!important}
.admin-shell .sidebar-submenu{position:relative;margin:2px 0 4px 17px;padding:3px 0 3px 13px}.admin-shell .sidebar-submenu:before{position:absolute;left:0;top:2px;bottom:3px;width:1px;content:"";background:linear-gradient(#bfcef0,#d9e3ef)}.admin-shell .sidebar-submenu.show,.admin-shell .sidebar-groups.is-searching .sidebar-submenu{gap:2px}.admin-shell .sidebar-groups.is-searching .sidebar-submenu{display:grid}.admin-shell .sidebar-child{min-height:34px;padding:5px 9px;border:0;border-radius:9px;color:#66758d;background:transparent;font-size:.72rem;font-weight:680}.admin-shell .sidebar-child>i:first-child{width:25px;height:25px;flex-basis:25px;border-radius:8px;font-size:.62rem;background:#edf1f7}.admin-shell .sidebar-child:hover{color:#1d4ed8;background:#edf4ff;transform:translateX(2px);box-shadow:none}.admin-shell .sidebar-child.active{color:#1d4ed8;background:linear-gradient(90deg,#e4efff,#f2f5ff);box-shadow:none}.admin-shell .sidebar-child.active:before{position:absolute;left:-17px;width:5px;height:5px;content:"";border:2px solid #fff;border-radius:50%;background:#2563eb;box-sizing:content-box}.admin-shell .sidebar-child.active:after{display:none}
.admin-shell .sidebar-footer{position:relative;z-index:2;padding:12px 12px 14px;border-top:1px solid #dce6f1;background:linear-gradient(180deg,rgba(248,251,255,.75),rgba(240,246,253,.98))}.admin-shell .sidebar-status{gap:10px;padding:10px;border:1px solid #d7e3f1;border-radius:13px;color:#33445e;background:rgba(255,255,255,.86);box-shadow:0 7px 20px rgba(34,54,86,.055)}.sidebar-status-icon{position:relative;width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;color:#2563eb;background:#e8f1ff}.sidebar-status-icon>.status-dot{position:absolute;right:-2px;bottom:-1px;width:8px;height:8px;border:2px solid #fff;box-shadow:none}.sidebar-status-copy{min-width:0}.sidebar-status-copy strong,.sidebar-status-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-status-copy strong{color:#253650;font-size:.68rem}.sidebar-status-copy small{margin-top:2px;color:#8a99ad;font-size:.52rem}
@media(min-width:1200px){.admin-shell.sidebar-collapsed .sidebar-command-search{display:none}.admin-shell.sidebar-collapsed .sidebar-brand .brand-copy{display:none}.admin-shell.sidebar-collapsed .sidebar-link{justify-content:center;padding-inline:8px}.admin-shell.sidebar-collapsed .sidebar-link>i:first-child{margin:0}.admin-shell.sidebar-collapsed .sidebar-link.active:after{display:none}.admin-shell.sidebar-collapsed .sidebar-submenu{margin-left:0;padding-left:0}.admin-shell.sidebar-collapsed .sidebar-submenu:before{display:none}.admin-shell.sidebar-collapsed .sidebar-status-icon{margin:auto}.admin-shell.sidebar-collapsed .sidebar-status-copy{display:none}}
@media(max-width:1199.98px){.admin-shell .app-sidebar{width:min(90vw,310px)}.admin-shell .sidebar-header{padding-top:17px}.admin-shell .sidebar-command-search input{height:43px}.admin-shell .sidebar-link{min-height:44px}}
@media(prefers-reduced-motion:reduce){.admin-shell .sidebar-link,.admin-shell .sidebar-link>i:first-child,.admin-shell .sidebar-collapse-btn{transition:none}}

/* Readable typography scale for the core billing workspaces.
   These pages previously mixed 0.4rem-0.6rem labels with Bootstrap defaults. */
.admin-shell :is(
  .member-command-page,
  .member-directory-page,
  .member-form-page,
  .member-billing-page,
  .member-reports-page,
  .member-policy-page,
  .package-portfolio-page,
  .invoice-workspace-page,
  .tenant-workspace-page
) :is(.form-control,.form-select,.btn,button){font-size:.78rem!important}

.admin-shell :is(
  .member-command-page,
  .member-directory-page,
  .member-form-page,
  .member-billing-page,
  .member-reports-page,
  .member-policy-page,
  .package-portfolio-page,
  .invoice-workspace-page,
  .tenant-workspace-page
) :is(table,.table) thead th{font-size:.68rem!important;line-height:1.35}

.admin-shell :is(
  .member-command-page,
  .member-directory-page,
  .member-form-page,
  .member-billing-page,
  .member-reports-page,
  .member-policy-page,
  .package-portfolio-page,
  .invoice-workspace-page,
  .tenant-workspace-page
) :is(table,.table) tbody td{font-size:.78rem!important;line-height:1.45}

.admin-shell :is(
  .member-command-page,
  .member-directory-page,
  .member-form-page,
  .member-billing-page,
  .member-reports-page,
  .member-policy-page,
  .package-portfolio-page,
  .invoice-workspace-page,
  .tenant-workspace-page
) :is(table,.table) tbody :is(strong,b){font-size:.8rem!important}

.admin-shell :is(
  .member-command-page,
  .member-directory-page,
  .member-form-page,
  .member-billing-page,
  .member-reports-page,
  .member-policy-page,
  .package-portfolio-page,
  .invoice-workspace-page,
  .tenant-workspace-page
) :is(small,em,.small,.member-eyebrow,kbd){font-size:.68rem!important;line-height:1.45}

.admin-shell :is(
  .member-command-page,
  .member-directory-page,
  .member-form-page,
  .member-billing-page,
  .member-reports-page,
  .member-policy-page,
  .package-portfolio-page,
  .invoice-workspace-page,
  .tenant-workspace-page
) :is(.badge,[class*="-status"],[class*="-pill"]){font-size:.7rem!important}

/* Packages */
.admin-shell .package-portfolio-page :is(.package-create-button,.package-filter-reset,.package-export-button,.package-plan-card>footer .btn,.package-filter-empty .btn,.package-catalog-empty .btn){font-size:.76rem!important}
.admin-shell .package-portfolio-page :is(.package-portfolio-primary h2,.package-portfolio-note h2,.package-catalog-heading p,.package-plan-description,.package-plan-capabilities li,.package-feature-more summary,.package-capabilities-empty,.package-catalog-footer){font-size:.74rem!important}
.admin-shell .package-portfolio-page :is(.package-portfolio-primary p,.package-portfolio-note p,.package-filter-empty p,.package-catalog-empty p){font-size:.72rem!important}
.admin-shell .package-portfolio-page :is(.package-plan-heading>div>span,.package-plan-number,.package-plan-price span,.package-plan-capabilities>div:first-child>span,.package-plan-card>footer>span){font-size:.7rem!important}

/* Invoices */
.admin-shell .invoice-workspace-page :is(.invoice-dashboard-link,.invoice-export-button,.invoice-status-tabs a,.invoice-row-actions .btn,.invoice-search-empty .btn,.invoice-ledger-empty .btn){font-size:.76rem!important}
.admin-shell .invoice-workspace-page :is(.invoice-pulse-primary h2,.invoice-pulse-note h2,.invoice-ledger-heading p,.invoice-active-filter,.invoice-plan-pill,.invoice-action-locked,.invoice-ledger-footer){font-size:.74rem!important}
.admin-shell .invoice-workspace-page :is(.invoice-pulse-primary p,.invoice-pulse-note p,.invoice-search-empty p,.invoice-ledger-empty p,.invoice-settlement-details summary,.invoice-settlement-details span){font-size:.7rem!important}
.admin-shell .invoice-workspace-page :is(.invoice-number-cell strong,.invoice-client-cell strong,.invoice-amount-cell strong,.invoice-due-cell strong,.invoice-settlement strong){font-size:.8rem!important}

/* Client companies */
.admin-shell .tenant-workspace-page :is(.tenant-workspace-header .btn,.tenant-form-grid .form-control,.tenant-form-grid .form-select,.tenant-currency-form .form-select,.tenant-domain-manager .form-control,.tenant-directory-toolbar .form-control,.tenant-directory-toolbar .form-select){font-size:.78rem!important}
.admin-shell .tenant-workspace-page :is(.tenant-workspace-header p,.tenant-pulse-primary h2,.tenant-pulse-note h2,.tenant-section-heading p,.tenant-directory-heading p,.tenant-feature-heading p,.tenant-company-card>footer,.tenant-directory-footer){font-size:.74rem!important}
.admin-shell .tenant-workspace-page :is(.tenant-pulse-primary p,.tenant-pulse-note p,.tenant-filter-empty p,.tenant-directory-empty p,.tenant-dns-note){font-size:.7rem!important}
.admin-shell .tenant-workspace-page :is(.tenant-form-section-title strong,.tenant-form-grid label>span,.tenant-currency-form label>span,.tenant-domain-manager label>span,.tenant-feature-groups section>header strong,.tenant-feature-groups label strong,.tenant-database-card strong,.tenant-contact-card strong){font-size:.74rem!important}
.admin-shell .tenant-workspace-page :is(.tenant-feature-presets button,.tenant-create-form>footer .btn,.tenant-domain-actions button,.tenant-primary-form>button,.tenant-company-card>footer a,.tenant-company-card>footer button,.tenant-filter-empty .btn,.tenant-directory-empty .btn){font-size:.72rem!important}

/* Members */
.admin-shell :is(.member-command-page,.member-directory-page,.member-form-page,.member-billing-page,.member-reports-page,.member-policy-page) :is(.member-header-actions .btn,.member-directory-toolbar .btn,.member-form-actions .btn,.member-billing-runbook .btn,.member-billing-actions button){font-size:.76rem!important}
.admin-shell :is(.member-command-page,.member-directory-page,.member-form-page,.member-billing-page,.member-reports-page,.member-policy-page) :is(.member-directory-title p,.member-form-card-header p,.member-billing-primary>p,.member-billing-panel-heading p,.member-billing-empty p){font-size:.74rem!important}
.admin-shell :is(.member-command-page,.member-directory-page,.member-form-page,.member-billing-page,.member-reports-page,.member-policy-page) :is(.member-directory-person strong,.member-unit-detail strong,.member-rate strong,.member-directory-date strong,.member-billing-person strong,.member-invoice-number strong,.member-billing-date strong,.member-table-primary){font-size:.8rem!important}

/* Growth management — second-level drawer */
.admin-shell .growth-management-drawer>.sidebar-parent[aria-expanded=true]{color:#174f72;border-color:#c8e6e4;background:linear-gradient(135deg,#e9f6ff,#eafaf6)}
.admin-shell .growth-management-drawer>.sidebar-parent[aria-expanded=true]>i:first-child{color:#fff;background:linear-gradient(145deg,#2563eb,#0f9f8f);box-shadow:0 5px 12px rgba(15,159,143,.2)}
.admin-shell .growth-management-drawer .sidebar-child.active{color:#174ea9;background:linear-gradient(90deg,#e7f1ff,#eaf9f6)}
.admin-shell .growth-management-drawer .sidebar-child.active>i:first-child{background:linear-gradient(145deg,#3b82f6,#0f9f8f)}

/* Growth operations workspace */
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page{
  --growth-blue:#2563eb;
  --growth-teal:#0f9f8f;
  --growth-green:#15966b;
  --growth-violet:#7c4fe0;
  --growth-amber:#d98b18;
  --growth-red:#d84d5a;
  --growth-border:#dbe5ef;
  color:#233a54;
  padding-bottom:32px;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header){
  position:relative;
  isolation:isolate;
  min-height:172px;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:28px!important;
  overflow:hidden;
  margin:0 0 15px!important;
  padding:31px 34px!important;
  border:1px solid rgba(94,234,212,.2);
  border-radius:22px;
  background:linear-gradient(118deg,#0a2847 0%,#163b5f 58%,#116b6e 118%);
  box-shadow:0 20px 44px rgba(10,39,72,.145);
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)::before{
  content:"GROWTH OPERATIONS";
  position:absolute;
  left:35px;
  top:21px;
  color:#6ee7d8;
  font-size:.62rem;
  font-weight:850;
  letter-spacing:.12em;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:280px;
  height:280px;
  right:5%;
  top:-178px;
  border:1px solid rgba(94,234,212,.14);
  border-radius:50%;
  box-shadow:0 0 0 46px rgba(94,234,212,.025),0 0 0 92px rgba(94,234,212,.018);
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header) h1{
  margin:17px 0 6px;
  color:#fff;
  font-size:clamp(1.9rem,2.5vw,2.4rem);
  font-weight:850;
  letter-spacing:-.046em;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header) p{
  max-width:760px;
  margin:0!important;
  color:#c0d1df!important;
  font-size:.84rem;
  line-height:1.6;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)>.btn{
  position:relative;
  z-index:1;
  min-height:43px;
  display:inline-flex;
  align-items:center;
  border-color:rgba(255,255,255,.3);
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.09);
  font-size:.78rem;
  font-weight:760;
  padding:9px 15px;
  backdrop-filter:blur(8px);
  box-shadow:none;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)>.btn:hover{border-color:rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.16)}

body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(175px,1fr));
  gap:11px;
  margin:0 0 15px!important;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-card{
  position:relative;
  min-height:116px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-content:center;
  column-gap:11px;
  overflow:hidden;
  border:1px solid var(--growth-border);
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 22px rgba(40,61,85,.055);
  padding:17px 16px;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--growth-blue)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-card:nth-child(2)::before{background:var(--growth-amber)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-card:nth-child(3)::before{background:var(--growth-green)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-card:nth-child(4)::before{background:var(--growth-violet)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-card:nth-child(5)::before{background:var(--growth-teal)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-icon{grid-row:1/4;width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:var(--growth-blue);background:#eaf1ff;font-size:.82rem}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-label{color:#718299;font-size:.65rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-value{margin-top:3px;color:#142942;font-size:1.35rem;font-weight:840;letter-spacing:-.035em}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-note{margin-top:3px;color:#8a99aa;font-size:.68rem}

body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.surface,.table-card){
  position:relative;
  overflow:hidden;
  margin-top:0!important;
  border:1px solid var(--growth-border)!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 10px 27px rgba(29,52,80,.055)!important;
}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.surface,.table-card)::before{content:"";position:absolute;z-index:2;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--growth-blue),#537ee2 42%,var(--growth-teal))}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page form.table-card{margin-bottom:15px!important;padding:20px 22px!important}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .surface.p-3{padding:20px 22px!important}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .filter-bar{display:flex;align-items:center;gap:12px;margin:-2px 0 17px;padding-bottom:14px;border-bottom:1px solid #e6edf4}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .search-field{position:relative;min-width:min(100%,470px)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .search-field>i{position:absolute;z-index:1;left:13px;top:50%;color:#8295aa;font-size:.72rem;transform:translateY(-50%)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .search-field .form-control{padding-left:37px}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.form-label,.form-check-label){margin-bottom:6px;color:#52667e;font-size:.74rem;font-weight:740}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.form-control,.form-select){min-height:41px;border-color:#d8e3ee;border-radius:9px;color:#263d57;background-color:#fff;font-size:.79rem;box-shadow:none}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.form-control,.form-select):focus{border-color:#7da4ef;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .btn{min-height:38px;border-radius:9px;font-size:.75rem;font-weight:750;padding:8px 13px}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .btn-primary{border-color:#2563eb;background:linear-gradient(135deg,#2f6bf0,#2558d8);box-shadow:0 7px 16px rgba(37,99,235,.16)}

body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.surface,.table-card) .table-responsive{overflow:auto;margin:0 -22px -20px}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table-card>.table-responsive{margin:0}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table{min-width:880px;margin:0}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table thead th{border:0;border-bottom:1px solid #dce6f0;color:#586b81;background:#f5f8fc;font-size:.68rem;font-weight:850;letter-spacing:.045em;padding:12px 14px;text-transform:uppercase;white-space:nowrap}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table tbody td{border-color:#e8eef5;color:#41566f;font-size:.79rem;line-height:1.5;padding:13px 14px;vertical-align:middle}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table tbody tr:hover{background:#f8fbff}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table tbody td.text-muted.py-4{height:130px;color:#7d8da1!important;font-size:.83rem;text-align:center}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table .small{font-size:.68rem!important;line-height:1.45}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .badge{border-radius:999px;font-size:.68rem;font-weight:780;padding:6px 9px}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .review-actions{min-width:255px}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .review-actions .form-control{min-height:34px;font-size:.7rem}
body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .review-actions .btn{min-height:34px;font-size:.69rem;padding:6px 9px}

@media(max-width:991.98px){
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header){align-items:flex-start!important;flex-direction:column;padding:30px 25px 24px!important}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)::before{left:26px}
}
@media(max-width:575.98px){
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header){min-height:0;border-radius:17px;padding:28px 19px 21px!important}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)::before{left:20px;top:16px}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header) h1{font-size:1.75rem}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page>:is(.page-heading,.page-header)>.btn{width:100%;justify-content:center}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .kpi-grid{grid-template-columns:1fr}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .surface.p-3,body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page form.table-card{padding:17px 15px!important}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page :is(.surface,.table-card) .table-responsive{margin:0 -15px -17px}
  body.admin-shell:has(.sidebar-link.active:is([href*="/admin/plan-requests"],[href*="/admin/sales-agents"],[href*="/admin/commissions"])) .app-page .table-card>.table-responsive{margin:0}
}

/* Administration finish: User Accounts + Stripe Payments */
body.user-access-route .app-page{
  --admin-accent:#6d5ce7;
  --admin-accent-2:#2b73e8;
  --admin-soft:#f2f0ff;
  --admin-ink:#172c46;
  --admin-muted:#708299;
  --admin-border:#dce5ef;
}
body.stripe-payment-route .app-page{
  --admin-accent:#635bff;
  --admin-accent-2:#0f9f8f;
  --admin-soft:#efefff;
  --admin-ink:#172c46;
  --admin-muted:#708299;
  --admin-border:#dce5ef;
}
body:is(.user-access-route,.stripe-payment-route) .app-page{
  color:var(--admin-ink);
  padding-bottom:36px;
}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading){
  position:relative;
  isolation:isolate;
  min-height:176px;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:28px!important;
  overflow:hidden;
  margin:0 0 15px!important;
  padding:32px 34px!important;
  border:1px solid rgba(138,155,255,.22);
  border-radius:22px;
  background:linear-gradient(118deg,#0b2543 0%,#173b61 55%,#344d8d 112%);
  box-shadow:0 20px 44px rgba(15,37,69,.15);
}
body.stripe-payment-route .app-page .page-heading{background:linear-gradient(118deg,#171d46 0%,#343178 53%,#116a73 118%)}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)::before{
  position:absolute;
  left:35px;
  top:21px;
  color:#9ea9ff;
  font-size:.62rem;
  font-weight:850;
  letter-spacing:.13em;
}
body.user-access-route .app-page :is(.page-header,.page-heading)::before{content:"IDENTITY & ACCESS"}
body.stripe-payment-route .app-page .page-heading::before{content:"STRIPE PAYMENT OPERATIONS";color:#8ceade}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:300px;
  height:300px;
  right:6%;
  top:-190px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(255,255,255,.024),0 0 0 96px rgba(255,255,255,.018);
}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading) h1{
  margin:17px 0 6px;
  color:#fff!important;
  font-size:clamp(1.9rem,2.5vw,2.45rem);
  font-weight:860;
  letter-spacing:-.046em;
}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading) p{
  max-width:750px;
  margin:0!important;
  color:#c9d5e5!important;
  font-size:.84rem;
  line-height:1.6;
}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)>.btn{
  position:relative;
  z-index:1;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.31);
  border-radius:10px;
  color:#fff!important;
  background:rgba(255,255,255,.1)!important;
  font-size:.78rem;
  font-weight:780;
  padding:9px 16px;
  box-shadow:none;
  backdrop-filter:blur(8px);
}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)>.btn:hover{border-color:rgba(255,255,255,.58);background:rgba(255,255,255,.17)!important}

body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
  margin:0 0 15px!important;
}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card{
  position:relative;
  min-height:116px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-content:center;
  column-gap:11px;
  overflow:hidden;
  border:1px solid var(--admin-border);
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 22px rgba(38,58,84,.055);
  padding:17px 16px;
}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--admin-accent)}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card:nth-child(2)::before{background:#15966b}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card:nth-child(3)::before{background:#e19a24}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card:nth-child(4)::before{background:#e05d68}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-icon{grid-row:1/4;width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:var(--admin-accent);background:var(--admin-soft);font-size:.84rem}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card:nth-child(2) .kpi-icon{color:#12815c;background:#e8f8f0}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card:nth-child(3) .kpi-icon{color:#b9760e;background:#fff6df}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-card:nth-child(4) .kpi-icon{color:#c94552;background:#fff0f1}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-label{color:#718299;font-size:.65rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-value{margin-top:3px;color:#142942;font-size:1.38rem;font-weight:850;letter-spacing:-.035em}
body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-note{margin-top:3px;color:#8a99aa;font-size:.68rem}

body:is(.user-access-route,.stripe-payment-route) .app-page :is(.surface,.table-card){
  position:relative;
  overflow:hidden;
  border:1px solid var(--admin-border)!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 10px 27px rgba(29,52,80,.055)!important;
}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.surface,.table-card)::before{content:"";position:absolute;z-index:2;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--admin-accent),var(--admin-accent-2))}
body.user-access-route .app-page>.surface,
body.user-access-route .app-page>.table-card,
body.user-access-route .app-page>.user-access-page>:is(.surface,.table-card){margin-top:0!important;margin-bottom:15px!important}
body:is(.user-access-route,.stripe-payment-route) .app-page .surface.p-3{padding:20px 22px!important}
body.user-access-route .app-page .surface>form.row{padding-top:3px}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.form-label,.form-check-label){margin-bottom:6px;color:#51657c;font-size:.74rem;font-weight:750}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.form-control,.form-select){min-height:42px;border:1px solid #d8e3ee;border-radius:9px;color:#263d57;background-color:#fff;font-size:.79rem;box-shadow:none}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.form-control,.form-select):focus{border-color:#8797ed;box-shadow:0 0 0 3px rgba(99,91,255,.09)}
body:is(.user-access-route,.stripe-payment-route) .app-page .btn{min-height:38px;border-radius:9px;font-size:.75rem;font-weight:760;padding:8px 13px}
body:is(.user-access-route,.stripe-payment-route) .app-page .btn-primary{border-color:var(--admin-accent);background:linear-gradient(135deg,var(--admin-accent),var(--admin-accent-2));box-shadow:0 7px 16px rgba(67,83,206,.18)}
body.user-access-route .app-page .surface form.row .col-md-2.d-grid .btn{color:#fff;border-color:var(--admin-accent);background:linear-gradient(135deg,var(--admin-accent),var(--admin-accent-2))}

body:is(.user-access-route,.stripe-payment-route) .app-page :is(.ua-registry-heading,.stripe-registry-heading){display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 21px 15px;border-bottom:1px solid #e7edf4}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.ua-registry-heading,.stripe-registry-heading)>div>span{display:block;margin-bottom:3px;color:var(--admin-accent);font-size:.61rem;font-weight:860;letter-spacing:.1em}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.ua-registry-heading,.stripe-registry-heading) h2{margin:0;color:#172d47;font-size:1rem;font-weight:830}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.ua-registry-heading,.stripe-registry-heading) p{margin:3px 0 0;color:#7d8da0;font-size:.7rem}
body:is(.user-access-route,.stripe-payment-route) .app-page :is(.ua-registry-heading,.stripe-registry-heading)>b{flex:0 0 auto;border:1px solid #d9e3ef;border-radius:999px;color:#53677f;background:#f8faff;font-size:.68rem;font-weight:800;padding:7px 10px}

body.user-access-route .app-page .table-card .table-responsive{overflow:auto}
body.stripe-payment-route .app-page .surface .filter-bar{display:flex;align-items:center;gap:12px;margin:0;padding:15px 20px;border-bottom:1px solid #e6edf4;background:#fbfcff}
body.stripe-payment-route .app-page .surface .search-field{position:relative;min-width:min(100%,520px)}
body.stripe-payment-route .app-page .surface .search-field>i{position:absolute;z-index:1;left:13px;top:50%;color:#8295aa;font-size:.72rem;transform:translateY(-50%)}
body.stripe-payment-route .app-page .surface .search-field .form-control{padding-left:37px}
body.stripe-payment-route .app-page .surface .table-responsive{overflow:auto;margin:0}
body.stripe-payment-route .app-page #stripe-transactions-table{min-width:2050px}
body:is(.user-access-route,.stripe-payment-route) .app-page .table{margin:0}
body:is(.user-access-route,.stripe-payment-route) .app-page .table thead th{border:0;border-bottom:1px solid #dce6f0;color:#586b81;background:#f5f8fc;font-size:.66rem;font-weight:850;letter-spacing:.045em;padding:12px 14px;text-transform:uppercase;white-space:nowrap}
body:is(.user-access-route,.stripe-payment-route) .app-page .table tbody td{border-color:#e8eef5;color:#41566f;font-size:.77rem;line-height:1.5;padding:13px 14px;vertical-align:middle}
body:is(.user-access-route,.stripe-payment-route) .app-page .table tbody tr:hover{background:#f8fbff}
body:is(.user-access-route,.stripe-payment-route) .app-page .table tbody .small{font-size:.68rem!important;line-height:1.45}
body:is(.user-access-route,.stripe-payment-route) .app-page .badge{border-radius:999px;font-size:.66rem;font-weight:800;padding:6px 9px}
body:is(.user-access-route,.stripe-payment-route) .app-page .table td[colspan]{height:145px;color:#7d8da1!important;font-size:.82rem;text-align:center}
body.stripe-payment-route .app-page #stripe-transactions-table thead th:first-child,
body.stripe-payment-route .app-page #stripe-transactions-table tbody td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #e5ebf2}
body.stripe-payment-route .app-page #stripe-transactions-table thead th:first-child{z-index:3;background:#f5f8fc}

body.user-access-route .app-page .table td:last-child .d-inline-flex{gap:6px!important}
body.user-access-route .app-page .table td:last-child .btn{min-height:32px;border-radius:8px;font-size:.68rem;padding:6px 9px}
body.user-access-route .app-page .permission-module{transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
body.user-access-route .app-page .permission-module:hover{border-color:#c8c7f7!important;transform:translateY(-1px);box-shadow:0 12px 30px rgba(48,61,100,.08)!important}
body.user-access-route .app-page .permission-module h2{color:#1b3150;font-size:.96rem!important;font-weight:820}
body.user-access-route .app-page .permission-module .form-check{border-color:#e1e8f1!important;background:#fbfcff;transition:.18s ease}
body.user-access-route .app-page .permission-module .form-check:has(.form-check-input:checked){border-color:#bfc2ff!important;background:#f5f4ff}
body.user-access-route .app-page .form-switch .form-check-input:checked{border-color:var(--admin-accent);background-color:var(--admin-accent)}
body.user-access-route .app-page .modal-content{overflow:hidden;border:1px solid #dce5ef;border-radius:16px;box-shadow:0 24px 70px rgba(18,35,59,.2)}
body.user-access-route .app-page .modal-header{border-bottom-color:#e6edf4;background:#f7f9fd}
body.user-access-route .app-page .modal-footer{border-top-color:#e6edf4;background:#fafbfe}

@media(max-width:1199.98px){
  body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:991.98px){
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading){align-items:flex-start!important;flex-direction:column;padding:30px 25px 24px!important}
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)::before{left:26px}
}
@media(max-width:575.98px){
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading){min-height:0;border-radius:17px;padding:28px 19px 21px!important}
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)::before{left:20px;top:16px}
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading) h1{font-size:1.75rem}
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.page-header,.page-heading)>.btn{width:100%;justify-content:center}
  body:is(.user-access-route,.stripe-payment-route) .app-page .kpi-grid{grid-template-columns:1fr}
  body:is(.user-access-route,.stripe-payment-route) .app-page .surface.p-3{padding:17px 15px!important}
  body:is(.user-access-route,.stripe-payment-route) .app-page :is(.ua-registry-heading,.stripe-registry-heading){align-items:flex-start;flex-direction:column;padding:17px 15px 14px}
  body.stripe-payment-route .app-page .surface .filter-bar{align-items:stretch;flex-direction:column;padding:14px 15px}
  body.stripe-payment-route .app-page .surface .filter-bar .btn{width:100%}
}

/* Shared premium role portals: customer + sales agent */
body.customer-portal-shell .app-page{
  --portal-accent:#2563eb;
  --portal-accent-2:#0f9f8f;
  --portal-soft:#eaf2ff;
  --portal-ink:#172d47;
  --portal-muted:#708198;
  --portal-border:#dce6f0;
  color:var(--portal-ink);
  padding-bottom:36px;
}
body.sales-agent-shell .app-page{
  --portal-accent:#197c65;
  --portal-accent-2:#2d65d8;
  --portal-soft:#e9f8f3;
  --portal-ink:#172d47;
  --portal-muted:#708198;
  --portal-border:#dce6f0;
  color:var(--portal-ink);
  padding-bottom:36px;
}

body:is(.customer-portal-shell,.sales-agent-shell) .portal-nav-label{margin-top:8px;color:#8294aa}
body:is(.customer-portal-shell,.sales-agent-shell) .sidebar-link{font-size:.79rem;font-weight:670}
body:is(.customer-portal-shell,.sales-agent-shell) .sidebar-link>i:first-child{border-radius:10px;background:#edf2f9;color:#7890aa}
body.customer-portal-shell .sidebar-link.active{color:#1f5fc4;border-color:#9bbcf4;background:linear-gradient(90deg,#e7f0ff,#e9faf7)}
body.sales-agent-shell .sidebar-link.active{color:#116c5a;border-color:#9bd7c8;background:linear-gradient(90deg,#e5f7f1,#edf3ff)}
body:is(.customer-portal-shell,.sales-agent-shell) .sidebar-link.active>i:first-child{color:#fff;background:linear-gradient(145deg,var(--portal-accent),var(--portal-accent-2));box-shadow:0 5px 12px rgba(30,104,153,.2)}
body:is(.customer-portal-shell,.sales-agent-shell) .sidebar-status-icon{background:linear-gradient(145deg,var(--portal-accent),var(--portal-accent-2))}

body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero),
body.sales-agent-shell .app-page .page-header{
  position:relative;
  isolation:isolate;
  min-height:176px;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:28px!important;
  overflow:hidden;
  margin:0 0 15px!important;
  padding:32px 34px!important;
  border:1px solid rgba(110,231,216,.2)!important;
  border-radius:22px!important;
  background:linear-gradient(118deg,#0a2847 0%,#173e62 56%,#0f7471 120%)!important;
  box-shadow:0 20px 44px rgba(10,39,72,.15)!important;
}
body.sales-agent-shell .app-page .page-header{background:linear-gradient(118deg,#0b2c3b 0%,#174c53 54%,#295a93 118%)!important}
body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero)::before,
body.sales-agent-shell .app-page .page-header::before{
  position:absolute;
  left:35px;
  top:21px;
  color:#6ee7d8;
  font-size:.62rem;
  font-weight:860;
  letter-spacing:.13em;
}
body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero)::before{content:"CLIENT BILLING WORKSPACE"}
body.sales-agent-shell .app-page .page-header::before{content:"SALES PERFORMANCE WORKSPACE";color:#89e7c7}
body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero)::after,
body.sales-agent-shell .app-page .page-header::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:300px;
  height:300px;
  right:6%;
  top:-190px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(255,255,255,.024),0 0 0 96px rgba(255,255,255,.018);
}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.customer-hero,.page-heading,.profile-hero,.page-header) h1{
  margin:17px 0 6px!important;
  color:#fff!important;
  font-size:clamp(1.9rem,2.5vw,2.45rem)!important;
  font-weight:860!important;
  letter-spacing:-.046em;
}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.customer-hero,.page-heading,.profile-hero,.page-header) p,
body.customer-portal-shell .app-page .customer-hero .text-muted{
  max-width:780px;
  margin:0!important;
  color:#c6d6e4!important;
  font-size:.84rem!important;
  line-height:1.6;
}
body.customer-portal-shell .app-page .customer-hero .small.text-uppercase,
body.customer-portal-shell .app-page .profile-hero .small.text-uppercase{color:#6ee7d8!important;font-size:.62rem!important;letter-spacing:.12em}
body.customer-portal-shell .app-page .customer-hero>.d-flex{width:100%;align-items:center!important}
body.customer-portal-shell .app-page .customer-hero>.d-flex>.badge{position:relative;z-index:1;border:1px solid rgba(255,255,255,.27);color:#fff!important;background:rgba(255,255,255,.11)!important;padding:9px 12px!important;backdrop-filter:blur(8px)}
body.customer-portal-shell .app-page .profile-company-pill{position:relative;z-index:1;border-color:rgba(255,255,255,.26);color:#fff;background:rgba(255,255,255,.1);font-size:.76rem;backdrop-filter:blur(8px)}

body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-grid{display:grid;gap:11px;margin:0 0 15px!important}
body.customer-portal-shell .app-page .kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
body.sales-agent-shell .app-page .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-card{
  position:relative;
  min-height:116px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-content:center;
  column-gap:11px;
  overflow:hidden;
  border:1px solid var(--portal-border);
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 22px rgba(38,58,84,.055);
  padding:17px 16px;
}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--portal-accent)}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-card:nth-child(2n)::before{background:#15966b}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-card:nth-child(3n)::before{background:#dfa020}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-card:nth-child(4n)::before{background:#d95564}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-icon{grid-row:1/4;width:40px;height:40px;display:grid;place-items:center;border-radius:11px;color:var(--portal-accent);background:var(--portal-soft);font-size:.83rem}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-label{color:#718299;font-size:.64rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-value{margin-top:3px;color:#142942!important;font-size:1.3rem;font-weight:850;letter-spacing:-.035em;line-height:1.2}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-note{margin-top:3px;color:#8a99aa;font-size:.67rem;line-height:1.4}

body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.surface,.table-card){
  position:relative;
  overflow:hidden;
  border:1px solid var(--portal-border)!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 10px 27px rgba(29,52,80,.055)!important;
}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.surface,.table-card)::before{content:"";position:absolute;z-index:2;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--portal-accent),var(--portal-accent-2))}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .surface.p-3{padding:20px 22px!important}
body.sales-agent-shell .app-page .table-card.mt-4{margin-top:0!important}
body.sales-agent-shell .app-page .row.g-4.mt-2{margin-top:-4px!important}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .section-title,
body.sales-agent-shell .app-page .table-card>.d-flex.border-bottom{min-height:64px;margin:-5px -3px 16px;padding:0 3px 13px!important;border-bottom:1px solid #e7edf4!important}
body.sales-agent-shell .app-page .table-card>.d-flex.border-bottom{margin:0;padding:17px 20px 14px!important}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .section-title h2,
body.sales-agent-shell .app-page .table-card>.d-flex h2{margin:0;color:#172d47;font-size:.96rem!important;font-weight:830}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .section-title .small{margin-top:4px;color:#7b8ca1!important;font-size:.69rem!important}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .section-grid{gap:15px}

body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.form-label,.form-check-label){margin-bottom:6px;color:#51657c;font-size:.74rem;font-weight:750}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.form-control,.form-select){min-height:42px;border:1px solid #d8e3ee;border-radius:9px;color:#263d57;background-color:#fff;font-size:.79rem;box-shadow:none}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.form-control,.form-select):focus{border-color:#77a8df;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .btn{min-height:38px;border-radius:9px;font-size:.74rem;font-weight:760;padding:8px 13px}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .btn-primary{border-color:var(--portal-accent);background:linear-gradient(135deg,var(--portal-accent),var(--portal-accent-2));box-shadow:0 7px 16px rgba(31,105,151,.17)}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .btn-outline-primary{border-color:#8eb0e4;color:#225fae;background:#fff}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .btn-outline-primary:hover{border-color:var(--portal-accent);color:#fff;background:var(--portal-accent)}

body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table-responsive{overflow:auto}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table{margin:0}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table thead th{border:0;border-bottom:1px solid #dce6f0;color:#586b81;background:#f5f8fc;font-size:.66rem;font-weight:850;letter-spacing:.045em;padding:12px 14px;text-transform:uppercase;white-space:nowrap}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table tbody td{border-color:#e8eef5;color:#41566f;font-size:.77rem;line-height:1.5;padding:13px 14px;vertical-align:middle}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table tbody tr:hover{background:#f8fbff}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table .small{font-size:.68rem!important;line-height:1.45}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .badge{border-radius:999px;font-size:.66rem;font-weight:800;padding:6px 9px}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .table td[colspan]{height:140px;color:#7d8da1!important;font-size:.82rem;text-align:center}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .portal-registry-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 21px 15px;border-bottom:1px solid #e7edf4}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .portal-registry-heading>div>span{display:block;margin-bottom:3px;color:var(--portal-accent);font-size:.61rem;font-weight:860;letter-spacing:.1em}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .portal-registry-heading h2{margin:0;color:#172d47;font-size:1rem;font-weight:830}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .portal-registry-heading p{margin:3px 0 0;color:#7d8da0;font-size:.7rem}
body:is(.customer-portal-shell,.sales-agent-shell) .app-page .portal-registry-heading>b{flex:0 0 auto;border:1px solid #d9e3ef;border-radius:999px;color:#53677f;background:#f8faff;font-size:.68rem;font-weight:800;padding:7px 10px}

body.customer-portal-shell .app-page .client-software-grid{gap:13px}
body.customer-portal-shell .app-page .client-software-card{position:relative;overflow:hidden;border:1px solid #dce6f0;border-left-width:1px;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfdff);box-shadow:0 7px 18px rgba(34,57,83,.045);padding:17px}
body.customer-portal-shell .app-page .client-software-card::before{content:"";position:absolute;inset:0 auto 0;width:4px;background:#15966b}
body.customer-portal-shell .app-page .client-software-card-warning::before{background:#dfa020}
body.customer-portal-shell .app-page .client-software-card-locked::before{background:#d95564}
body.customer-portal-shell .app-page .client-software-main h3{color:#17304c;font-size:.94rem;font-weight:820}
body.customer-portal-shell .app-page .payment-method-card{border-color:#2b4968;border-radius:16px;background:linear-gradient(135deg,#102942,#173d5f 62%,#14665f);box-shadow:0 13px 28px rgba(10,40,71,.17)}
body.customer-portal-shell .app-page .summary-tile{border:1px solid #dce6f0;border-radius:14px;background:linear-gradient(145deg,#fff,#f7fbff);box-shadow:0 7px 18px rgba(34,57,83,.045);padding:17px}
body.customer-portal-shell .app-page .summary-tile .metric{color:#175fb7;font-size:1.15rem;font-weight:830}
body.customer-portal-shell .app-page dl.row{margin:0;border:1px solid #e1e8f0;border-radius:13px;background:#fbfcff;padding:7px 14px}
body.customer-portal-shell .app-page dl.row :is(dt,dd){margin:0;border-bottom:1px solid #e8eef4;padding-top:11px;padding-bottom:11px;font-size:.78rem}
body.customer-portal-shell .app-page dl.row :is(dt,dd):nth-last-child(-n+2){border-bottom:0}
body.customer-portal-shell .app-page dl.row dt{color:#718299;font-weight:720}
body.customer-portal-shell .app-page dl.row dd{color:#203750;font-weight:700}
body.customer-portal-shell .app-page .mini-list li{border-color:#e7edf4;color:#40566f;font-size:.75rem}
body.customer-portal-shell .app-page .alert{border-radius:12px;font-size:.76rem;line-height:1.55}

body.customer-portal-shell .app-page .profile-layout{gap:15px}
body.customer-portal-shell .app-page .profile-summary{padding:22px!important}
body.customer-portal-shell .app-page .profile-avatar{background:linear-gradient(135deg,var(--portal-accent),var(--portal-accent-2));box-shadow:0 9px 20px rgba(32,105,159,.18)}
body.customer-portal-shell .app-page .profile-summary h2{color:#17304c;font-size:1.05rem;font-weight:830}
body.customer-portal-shell .app-page .profile-summary-list>div{border-color:#e7edf4}
body.customer-portal-shell .app-page .profile-edit-panel{padding:22px!important}
body.customer-portal-shell .app-page .profile-photo-upload{border-color:#dce6f0;background:#f8fbff}
body.customer-portal-shell .app-page .profile-section-heading h2{color:#17304c;font-size:.96rem;font-weight:830}
body.customer-portal-shell .app-page .profile-section-heading p{color:#7d8da0;font-size:.71rem}

body.sales-agent-shell .app-page .table-card>dl.row{margin:0;border:1px solid #e1e8f0;border-radius:13px;background:#fbfcff;padding:7px 14px}
body.sales-agent-shell .app-page .table-card>dl.row :is(dt,dd){margin:0;border-bottom:1px solid #e8eef4;padding-top:12px;padding-bottom:12px;font-size:.78rem}
body.sales-agent-shell .app-page .table-card>dl.row :is(dt,dd):nth-last-child(-n+2){border-bottom:0}
body.sales-agent-shell .app-page .table-card>dl.row dt{color:#718299;font-weight:720}
body.sales-agent-shell .app-page .table-card>dl.row dd{color:#203750;font-weight:700}

@media(max-width:1399.98px){
  body.customer-portal-shell .app-page .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1199.98px){
  body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:991.98px){
  body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero),body.sales-agent-shell .app-page .page-header{align-items:flex-start!important;flex-direction:column;padding:30px 25px 24px!important}
  body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero)::before,body.sales-agent-shell .app-page .page-header::before{left:26px}
  body.customer-portal-shell .app-page .profile-company-pill{white-space:normal}
}
@media(max-width:575.98px){
  body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero),body.sales-agent-shell .app-page .page-header{min-height:0;border-radius:17px!important;padding:28px 19px 21px!important}
  body.customer-portal-shell .app-page :is(.customer-hero,.page-heading,.profile-hero)::before,body.sales-agent-shell .app-page .page-header::before{left:20px;top:16px}
  body:is(.customer-portal-shell,.sales-agent-shell) .app-page :is(.customer-hero,.page-heading,.profile-hero,.page-header) h1{font-size:1.72rem!important}
  body:is(.customer-portal-shell,.sales-agent-shell) .app-page .kpi-grid{grid-template-columns:1fr}
  body:is(.customer-portal-shell,.sales-agent-shell) .app-page .surface.p-3{padding:17px 15px!important}
  body:is(.customer-portal-shell,.sales-agent-shell) .app-page .portal-registry-heading{align-items:flex-start;flex-direction:column;padding:17px 15px 14px}
  body.customer-portal-shell .app-page .customer-hero>.d-flex{align-items:flex-start!important;flex-direction:column}
}
/* Desktop viewport-locked premium sidebar hotfix */
@media (min-width: 1200px) {
  .admin-shell .app-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    height: 100dvh;
  }

  .admin-shell .sidebar-nav {
    min-height: 0;
  }
}

/* Collapsed desktop sidebar interaction UX */
@media (min-width: 1200px) {
  .admin-shell.sidebar-collapsed .sidebar-groups,
  .admin-shell.sidebar-collapsed .sidebar-dropdown {
    width: 100%;
  }

  .admin-shell.sidebar-collapsed .sidebar-link,
  .admin-shell.sidebar-collapsed .sidebar-parent {
    width: 100%;
    margin-left: 0 !important;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    transform: none !important;
  }

  .admin-shell.sidebar-collapsed .sidebar-link > i:first-child {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .admin-shell.sidebar-collapsed .sidebar-chevron {
    display: none !important;
  }

  .admin-shell.sidebar-collapsed .sidebar-link:hover {
    transform: none !important;
  }

  .admin-shell.sidebar-collapsed .sidebar-link.active {
    box-shadow: none;
  }
}

.sidebar-collapsed-tooltip .tooltip-inner {
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
}
