/* ISP360 UI / USER LIST MASTER THEME v1
 * Single shared visual-only layer. Scope to supported operational pages,
 * use existing controls/IDs, never alter role or transaction logic.
 */
body.isp360-userlist-unified{
 --isp-u-bg:#f2f6fb;--isp-u-white:#ffffff;
 --isp-u-navy:#091d39;--isp-u-navy-2:#154879;
 --isp-u-text:#172f51;--isp-u-muted:#647c98;
 --isp-u-border:#dbe6f3;--isp-u-primary:#2358dd;
 background:var(--isp-u-bg)!important;color:var(--isp-u-text);
 font-family:Inter,"Segoe UI",Arial,sans-serif;
}
body.isp360-userlist-unified .main.isp360-u-main{
 box-sizing:border-box!important;min-width:0!important;max-width:none!important;
 min-height:100vh!important;padding:26px 30px 44px!important;
 background:var(--isp-u-bg)!important;color:var(--isp-u-text)!important;
}
body.isp360-userlist-unified .main.isp360-u-main:has(>.content){
 padding:0 0 44px!important;
}
body.isp360-userlist-unified .main.isp360-u-main>.content{
 box-sizing:border-box!important;padding:26px 30px 40px!important;max-width:1700px!important;
}
body.isp360-userlist-unified .main .isp360-u-contextbar{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:wrap!important;gap:16px!important;
 box-sizing:border-box!important;min-height:80px!important;
 margin:0 0 25px!important;padding:20px 28px!important;
 background:#fff!important;color:#102747!important;
 border:1px solid #edf2f8!important;border-radius:0!important;
 box-shadow:0 2px 6px rgba(16,44,84,.025)!important;
 width:100%!important;max-width:none!important;
}
body.isp360-userlist-unified .main .isp360-u-contextbar :is(h1,h2,h3,strong){
 color:#102747!important;font-size:17px!important;line-height:1.3!important;
 font-weight:850!important;letter-spacing:-.01em!important;margin:0!important;
}
body.isp360-userlist-unified .main .isp360-u-contextbar .isp360-u-context-right,
body.isp360-userlist-unified .main .isp360-u-contextbar>span{
 color:#6a819b!important;font-size:13px!important;font-weight:700!important;
}
body.isp360-userlist-unified .main>.isp360-u-contextbar:not(.topbar),
body.isp360-userlist-unified .main>.topbar.isp360-u-contextbar{
 margin-bottom:24px!important;
}
body.isp360-userlist-unified .main .isp360-u-hero{
 position:relative!important;isolation:isolate!important;box-sizing:border-box!important;
 overflow:hidden!important;display:flex!important;flex-wrap:wrap!important;
 align-items:center!important;justify-content:space-between!important;
 gap:19px!important;min-height:155px!important;
 padding:29px 34px!important;margin:0 0 24px!important;
 background:radial-gradient(circle at 93% 0%,rgba(32,118,205,.48),transparent 43%),
 linear-gradient(113deg,#08182f 0%,#0c294d 67%,#1a4e84 100%)!important;
 border:1px solid #184676!important;border-radius:22px!important;
 box-shadow:0 12px 29px rgba(10,39,82,.14)!important;
 color:#fff!important;max-width:100%!important;
}
body.isp360-userlist-unified .main .isp360-u-hero::after{
 content:"";position:absolute;z-index:-1;right:-65px;top:-124px;
 height:340px;width:390px;border:1px solid rgba(255,255,255,.08);
 border-radius:50%;pointer-events:none;
 box-shadow:0 0 0 54px rgba(255,255,255,.025);
}
body.isp360-userlist-unified .main .isp360-u-hero :is(h1,h2){
 color:#fff!important;font-size:clamp(27px,2.8vw,36px)!important;
 line-height:1.2!important;letter-spacing:-.025em!important;
 font-weight:900!important;margin:0!important;overflow-wrap:anywhere;
}
body.isp360-userlist-unified .main .isp360-u-hero :is(p,.sub,.subtitle,.muted){
 color:#cddff4!important;font-size:14px!important;line-height:1.6!important;
 margin:8px 0 0!important;
}
body.isp360-userlist-unified .main .isp360-u-hero :is(.btn,.blue,.primary,button:not(.secondary):not(.danger):not(.red)){
 border:1px solid rgba(255,255,255,.25)!important;
 border-radius:12px!important;
 background:linear-gradient(110deg,#2755e1,#119fe7)!important;
 color:#fff!important;font-weight:800!important;
}
body.isp360-userlist-unified .main .isp360-u-hero :is(.secondary,.btn.secondary){
 color:#164576!important;background:#fff!important;border-color:#fff!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis{
 display:grid!important;grid-template-columns:repeat(var(--isp-u-cols,3),minmax(0,1fr))!important;
 gap:18px!important;align-items:stretch!important;
 margin:0 0 24px!important;max-width:100%!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis:has(>.isp360-u-kpi:nth-child(5)){--isp-u-cols:5}
body.isp360-userlist-unified .main .isp360-u-kpis:has(>.isp360-u-kpi:nth-child(4)):not(:has(>.isp360-u-kpi:nth-child(5))){--isp-u-cols:4}
body.isp360-userlist-unified .main .isp360-u-kpis:has(>.isp360-u-kpi:nth-child(2):last-child){--isp-u-cols:2}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi{
 position:relative!important;box-sizing:border-box!important;min-width:0!important;
 min-height:144px!important;height:auto!important;
 padding:24px 24px!important;margin:0!important;overflow:hidden!important;
 color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;
 border-radius:19px!important;
 background:linear-gradient(117deg,#1e50bc 0%,#2285f1 100%)!important;
 box-shadow:0 12px 24px rgba(26,72,146,.11)!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi:nth-child(4n+2){
 background:linear-gradient(117deg,#086c63 0%,#13ab99 100%)!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi:nth-child(4n+3){
 background:linear-gradient(117deg,#51419c 0%,#8a5edc 100%)!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi:nth-child(4n+4){
 background:linear-gradient(117deg,#985317 0%,#d28a25 100%)!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi::after{
 content:"";position:absolute;right:-47px;bottom:-75px;z-index:0;pointer-events:none;
 height:150px;width:150px;border:27px solid rgba(255,255,255,.08);border-radius:50%;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi :is(.label,.card-title,.stat-label,.summary-label,.metric-label,.kpi-label,small){
 color:#e8f5ff!important;font-size:11px!important;font-weight:850!important;letter-spacing:.075em!important;line-height:1.45!important;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi :is(.value,.card-value,.stat-value,.summary-value,.metric-value,.kpi-value,.number,.num){
 color:#fff!important;font-size:clamp(24px,2.4vw,34px)!important;
 font-weight:900!important;line-height:1.25!important;text-shadow:none!important;overflow-wrap:anywhere;
}
body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi :is(strong,h2,h3,p,span){
 color:#fff!important;
}
body.isp360-userlist-unified .main .isp360-u-panel{
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 background:#fff!important;color:#1c3554!important;
 border:1px solid var(--isp-u-border)!important;border-radius:19px!important;
 box-shadow:0 8px 22px rgba(21,55,107,.055)!important;
 margin-bottom:22px!important;
}
body.isp360-userlist-unified .main .isp360-u-panel :is(.panel-head,.table-header,.tools,.toolbar,.cp-price-head){
 display:flex;align-items:center;justify-content:space-between;
 gap:12px;flex-wrap:wrap;
 background:#fff!important;border-color:#e6edf6!important;
}
body.isp360-userlist-unified .main .isp360-u-panel :is(.panel-head,.table-header,.tools,.cp-price-head) :is(h2,h3,strong){
 font-size:19px!important;font-weight:850!important;color:#143458!important;
 letter-spacing:-.01em!important;
}
body.isp360-userlist-unified .main .isp360-u-panel :is(.panel-head,.table-header,.tools,.cp-price-head) :is(h2,h3):before{
 content:"";display:inline-block;width:5px;height:19px;vertical-align:-3px;
 margin-right:13px;background:#268cff;border-radius:3px;
}
body.isp360-userlist-unified .main .isp360-u-panel :is(input[type="text"],input[type="search"],select){
 border:1px solid #cddced!important;border-radius:11px!important;
 background:#fff!important;color:#29445f!important;
 min-height:39px;box-sizing:border-box;max-width:100%;
}
body.isp360-userlist-unified .main .isp360-u-table-scroll{
 max-width:100%;overflow-x:auto;
}
body.isp360-userlist-unified .main .isp360-u-table{
 width:100%!important;border-collapse:collapse!important;
 background:#fff!important;color:#233b58!important;
}
body.isp360-userlist-unified .main .isp360-u-table th{
 padding:14px 13px!important;
 border:0!important;border-bottom:1px solid #dbe6f1!important;
 background:#f0f5fb!important;color:#435a73!important;
 text-align:left!important;text-transform:uppercase!important;
 font-size:11px!important;font-weight:850!important;letter-spacing:.05em!important;
}
body.isp360-userlist-unified .main .isp360-u-table td{
 padding:13px 13px!important;border-bottom:1px solid #e8eef6!important;
 font-size:13px!important;line-height:1.5!important;color:#304863!important;
}
body.isp360-userlist-unified .main .isp360-u-table tbody tr:nth-child(even){background:#fafcff!important}
body.isp360-userlist-unified .main .isp360-u-table tbody tr:hover{background:#edf6ff!important}
body.isp360-userlist-unified .main .isp360-u-table tbody tr:last-child td{border-bottom-color:#e6edf5!important}
body.isp360-userlist-unified .main .isp360-u-panel .badge.active,
body.isp360-userlist-unified .main .isp360-u-panel .status.active{color:#0f8053!important;background:#e3f9ee!important}
body.isp360-userlist-unified .main .isp360-u-panel .badge.inactive,
body.isp360-userlist-unified .main .isp360-u-panel .status.inactive{color:#a33232!important;background:#fdeaea!important}
body.isp360-userlist-unified .main :is(.btn.primary,.btn.blue,.action-btn-primary){
 color:#fff!important;background:linear-gradient(110deg,#2858de,#119fea)!important;
 border:0!important;border-radius:11px!important;font-weight:800!important;
}
body.isp360-userlist-unified .main :is(.btn.secondary,.action-btn-secondary){
 color:#1b4f91!important;background:#edf5ff!important;
 border:1px solid #cbdff7!important;border-radius:11px!important;font-weight:750!important;
}
body.isp360-userlist-unified .main :is(.btn.red,.btn.danger,.action-btn-danger){background:#bc272f!important;color:#fff!important}
body.isp360-userlist-unified :is(a,button,input,select,textarea):focus-visible{outline:2px solid #286fe5!important;outline-offset:2px!important}
@media(max-width:1200px){
 body.isp360-userlist-unified .main .isp360-u-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
 body.isp360-userlist-unified .main.isp360-u-main{padding:18px 16px 35px!important}
 body.isp360-userlist-unified .main.isp360-u-main:has(>.content){padding:0!important}
 body.isp360-userlist-unified .main>.content{padding:18px 16px!important}
 body.isp360-userlist-unified .main .isp360-u-contextbar{padding:16px 19px!important}
 body.isp360-userlist-unified .main .isp360-u-hero{padding:22px 20px!important;min-height:135px!important}
}
@media(max-width:570px){
 body.isp360-userlist-unified .main .isp360-u-kpis{grid-template-columns:minmax(0,1fr)!important}
 body.isp360-userlist-unified .main .isp360-u-kpis>.isp360-u-kpi{min-height:118px!important}
 body.isp360-userlist-unified .main .isp360-u-contextbar .isp360-u-context-right{display:none!important}
}

/* Generated title heroes use the same stacked heading/subtitle composition as All Users. */
body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 justify-content:center!important;gap:8px!important;
}
body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero :is(p,.sub,.subtitle,.muted){
 margin:0!important;text-align:left!important;max-width:90ch!important;
}

/* Standard module icon in generated hero, matching the All Users reference. */
body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero h1{
 display:flex!important;align-items:center!important;gap:15px!important;
}
body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero h1::before{
 content:"\25A6";display:grid;place-items:center;flex:0 0 52px;
 width:52px;height:52px;border-radius:14px;
 color:#fff;font-size:26px;line-height:1;
 background:linear-gradient(125deg,#2664ac,#208ceb);
 border:1px solid rgba(255,255,255,.18);
}
body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero :is(p,.sub,.subtitle,.muted){
 margin-left:67px!important;
}
@media(max-width:570px){
 body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero h1::before{
  flex-basis:42px;width:42px;height:42px;font-size:22px
 }
 body.isp360-userlist-unified .main .isp360-u-hero.isp360-u-generated-hero :is(p,.sub,.subtitle,.muted){margin-left:57px!important}
}

