/* AD Report # 15 · the PingCastle page (pc.html): PingCastle's own report, put into the page by assets/js/pc/report.js,
 * in this report's Swiss editorial style. Everything is scoped to .pcx (the report, its pop-up windows, pop-ups and
 * tooltips all sit inside it), and the rules stand in for the Bootstrap 5 classes PingCastle's markup uses, so neither
 * Bootstrap nor PingCastle's own stylesheet loads. Report # 15's site.css also has .row, .card, .btn, .badge, .legend...:
 * the .pcx rules below set every property that matters so those never leak in. Colours are site.css's tokens, so light
 * and dark follow the theme switch. */
.pcx { --pcx-red-2: #EE8A82; --pcx-amb: var(--warn-solid, #E8A317); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; }
:root[data-theme="dark"] .pcx { --pcx-red-2: #B8433A; }
.pcx *, .pcx *::before, .pcx *::after { box-sizing: border-box; }
.pcx-src { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.pcx-loading { color: var(--muted); font-weight: 600; padding: 24px 0; }
body.pcx-locked { overflow: hidden; }

/* ---------- type ---------- */
.pcx h1, .pcx h2, .pcx h3, .pcx h4, .pcx h5, .pcx .h3 { font-family: var(--font); color: var(--ink); margin: 0 0 .75rem; line-height: 1.15; text-transform: none; letter-spacing: -0.01em; }
.pcx h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; letter-spacing: -0.04em; margin: 0; }
.pcx h2 { font-size: 22px; font-weight: 800; }
.pcx h3, .pcx .h3 { font-size: 18px; font-weight: 800; }
.pcx h4 { font-size: 15px; font-weight: 700; }
.pcx p { margin: 0 0 .75rem; }
.pcx a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.pcx a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pcx strong, .pcx b { font-weight: 700; }
.pcx code, .pcx pre { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.pcx pre { white-space: pre-wrap; background: var(--well); padding: 10px 12px; }
.pcx ul { padding-left: 1.25rem; margin: 0 0 .75rem; }
.pcx :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcx .small, .pcx small { font-size: .875em; }
.pcx .text-muted { color: var(--muted); }
.pcx .text-justify { text-align: left; }
.pcx .lead { font-size: inherit; font-weight: inherit; }
.pcx .fs-6 { font-size: inherit; }
.pcx .fw-bold { font-weight: 800; }

/* ---------- the Bootstrap layout PingCastle's markup uses ---------- */
.pcx .row { display: flex; flex-wrap: wrap; gap: 0; margin: 0 -12px; align-items: stretch; }
.pcx .row > * { flex: 0 0 100%; max-width: 100%; padding: 0 12px; min-width: 0; }
.pcx .row > .col-xs-4 { flex-basis: 33.333%; max-width: 33.333%; }
.pcx .row > .col-xs-6 { flex-basis: 50%; max-width: 50%; }
.pcx .row > .col-xs-8 { flex-basis: 66.667%; max-width: 66.667%; }
@media (min-width: 576px) {
  .pcx .row > .col-sm-3 { flex-basis: 25%; max-width: 25%; }
  .pcx .row > .col-sm-6 { flex-basis: 50%; max-width: 50%; }
  .pcx .row > .col-sm-9 { flex-basis: 75%; max-width: 75%; }
}
@media (min-width: 768px) {
  .pcx .row > .col-md-2 { flex-basis: 16.667%; max-width: 16.667%; }
  .pcx .row > .col-md-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .pcx .row > .col-md-6 { flex-basis: 50%; max-width: 50%; }
  .pcx .row > .col-md-8 { flex-basis: 66.667%; max-width: 66.667%; }
}
@media (min-width: 992px) {
  .pcx .row > .col-lg-3 { flex-basis: 25%; max-width: 25%; }
  .pcx .row > .col-lg-9 { flex-basis: 75%; max-width: 75%; }
}
.pcx .d-none { display: none !important; }
.pcx .d-flex { display: flex; }
.pcx .justify-content-between { justify-content: space-between; }
.pcx .align-items-center { align-items: center; }
.pcx .float-end { float: right; }
.pcx .mt-2 { margin-top: .5rem; } .pcx .mt-4 { margin-top: 1.5rem; } .pcx .mb-0 { margin-bottom: 0; } .pcx .mb-2 { margin-bottom: .5rem; } .pcx .mb-4 { margin-bottom: 1.5rem; }
.pcx .ms-0 { margin-left: 0; } .pcx .pb-0 { padding-bottom: 0 !important; } .pcx .pt-0 { padding-top: 0 !important; }
.pcx .list-unstyled { list-style: none; padding-left: 0; }
.pcx .table-responsive { overflow-x: auto; max-width: 100%; }
.pcx .table-responsive > table { margin-bottom: 1rem; }
.pcx .collapse:not(.show) { display: none; }
@media print { .pcx .d-print-none { display: none !important; } }

/* ---------- the report ---------- */
.pcx .report-header { border-bottom: var(--rule-heavy, 6px) solid var(--ink); padding: 8px 0 12px; margin: 8px 0 4px; align-items: flex-end; flex-wrap: wrap; gap: 8px 24px; }
.pcx .report-date { font-family: var(--narrow); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pcx .alert { padding: 12px 14px; margin: 0 0 1rem; background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-left: 5px solid var(--accent); }
.pcx .alert-info { border-left-color: var(--ink); }
/* section heads: a 2px rule with the short red bar, as on Report # 15's pages */
.pcx .section-header-container { border-top: 2px solid var(--ink); margin: 2.5rem 0 1rem; padding: 0; background: none; }
.pcx .section-header-container::before { content: ""; display: block; width: 44px; height: 5px; background: var(--accent); margin-bottom: 6px; }
.pcx .sectionheader { color: var(--ink); text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: -0.015em; cursor: pointer; }
.pcx .sectionheader::after { content: "−"; margin-left: 10px; font-weight: 400; color: var(--muted); }
.pcx .sectionheader.collapsed::after, .pcx .sectionheader[aria-expanded="false"]::after { content: "+"; }
.pcx .sectionheader:hover { color: var(--accent); }
.pcx .sub-section { font-size: 20px; font-weight: 800; display: block; margin: 1.5rem 0 .75rem; }
.pcx h2.indicator-header { font-size: 20px; }
.pcx .indicators-border { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; margin: 10px 0; }
.pcx .risk-sub-section { margin-top: 2rem; }
.pcx a[name] { display: block; position: relative; top: -12px; visibility: hidden; }
.pcx .ticked { color: var(--ink); font-weight: 700; }
.pcx .unticked { color: var(--accent); font-weight: 700; }
.pcx .num { text-align: right; font-variant-numeric: tabular-nums; }

/* the gauges: ink, amber, light red, red; the needle in red */
.pcx svg { max-width: 100%; height: auto; font-family: var(--font); }
.pcx svg text { fill: var(--ink); font-size: 10px; }
.pcx .chart-first { fill: var(--ink-2); } .pcx .chart-second { fill: var(--pcx-amb); } .pcx .chart-third { fill: var(--pcx-red-2); } .pcx .chart-quart { fill: var(--accent); }
.pcx .needle, .pcx .needle-center { fill: var(--accent); }

/* the risk model grid */
.pcx .model_table { border-collapse: separate; border-spacing: 2px; }
.pcx .model_table th { font-family: var(--narrow); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 6px 4px; border-bottom: 3px solid var(--ink); }
.pcx .model_cell { padding: 6px 8px; border: 1px solid var(--line); background: var(--ground); cursor: pointer; }
.pcx .model_cell .small { font-size: 12.5px; font-weight: 600; }
.pcx .model_cell.model_toimprove { background: var(--pcx-amb); border-color: var(--pcx-amb); color: #111111; }
.pcx .model_cell.model_info { background: var(--ink-2); border-color: var(--ink-2); color: var(--ground); }
.pcx .model_cell.model_warning { background: var(--pcx-red-2); border-color: var(--pcx-red-2); color: #111111; }
.pcx .model_cell.model_danger { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pcx .model_cell:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.pcx .model_empty_cell { border: 0; background: none; cursor: default; }
.pcx [class^="risk_model_"] { display: inline-block; width: 14px; height: 14px; padding: 0 !important; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.pcx .risk_model_none, .pcx .risk_model_information { background: var(--ink-2); }
.pcx .risk_model_low { background: var(--pcx-amb); } .pcx .risk_model_medium { background: var(--pcx-red-2); } .pcx .risk_model_high { background: var(--accent); } .pcx .risk_model_no_detections { background: var(--ground); }
.pcx .grade-1, .pcx .grade-2, .pcx .grade-3, .pcx .grade-4, .pcx .grade-5 { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-align: center; }
.pcx .grade-1 { background: var(--accent); color: var(--accent-ink); } .pcx .grade-2 { background: var(--pcx-red-2); color: #111111; } .pcx .grade-3 { background: var(--pcx-amb); color: #111111; } .pcx .grade-4, .pcx .grade-5 { background: var(--ink); color: var(--ground); }

/* rules: ruled cards that open in place */
.pcx .card { display: block; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0; margin: 0; gap: 0; min-width: 0; }
.pcx .card:last-child { border-bottom: 1px solid var(--line); }
.pcx .card-header { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; background: none; border: 0; }
.pcx .card-header > a[name] { position: absolute; width: 0; height: 0; top: auto; }
.pcx .card-header > .card-title { flex: 1; min-width: 0; }
.pcx .card-header .float-end, .pcx .card-header i.float-end { float: none; margin-left: auto; font-family: var(--mono); font-size: 12px; font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
.pcx .card-title { margin: 0; font-size: inherit; }
.pcx .card-body { padding: 4px 0 18px 18px; }
.pcx .risk-card h3 { font-size: 20px; margin-top: 4px; }
.pcx .relevantproductsheader { display: inline-flex; gap: .5em; align-items: center; cursor: pointer; margin-top: 4px; }
.pcx .icon-container { position: relative; display: inline-block; width: 1em; height: 1em; }
.pcx .icon-container .icon { position: absolute; inset: 0; fill: currentColor; }
.pcx .icon-container svg { width: 1em; height: 1em; fill: currentColor; }
.pcx .relevantproductsheader[aria-expanded="true"] .icon-down, .pcx .relevantproductsheader[aria-expanded="false"] .icon-up { opacity: 0; }
.pcx .icon-inline { display: inline-block; width: .9em; height: .9em; vertical-align: -0.1em; fill: currentColor; }
.pcx .info-mark { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); color: var(--muted); font-style: normal; vertical-align: 1px; cursor: help; }
.pcx .info-mark::before { content: "i"; font-family: Georgia, serif; font-size: 10px; font-weight: 700; line-height: 1; }
.pcx .info-mark:hover { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pcx .badge { display: inline-block; padding: 0 6px; border-radius: 0; font-size: 11px; font-weight: 700; background: var(--ink); color: var(--ground); }

/* ---------- tables: ruled, a 3px rule under the head ---------- */
.pcx table.table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 13px; background: none; }
.pcx .table th { text-align: left; font-family: var(--narrow); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 8px 12px 8px 0; border: 0; border-bottom: 3px solid var(--ink); white-space: nowrap; vertical-align: bottom; background: none; }
.pcx .table td { padding: 8px 12px 8px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); background: none; }
.pcx .table tbody tr:hover td { background: var(--well); }
.pcx .table th.pcx-sort { cursor: pointer; user-select: none; }
.pcx .table th.pcx-sort::after { content: " ↕"; color: var(--muted); font-size: 10px; }
.pcx .table th[aria-sort="ascending"]::after { content: " ↑"; color: var(--accent); }
.pcx .table th[aria-sort="descending"]::after { content: " ↓"; color: var(--accent); }
.pcx .table th.pcx-sort:hover { color: var(--accent); }
.pcx .pcx-empty { color: var(--muted); padding: 14px 0 !important; }
.pcx .pcx-tools { display: flex; justify-content: flex-end; margin: 4px 0 6px; }
.pcx .pcx-search input { width: 260px; max-width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--ink); background: var(--ground); color: var(--ink); font: inherit; }
.pcx .pcx-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.pcx .pcx-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -6px 0 1rem; font-size: 12px; }
.pcx .pcx-range { font-family: var(--narrow); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcx .pcx-range b { color: var(--ink); }
.pcx .pcx-pgr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pcx .pcx-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pcx .pcx-pages button { min-width: 32px; height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); font: 800 13px var(--font); cursor: pointer; }
.pcx .pcx-pages button:hover:not([disabled]) { color: var(--accent); }
.pcx .pcx-pages button[aria-current="page"] { background: var(--ink); color: var(--ground); }
.pcx .pcx-pages button[disabled] { color: var(--muted); opacity: .45; cursor: default; }
.pcx .pcx-gap { color: var(--muted); padding: 0 4px; }
.pcx .pcx-size { display: inline-flex; align-items: center; gap: 6px; font-family: var(--narrow); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcx .pcx-size select { min-height: 32px; padding: 0 8px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--ink); background: var(--ground); color: var(--ink); font: 700 12px var(--font); cursor: pointer; }

/* ---------- buttons, switches, progress ---------- */
.pcx .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 0; box-shadow: inset 0 0 0 2px var(--ink); background: transparent; color: var(--ink); font: 800 12px var(--font); text-decoration: none; cursor: pointer; }
.pcx .btn:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.pcx .btn-primary { background: var(--ink); color: var(--ground); }
.pcx .btn-primary:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.pcx .btn.btn-link { all: unset; cursor: pointer; font-weight: 700; color: var(--ink); text-decoration: none; }
.pcx .btn.btn-link:hover { color: var(--accent); box-shadow: none; }
.pcx .btn.btn-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcx .btn.btn-link::before { content: "+"; display: inline-block; width: 18px; color: var(--muted); font-weight: 400; }
.pcx .btn.btn-link[aria-expanded="true"]::before { content: "−"; }
.pcx .custom-switch { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.pcx .custom-control-input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.pcx .progress { height: 14px; background: var(--track); overflow: hidden; }
.pcx .progress-bar { height: 100%; background: var(--ink); color: var(--ground); font-size: 10px; text-align: center; }

/* ---------- pop-up windows ---------- */
.pcx .modal { display: none; position: fixed; inset: 0; z-index: 1000; overflow-y: auto; padding: 48px 16px; background: rgba(0, 0, 0, .55); }
.pcx .modal.show { display: block; }
.pcx .modal-dialog { max-width: 820px; margin: 0 auto; }
.pcx .modal-lg { max-width: 960px; } .pcx .modal-xl { max-width: 1180px; }
.pcx .modal-content { background: var(--ground); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 18px 44px rgba(0, 0, 0, .35); }
.pcx .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink); }
.pcx .modal-title { margin: 0; color: var(--ground); font-family: var(--narrow); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pcx .btn-close { all: unset; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ground); cursor: pointer; }
.pcx .btn-close::before { content: "×"; font-size: 26px; line-height: 1; }
.pcx .btn-close:hover { color: var(--accent); }
.pcx .btn-close:focus-visible { outline: 2px solid var(--accent); }
.pcx .modal-body { padding: 16px; }
.pcx .modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
/* the relationship graphs: the whole window */
.pcx .modal-full-screen { padding: 0; overflow: hidden; }
.pcx .modal-full-screen-dialog { max-width: none; height: 100%; margin: 0; }
.pcx .modal-full-screen-content { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pcx .modal-full-screen-body { position: relative; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.pcx .modal-full-screen-footer { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.pcx .network-area { width: 100%; height: 100%; background: var(--ground); }
.pcx .modal-full-screen-body > .progress { position: absolute; top: 12px; left: 16px; right: 16px; z-index: 2; }
.pcx .legend { position: absolute; top: 16px; left: 16px; z-index: 2; display: block; padding: 10px 12px; background: var(--ground); box-shadow: 0 0 0 1px var(--line); font-size: 12px; line-height: 1.6; }
.pcx .legend i { font-style: normal; font-family: var(--mono); padding: 0 4px; margin-right: 4px; border: 1px solid; }
.pcx .legend_user { background: #80B2FF; border-color: #0047B2; color: #111; } .pcx .legend_fsp { background: #FFA366; border-color: #8F3900; color: #111; }
.pcx .legend_computer { background: #D65C33; border-color: #661A00; color: #111; } .pcx .legend_group { background: #70DB70; border-color: #196419; color: #111; }
.pcx .legend_ou { background: #CCCCCC; border-color: #333333; color: #111; } .pcx .legend_gpo { background: #AD8533; border-color: #403100; color: #111; }
.pcx .legend_unknown { background: #FFFFFF; border-color: #A352CC; }
.pcx div.vis-tooltip { position: absolute; padding: 6px 8px; background: var(--ground); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font: 12px var(--font); white-space: nowrap; pointer-events: none; z-index: 5; }

/* ---------- the risk model's pop-ups and the (i) tooltips ---------- */
.pcx .pcx-pop, .pcx .pcx-tip { position: fixed; z-index: 1100; max-width: 380px; background: var(--ground); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 12px 30px rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.45; }
.pcx .pcx-pop-h { padding: 8px 12px 6px; border-bottom: 3px solid var(--ink); font-weight: 800; }
.pcx .pcx-pop-b { padding: 8px 12px 10px; }
.pcx .pcx-pop-b p { margin: 0 0 6px; }
.pcx .pcx-tip { padding: 8px 12px; pointer-events: none; max-width: 320px; }
.pcx .pcx-tip[hidden] { display: none; }
.pcx .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .pcx .sectionheader { font-size: 22px; } .pcx .pcx-search input { width: 100%; } .pcx .pcx-tools { justify-content: stretch; } }
