/* RC6: breadcrumb occupies existing padding; status uses an absolute banner corner. */
html body.jit-consistent-pages .page-shell { position:relative; }
.pc-sr { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.pc-breadcrumbs { position:absolute; top:3px; left:0; right:0; height:21px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; color:#526b7b; font-size:12px; line-height:20px; z-index:2; }
.pc-breadcrumbs ol { display:flex; align-items:center; flex-wrap:nowrap; gap:8px; list-style:none; padding:0; margin:0; width:max-content; max-width:none; }
.pc-breadcrumbs li { display:flex; gap:8px; align-items:center; white-space:nowrap; }
.pc-breadcrumbs a { color:#356478; text-decoration:none; }
.pc-breadcrumbs a:hover { text-decoration:underline; }
.pc-breadcrumbs [aria-current=page] { color:#244457; font-weight:700; }
.pc-breadcrumb-separator { opacity:.6; }
.pc-state-green { --pc-signal:#15835d; --pc-tint:#eaf8f1; }
.pc-state-amber { --pc-signal:#ad670b; --pc-tint:#fff4dc; }
.pc-state-red { --pc-signal:#c03340; --pc-tint:#fff0f0; }
.pc-state-neutral { --pc-signal:#607d90; --pc-tint:#f1f6fa; }
.pc-status-banner { position:relative!important; }
.pc-sync { position:absolute; right:8px; top:32px; z-index:6; margin:0; padding:0; border:0; color:#16354a; text-align:left; }
.pc-status-banner>.pc-sync { top:4px; right:6px; }
.pc-sync>summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:center; width:24px; height:24px; min-height:24px; border-radius:50%; background:var(--pc-tint); color:var(--pc-signal); border:1px solid var(--pc-signal); box-shadow:0 1px 5px #12354722; padding:0; font:800 15px/1 system-ui,sans-serif; }
.pc-sync>summary::-webkit-details-marker { display:none; }
.pc-popover-body { position:absolute; right:0; top:30px; width:min(360px,calc(100vw - 28px)); max-height:min(560px,70vh); overflow:auto; background:#fff!important; color:#18384b!important; border:1px solid #b4cedb; border-radius:14px; padding:16px; box-shadow:0 14px 44px #122d4940; font:13px/1.55 system-ui,sans-serif; z-index:22000; box-sizing:border-box; }
.pc-popover-body * { color:inherit!important; }
.pc-popover-body strong { display:block; font-size:14px; margin-bottom:6px; }
.pc-popover-body p { font-size:12px!important; line-height:1.5!important; margin:7px 0!important; opacity:1!important; }
.pc-popover-body ul { list-style:none; padding:0; margin:10px 0; }
.pc-popover-body li { display:flex; gap:10px; padding:9px 0; border-top:1px solid #e5eef3; }
.pc-popover-body li div { display:grid; gap:3px; min-width:0; }
.pc-popover-body small { font-size:11px; color:#4c687a!important; }
.pc-sync-meaning { border-top:1px solid #dbe7ed; padding-top:10px; }
.pc-dot { display:inline-block; flex:0 0 auto; width:7px; height:7px; border-radius:50%; background:var(--pc-signal,#607d90); margin-top:6px; }
.pc-sync-more { border-top:1px solid #e5eef3; padding-top:8px; }
.pc-sync-more>summary { font-size:12px; cursor:pointer; font-weight:700; }
.pc-floating-tip { position:fixed; z-index:22002; border:1px solid #b4cedb; border-radius:12px; box-shadow:0 12px 32px #122d4933; background:#fff; color:#18384b; padding:12px 14px; max-width:min(360px,calc(100vw - 24px)); max-height:65vh; overflow:auto; font:13px/1.5 system-ui,sans-serif; box-sizing:border-box; }
.pc-summary-shell { container-type:inline-size; margin:0 0 22px; min-width:0; max-width:100%; }
html body.jit-consistent-pages .pc-summary { display:grid; grid-template-columns:repeat(var(--pc-count,6),minmax(0,1fr)); gap:10px; margin:0; padding:0; min-width:0; }
html body.jit-consistent-pages .pc-metric { position:relative; display:grid; grid-template-columns:26px minmax(0,1fr); grid-template-rows:auto auto; column-gap:9px; row-gap:5px; align-content:center; padding:14px 12px; background:#fff; color:#173b50; border:1px solid #d1e2ec; border-radius:15px; text-decoration:none; min-width:0; min-height:79px; box-shadow:0 3px 10px #17384a04; box-sizing:border-box; font-family:inherit; text-align:left; cursor:pointer; }
html body.jit-consistent-pages .pc-metric:hover { border-color:#4e9fb7; background:#f4fbfe; }
html body.jit-consistent-pages .pc-metric>.dw-icon { grid-column:1; grid-row:1; width:23px; height:23px; color:#2b7086; }
html body.jit-consistent-pages .pc-metric-value { grid-column:2; grid-row:1; display:block; font-size:20px; line-height:1.2; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html body.jit-consistent-pages .pc-metric-label { grid-column:1 / -1; grid-row:2; font-size:11px; font-weight:600; line-height:1.3; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; color:#4f6c7b; }
html body.jit-consistent-pages .pc-metric>.pc-dot { position:absolute; right:8px; top:7px; margin:0; }
html body.jit-consistent-pages .pc-metric.pc-state-red { border-color:#d9a2a8; }
html body.jit-consistent-pages .pc-metric.pc-state-amber { border-color:#dec895; }
@container(max-width:1020px) {
 html body.jit-consistent-pages .pc-metric { grid-template-columns:1fr; grid-template-rows:23px auto; row-gap:6px; justify-items:center; text-align:center; min-height:70px; padding:10px 7px; }
 html body.jit-consistent-pages .pc-metric>.dw-icon { grid-column:1; grid-row:1; width:21px; height:21px; }
 html body.jit-consistent-pages .pc-metric-value { grid-column:1; grid-row:2; max-width:100%; font-size:16px; }
 html body.jit-consistent-pages .pc-metric-label { display:none; }
}
@container(max-width:580px) { html body.jit-consistent-pages .pc-summary { grid-template-columns:repeat(auto-fit,minmax(66px,1fr)); gap:8px; } }
html body.jit-consistent-pages .pc-identity-tools { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; max-width:100%; min-width:0; }
html body.jit-consistent-pages .pc-view-select { display:grid; gap:5px; font-size:11px; font-weight:700; color:#486b7c; min-width:0; }
html body.jit-consistent-pages .pc-view-select select { min-height:40px; width:165px; font-size:13px; }
html body.jit-consistent-pages .pc-search-label { min-width:0; }
html body.jit-consistent-pages .pc-identity-tools .table-search { width:clamp(180px,20vw,300px); min-width:0; max-width:100%; min-height:40px; }
.pc-anchor-highlight { outline:2px solid #13a8c7; outline-offset:4px; scroll-margin-top:90px; }
@media(max-width:760px) { .pc-breadcrumbs { top:0; height:17px; line-height:16px; font-size:10px; } .pc-breadcrumbs ol,.pc-breadcrumbs li { gap:6px; } .pc-sync { top:22px; } .pc-status-banner>.pc-sync { top:3px; right:4px; } .pc-sync>summary { width:22px; height:22px; min-height:22px; font-size:13px; } }
@media(max-width:440px) { html body.jit-consistent-pages .pc-identity-tools { width:100%; } html body.jit-consistent-pages .pc-search-label { flex:1 1 160px; } html body.jit-consistent-pages .pc-identity-tools .table-search { width:100%; } }
@media print { .pc-breadcrumbs,.pc-sync,.pc-floating-tip { display:none!important; } .pc-metric-label { display:block!important; } }

html body.jit-consistent-pages .pc-status-banner .company-switcher>label,html body.jit-consistent-pages .pc-status-banner .portal-company-selector label { color:#fff; }
/* Keep the unchanged radar/control view inside the same small-screen canvas. */
html body.jit-consistent-pages .posture-layout>div { min-width:0; }
html body.jit-consistent-pages .posture-radar-card canvas { max-width:100%; height:auto; }
html body.jit-consistent-pages .pc-status-banner label { color:#fff; }
@media(max-width:760px) { html body.jit-consistent-pages .posture-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) { html body.jit-consistent-pages .posture-guide-grid { grid-template-columns:minmax(0,1fr); } }

/* Keep the linked Security Watch detail headings within narrow page widths. */
@media(max-width:760px){
 body.security-watch-page .section-heading{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;}
 body.security-watch-page .section-heading>*{min-width:0;max-width:100%;}
 body.security-watch-page .section-heading .form-actions{flex-wrap:wrap;min-width:0;width:100%;}
 body.security-watch-page .section-heading .table-search{min-width:0;max-width:100%;width:100%;}
}
/* RC7: bounded icon-only customer-sync tools in the existing banner corner. */
.pc-banner-tools { position:absolute; top:32px; right:8px; display:flex; align-items:center; gap:4px; z-index:8; color:#173b50; }
.pc-status-banner>.pc-banner-tools { top:4px; right:6px; }
.pc-banner-tools>.pc-sync { position:relative; top:auto; right:auto; }
.pc-banner-tools form { margin:0; padding:0; display:inline-flex; width:auto; }
.pc-sync-action,.pc-sync-overflow>summary { display:inline-flex; align-items:center; justify-content:center; list-style:none; width:26px; height:26px; min-height:26px; padding:3px; border:1px solid #b4cedb; border-radius:7px; background:#fff; color:#236478; cursor:pointer; box-sizing:border-box; }
.pc-sync-action>.dw-icon,.pc-sync-overflow>summary>.dw-icon { width:17px; height:17px; }
.pc-sync-action:hover,.pc-sync-overflow>summary:hover { background:#e7f8ff; }
.pc-sync-action:disabled { opacity:.55; cursor:wait; }
.pc-sync-overflow { position:relative; margin:0; padding:0; border:0; }
.pc-sync-overflow>summary::-webkit-details-marker { display:none; }
.pc-sync-more-actions { display:flex; flex-wrap:wrap; gap:10px; }
.pc-sync-more-actions .pc-sync-action { width:40px; height:40px; }
.pc-sync-more-actions .pc-sync-action>.dw-icon { width:23px; height:23px; }
html body.jit-consistent-pages .pc-status-banner>.eyebrow,
html body.jit-consistent-pages .pc-status-banner>div>.eyebrow { display:inline-block; vertical-align:top; max-width:calc(100% - var(--pc-tools-width,28px) - 12px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* No extra toolbar row or height. Empty old selector wrappers no longer reserve space. */
.portal-company-tools:empty { display:none; }
@media print { .pc-banner-tools { display:none!important; } }
