/* Table-first hierarchy, theme-aware surfaces; never overwrite monitoring row colors. */
@media(min-width:768px){
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page{gap:12px!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.hero{padding:4px 2px 2px!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.board-bar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:12px 14px!important;border-radius:12px!important;background:var(--xl-color-header)!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.board-bar>label:first-child .el-select{width:200px!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.board-bar>span:not(.spacer){font-size:11px!important;white-space:nowrap!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.summary-grid{border:1px solid var(--xl-ref-border,#dce3d9)!important;border-radius:12px!important;overflow:hidden!important;box-shadow:none!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.summary-grid>article{padding:16px 18px!important;min-height:112px!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.workbench{border-radius:12px!important;border:1px solid var(--xl-ref-border,#dce3d9)!important;overflow:hidden!important;box-shadow:none!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.toolbar{padding:12px 14px!important;gap:8px!important;background:var(--xl-color-subtle)!important;border-bottom:1px solid var(--xl-ref-border,#dce3d9)!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar{padding:10px 14px!important;gap:7px!important;background:var(--xl-ref-surface,#fff)!important;align-items:center!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar>.smart-source{padding-right:10px!important;margin-right:2px!important;border-right:1px solid var(--xl-ref-border,#dce3d9)!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar .group-toggle{margin-left:auto!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar .group-toggle+.group-toggle{margin-left:0!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.intelligence-bar .group-toggle{font-size:11px!important;gap:5px!important;white-space:nowrap!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .cross-page>.board-bar button,
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.toolbar>button,
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .quick-filter{min-height:32px!important;border-radius:7px!important;box-shadow:none!important;font-size:12px!important;font-weight:500!important;background:var(--xl-color-subtle)!important;border:1px solid var(--xl-ref-border,#cdd9ce)!important;color:var(--xl-ref-text,#223c30)!important;padding:6px 8px!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .quick-filter.active{background:var(--xl-ref-primary-soft)!important;border-color:var(--xl-ref-primary)!important;color:var(--xl-ref-primary)!important;font-weight:600!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .xl-risk-filter-trigger{max-width:340px!important;}
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench>.toolbar button:hover:not(:disabled),
 html[data-xl-theme][data-xl-density] :is(body,#app) .workbench .quick-filter:hover{border-color:var(--xl-ref-primary)!important;color:var(--xl-ref-primary)!important;}
}
/* Position belongs to Popper: follow the trigger and flip near viewport edges. */
html body .xl-data-panel-r247.el-popper{width:580px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 136px)!important;overflow:auto!important;padding:0!important;border:1px solid var(--xl-ref-border,#d2ded4)!important;border-radius:14px!important;background:var(--xl-ref-surface,#fff)!important;box-shadow:0 16px 44px #152c2426!important;z-index:3210!important;zoom:1!important;opacity:1!important;box-sizing:border-box!important;overscroll-behavior:contain;}
html body .xl-data-panel-r247 .el-popper__arrow{display:none!important;}
html body .xl-data-panel-r247 .xl-risk-filter-popover{padding:0 16px 16px!important;color:var(--xl-ref-text,#223c30)!important;}
html body .xl-data-panel-r247 header{display:flex!important;flex-direction:column!important;gap:7px!important;position:sticky!important;top:0!important;z-index:2!important;margin:0 -16px!important;padding:16px!important;border-bottom:1px solid var(--xl-ref-border,#d2ded4)!important;background:var(--xl-ref-primary-soft)!important;}
html body .xl-data-panel-r247 .xl-filter-panel-title-r247{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
html body .xl-data-panel-r247 header b{font-size:16px!important;color:var(--xl-ref-text,#223c30)!important;}
html body .xl-data-panel-r247 header small{font-size:12px!important;line-height:1.6!important;color:var(--xl-ref-muted,#647367)!important;}
html body .xl-data-panel-r247 .xl-risk-filter-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:16px 0!important;}
html body .xl-data-panel-r247 .xl-risk-filter-condition{display:flex!important;flex-direction:column!important;gap:9px!important;min-width:0!important;padding:14px!important;margin:0!important;background:var(--xl-color-subtle,#f4f7f2)!important;border:1px solid var(--xl-ref-border,#d2ded4)!important;border-radius:10px!important;}
html body .xl-data-panel-r247 .xl-risk-filter-condition:has(input[type=checkbox]:checked){border-color:var(--xl-ref-primary)!important;background:var(--xl-ref-primary-soft)!important;}
html body .xl-data-panel-r247 .xl-risk-filter-toggle{display:flex!important;align-items:center!important;gap:8px!important;}
html body .xl-data-panel-r247 .xl-risk-filter-toggle input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;padding:0!important;accent-color:var(--xl-ref-primary)!important;}
html body .xl-data-panel-r247 .xl-risk-filter-condition b{color:var(--xl-ref-text,#223c30)!important;font-size:13px!important;}
html body .xl-data-panel-r247 .xl-risk-filter-condition small{font-size:11px!important;line-height:1.5!important;color:var(--xl-ref-muted,#647367)!important;min-height:32px!important;}
html body .xl-data-panel-r247 .xl-risk-order-control{display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;gap:6px!important;width:100%!important;}
html body .xl-data-panel-r247 .xl-risk-order-control select,
html body .xl-data-panel-r247 .xl-risk-order-control input{display:block!important;width:100%!important;min-width:0!important;height:36px!important;border:1px solid var(--xl-ref-border,#d2ded4)!important;border-radius:7px!important;background:var(--xl-ref-surface,#fff)!important;color:var(--xl-ref-text,#223c30)!important;font-size:13px!important;font-family:inherit!important;padding:0 8px!important;box-sizing:border-box!important;opacity:1!important;}
html body .xl-data-panel-r247 .xl-risk-order-control :disabled{opacity:.45!important;cursor:not-allowed!important;}
html body .xl-data-panel-r247 .xl-risk-order-control :focus-visible{outline:2px solid var(--xl-ref-primary)!important;outline-offset:1px!important;}
html body .xl-data-panel-r247 footer{display:flex!important;justify-content:flex-end!important;gap:8px!important;position:sticky!important;bottom:-16px!important;margin:0 -16px -16px!important;padding:12px 16px!important;background:var(--xl-ref-surface,#fff)!important;border-top:1px solid var(--xl-ref-border,#d2ded4)!important;}
html body .xl-data-panel-r247 button{min-height:34px!important;padding:6px 12px!important;border-radius:7px!important;border:1px solid var(--xl-ref-border,#d2ded4)!important;background:var(--xl-color-subtle,#f4f7f2)!important;color:var(--xl-ref-primary)!important;box-shadow:none!important;font-size:12px!important;cursor:pointer!important;}
html body .xl-data-panel-r247 header button{min-height:28px!important;border:0!important;background:transparent!important;padding:4px 6px!important;}
html body .xl-data-panel-r247 header button.xl-cpc-preset-r247{align-self:flex-start!important;min-height:28px!important;border:1px solid var(--xl-ref-border,#d2ded4)!important;background:var(--xl-ref-surface,#fff)!important;padding:4px 9px!important;}
html body .xl-data-panel-r247 button.primary{background:var(--xl-ref-primary)!important;border-color:var(--xl-ref-primary)!important;color:#fff!important;font-weight:600!important;}
html body .xl-data-panel-r247 button:disabled{opacity:.45!important;cursor:not-allowed!important;}
html body .xl-data-panel-r247 .xl-filter-error-r247{color:#a73c35!important;font-size:12px!important;line-height:1.5!important;}
@media(max-width:767px){
 html body .xl-data-panel-r247.el-popper{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 136px)!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px 0!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-popover{padding:0 12px 12px!important;}
 html body .xl-data-panel-r247 header{margin:0 -12px!important;padding:12px!important;gap:5px!important;}
 html body .xl-data-panel-r247 header small{font-size:11px!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-condition{padding:10px!important;gap:7px!important;}
 html body .xl-data-panel-r247 .xl-risk-order-control{grid-template-columns:80px minmax(0,1fr)!important;gap:4px!important;}
 html body .xl-data-panel-r247 .xl-risk-order-control :is(select,input){height:32px!important;font-size:12px!important;padding:0 4px!important;}
 html body .xl-data-panel-r247 footer{margin:0 -12px -12px!important;bottom:-12px!important;padding:10px 12px!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-condition small{min-height:0!important;}
}
@media(max-height:600px){
 html body .xl-data-panel-r247 header{flex-direction:row!important;align-items:center!important;padding:8px 12px!important;gap:8px!important;}
 html body .xl-data-panel-r247 .xl-filter-panel-title-r247{flex:1!important;gap:8px!important;}
 html body .xl-data-panel-r247 header b{font-size:14px!important;}
 html body .xl-data-panel-r247 header small{display:none!important;}
 html body .xl-data-panel-r247 header button.xl-cpc-preset-r247{align-self:center!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-condition{padding:10px!important;gap:6px!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-condition small{display:none!important;}
 html body .xl-data-panel-r247 .xl-risk-filter-fields{padding:8px 0!important;gap:8px!important;}
 html body .xl-data-panel-r247 footer{padding:8px 12px!important;}
}
