/* v26 – new visual style (light mode only; dark mode keeps the previous look) */
html:not([data-theme="dark"]) body{background:#f1f4f9!important}
html:not([data-theme="dark"]) header{background:#fff!important;color:#0f1720!important;box-shadow:0 2px 14px rgba(20,43,70,.07)!important}
html:not([data-theme="dark"]) header .brand h1{color:#0f1720!important;letter-spacing:-.02em}
html:not([data-theme="dark"]) header .brand p{color:#7b8794!important}
html:not([data-theme="dark"]) header .logo{background:var(--blue)!important;color:#fff!important;border-radius:12px!important}
html:not([data-theme="dark"]) header .profile-meta strong{color:#0f1720!important}
html:not([data-theme="dark"]) header .profile-meta small{color:#7b8794!important}
html:not([data-theme="dark"]) header .btn-light{background:#eef1f6!important;color:#3e4c59!important;border-radius:999px!important}
html:not([data-theme="dark"]) header .searchbox{background:#eef1f6!important;border-color:transparent!important;border-radius:999px!important}
html:not([data-theme="dark"]) header .searchbox input{background:transparent!important;color:#0f1720!important}
html:not([data-theme="dark"]) nav{background:#fff!important;border-right:0!important}
html:not([data-theme="dark"]) nav button{background:transparent!important;color:#3e4c59!important;border-radius:12px!important;font-weight:600}
html:not([data-theme="dark"]) nav button:hover{background:#eef1f6!important;color:#0f1720!important}
html:not([data-theme="dark"]) nav button.active{background:#0f1720!important;color:#fff!important;box-shadow:none!important}
html:not([data-theme="dark"]) nav .nav-group{color:#9aa5b1!important}
html:not([data-theme="dark"]) .card,html:not([data-theme="dark"]) .panel,html:not([data-theme="dark"]) .dv-card{border:0!important;border-radius:20px!important;box-shadow:0 2px 14px rgba(20,43,70,.06)!important;background:#fff}
html:not([data-theme="dark"]) .topline h2{font-size:27px;letter-spacing:-.03em;color:#0f1720}
html:not([data-theme="dark"]) .btn-red{background:var(--blue)!important;color:#fff!important;border-radius:999px!important}
html:not([data-theme="dark"]) .btn-muted{background:#eef1f6!important;color:#3e4c59!important;border-radius:999px!important}
html:not([data-theme="dark"]) button,html:not([data-theme="dark"]) .btn{border-radius:12px}
html:not([data-theme="dark"]) input,html:not([data-theme="dark"]) select,html:not([data-theme="dark"]) textarea{border-radius:12px!important;border-color:#dfe5ee!important}
html:not([data-theme="dark"]) .tablewrap{border:0!important;border-radius:14px!important;background:#fff}
html:not([data-theme="dark"]) th{background:#f3f5f9!important;color:#7b8794!important;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
html:not([data-theme="dark"]) td{border-bottom-color:#eef1f6!important}
html:not([data-theme="dark"]) dialog{border-radius:24px!important;border:0!important}
html:not([data-theme="dark"]) .notice{border-radius:16px!important}
/* dashboard */
#dashTop{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(0,1.1fr)!important;gap:16px!important;align-items:start}#dashTop .dash-left{min-width:0}#dashRight{min-width:0}#dashRight:empty{display:none}
#metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:0!important}
#metrics .metric-card{border-radius:20px!important;text-align:left}
#metrics .metric{font-size:30px!important;letter-spacing:-.02em}
html:not([data-theme="dark"]) #metrics .metric-card{background-image:none!important;box-shadow:none!important}
html:not([data-theme="dark"]) #metrics .metric-card .metric-label,html:not([data-theme="dark"]) #metrics .metric-card .metric-hint{color:#5b6877!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(1){background:var(--blue)!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(1) .metric,html:not([data-theme="dark"]) #metrics .metric-card:nth-child(1) .metric-label,html:not([data-theme="dark"]) #metrics .metric-card:nth-child(1) .metric-hint{color:#fff!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(2){background:#ffe6e6!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(2) .metric{color:#dc2626!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(3){background:#0b1220!important;background-image:radial-gradient(circle at 90% 0,var(--blue) 0,#0b1220 62%)!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(3) .metric,html:not([data-theme="dark"]) #metrics .metric-card:nth-child(3) .metric-label,html:not([data-theme="dark"]) #metrics .metric-card:nth-child(3) .metric-hint{color:#fff!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(4){background:#fff1d4!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(4) .metric{color:#b45309!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(5){background:#ece6ff!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(5) .metric{color:#6d3fe0!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(6){background:#dfeeff!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(6) .metric{color:#1d6fd1!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(7){background:#d8f5ef!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(7) .metric{color:#0f8a78!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(8){background:#e4e8ff!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(8) .metric{color:#3a46c8!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(9){background:#ffe8d8!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(9) .metric{color:#c2410c!important}
html:not([data-theme="dark"]) #metrics .metric-card:nth-child(10){background:#dcf6e3!important}html:not([data-theme="dark"]) #metrics .metric-card:nth-child(10) .metric{color:#15803d!important}
#amEnqRem{margin-bottom:0}
#amEnqRem .e2-dash{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto;column-gap:10px;row-gap:6px;align-items:center;padding:10px 0!important}
#amEnqRem .e2-dash>div{grid-row:1/3;grid-column:1;min-width:0}
#amEnqRem .e2-dash>div strong{font-size:13px;line-height:1.3;display:block}
#amEnqRem .e2-dash>div small{display:block;font-size:11.5px}
#amEnqRem .e2-dash .e2-pill{grid-column:2;grid-row:1;justify-self:end;white-space:nowrap}
#amEnqRem .e2-dash button{grid-column:2;grid-row:2;justify-self:end;padding:6px 12px!important;font-size:12px!important}
/* top pill tabs */
#v26Tabs{display:flex;gap:8px;overflow:auto;margin:0 0 18px;padding-bottom:2px}
#v26Tabs button{background:#eef1f6;color:#3e4c59;border-radius:999px;padding:9px 16px;font-weight:600;white-space:nowrap}
#v26Tabs button.on{background:var(--blue);color:#fff}
html[data-theme="dark"] #v26Tabs button{background:#1d2a3d!important;color:#c9d6ea!important}html[data-theme="dark"] #v26Tabs button.on{background:var(--blue)!important;color:#fff!important}
@media(max-width:1100px){#dashTop{grid-template-columns:1fr!important}}
@media(max-width:700px){#metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v30 – fixed top bar */
html body header{position:sticky!important;top:0!important;z-index:70!important}
/* v30 – glass effect (light mode) */
html:not([data-theme="dark"]) body.v26-glass header,html:not([data-theme="dark"]) body.v26-glass nav,html:not([data-theme="dark"]) body.v26-glass .card,html:not([data-theme="dark"]) body.v26-glass .panel,html:not([data-theme="dark"]) body.v26-glass .dv-card,html:not([data-theme="dark"]) body.v26-glass .tablewrap,html:not([data-theme="dark"]) body.v26-glass .notice,html:not([data-theme="dark"]) body.v26-glass .topline{background:rgba(255,255,255,.58)!important;-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);border:1px solid rgba(255,255,255,.55)!important;box-shadow:0 8px 32px rgba(15,23,32,.12)!important}
html:not([data-theme="dark"]) body.v26-glass .topline{padding:14px 20px;border-radius:20px;margin-bottom:14px}
html:not([data-theme="dark"]) body.v26-glass header{border-radius:0 0 22px 22px;border-top:0!important}
html:not([data-theme="dark"]) body.v26-glass nav.v26-open{background:rgba(255,255,255,.78)!important}
html:not([data-theme="dark"]) body.v26-glass th{background:rgba(243,245,249,.55)!important}
html:not([data-theme="dark"]) body.v26-glass td{background:transparent!important}
html:not([data-theme="dark"]) body.v26-glass #v26Tabs button{background:rgba(255,255,255,.78);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html:not([data-theme="dark"]) body.v26-glass #v26Tabs button.on{background:var(--blue)}
html:not([data-theme="dark"]) body.v26-glass header .btn-light,html:not([data-theme="dark"]) body.v26-glass #v26ThemeBtn,html:not([data-theme="dark"]) body.v26-glass header .searchbox{background:rgba(238,241,246,.6)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card{-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);border:1px solid rgba(255,255,255,.55)!important;box-shadow:0 8px 28px rgba(15,23,32,.12)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(1){background:color-mix(in srgb,var(--blue) 80%,transparent)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(2){background:rgba(255,224,224,.66)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(3){background:rgba(11,18,32,.78)!important;background-image:radial-gradient(circle at 90% 0,color-mix(in srgb,var(--blue) 70%,transparent) 0,transparent 62%)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(4){background:rgba(255,238,205,.68)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(5){background:rgba(233,226,255,.68)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(6){background:rgba(218,236,255,.68)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(7){background:rgba(211,245,238,.68)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(8){background:rgba(224,229,255,.68)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(9){background:rgba(255,230,214,.68)!important}
html:not([data-theme="dark"]) body.v26-glass #metrics .metric-card:nth-child(10){background:rgba(215,245,224,.68)!important}
#v26GlassRow{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:12.5px;font-weight:600}
#v26GlassRow input{width:38px;height:20px;accent-color:var(--blue)}
/* v31 – sidebar colour */
html:not([data-theme="dark"]) body.v26-navc nav{background:var(--v26navbg)!important;border-color:var(--v26navbd)!important}
html:not([data-theme="dark"]) body.v26-navc nav button{color:var(--v26navfg)!important;background:transparent!important}
html:not([data-theme="dark"]) body.v26-navc nav button:hover{background:var(--v26navhov)!important}
html:not([data-theme="dark"]) body.v26-navc nav button.active{background:var(--v26navact)!important;color:var(--v26navactfg)!important}
html:not([data-theme="dark"]) body.v26-navc nav .nav-group{color:var(--v26navfg)!important;opacity:.65}
html:not([data-theme="dark"]) body.v26-navc nav.v26-open{background:var(--v26navbg)!important}
/* v28 – keep header on one row */
@media(min-width:901px){header{flex-wrap:nowrap!important;gap:14px!important}header .header-search{flex:1 1 200px!important;min-width:160px!important;max-width:380px!important}header .header-right{flex-wrap:nowrap!important;gap:10px!important;margin-left:auto}header .profile-meta small{display:none!important}header .actions{flex-wrap:nowrap!important;gap:6px!important}header .btn-light,#v26ThemeBtn{padding:8px 12px!important;white-space:nowrap;font-size:12.5px}header .brand p{display:none}}
/* v28 – auto-hide sidebar (desktop) */
@media(min-width:901px){
 .layout{display:block!important}
 html body nav{position:fixed!important;left:0;top:var(--v26h,86px);height:calc(100vh - var(--v26h,86px))!important;width:236px;overflow-y:auto;z-index:60;transform:translateX(-102%);transition:transform .22s ease,box-shadow .22s ease;box-shadow:none!important;border-radius:0 22px 22px 0}
 html body nav.v26-open{transform:none;box-shadow:8px 0 30px rgba(15,23,32,.18)!important}
 #v26Edge{position:fixed;left:0;top:var(--v26h,86px);bottom:0;width:14px;z-index:59}
 #v26Handle{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:58;background:var(--blue);color:#fff;width:18px;height:64px;border-radius:0 12px 12px 0;display:grid;place-items:center;font-size:11px;cursor:pointer;opacity:.85;transition:opacity .2s}
 #v26Handle.hide{opacity:0;pointer-events:none}
}
@media(max-width:900px){#v26Edge,#v26Handle{display:none}}
/* v28 – theme picker */
#v26ThemeBtn{background:#eef1f6;color:#3e4c59;border-radius:999px;padding:9px 14px;font-weight:600}
html[data-theme="dark"] #v26ThemeBtn{background:#1d2a3d!important;color:#c9d6ea!important}
#v26ThemePop{position:fixed;z-index:200;background:#fff;color:#0f1720;border-radius:18px;box-shadow:0 12px 40px rgba(15,23,32,.22);padding:14px;width:250px;display:none}
#v26ThemePop.on{display:block}#v26ThemePop h4{font-size:13px;margin:0 0 10px}
#v26ThemePop .sw{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
#v26ThemePop button{border:2px solid transparent;border-radius:14px;background:#f3f5f9;padding:8px 4px;font-size:10.5px;display:grid;gap:5px;justify-items:center;color:#3e4c59}
#v26ThemePop button i{width:26px;height:26px;border-radius:50%;display:block}
#v26ThemePop button.cur{border-color:var(--blue)}
html[data-theme="dark"] #v26ThemePop{background:#1b2433;color:#e6edf7}html[data-theme="dark"] #v26ThemePop button{background:#243047;color:#c9d6ea}
