/* ============================================================
   OTC Pricing Health Dashboard
   Chevron-inspired enterprise theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --ph-font: "Source Sans 3", "Trebuchet MS", sans-serif;
    --ph-navy: #003b70;
    --ph-navy-700: #00549a;
    --ph-blue: #0073ba;
    --ph-brand-blue: #0073bc;
    --ph-brand-red: #e21836;
    --ph-blue-100: #e6f1f9;
    --ph-green: #157f4a;
    --ph-green-100: #e5f4ec;
    --ph-yellow: #805a00;
    --ph-yellow-100: #fdf3e0;
    --ph-red: #d71920;
    --ph-red-100: #fde9ea;

    --ph-bg: #f4f6f7;
    --ph-surface: #ffffff;
    --ph-surface-alt: #f7f9fa;
    --ph-panel-alt: #f1f3f5;
    --ph-border: #dce3e7;
    --ph-border-strong: #bac8d1;
    --ph-ink: #1d303d;
    --ph-ink-2: #465e6b;
    --ph-ink-3: #617783;

    --ph-radius: 8px;
    --ph-radius-sm: 7px;
    --ph-shadow: 0 1px 3px rgba(29, 48, 61, .06);
    --ph-shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 190px;
}

body {
    margin: 0;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
    background: var(--ph-bg);
    color: var(--ph-ink);
    font-family: var(--ph-font);
    font-size: 13px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

body::after { content: ""; position: fixed; inset: 0; z-index: 1100; border: 3px solid var(--ph-brand-blue); border-bottom-color: var(--ph-brand-red); pointer-events: none; }

/* Form controls don't inherit the page font by default in most browsers. */
button, input, select, textarea, optgroup {
    font-family: inherit;
    font-size: inherit;
}

.ph-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ph-sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ph-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ph-icon--lg { width: 20px; height: 20px; vertical-align: -3px; }

.ph-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- top bar */

.ph-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    padding: 0 clamp(16px, 3vw, 48px);
    background: #fff;
    border-top: 3px solid var(--ph-brand-blue);
    border-bottom: 1px solid var(--ph-border);
    color: var(--ph-navy);
    box-shadow: 0 4px 16px rgba(0, 59, 112, .09);
}

.ph-topbar__brand { grid-area: brand; display: flex; align-items: center; gap: 20px; min-width: 0; }
.ph-topbar__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; width: 100%; padding-block: 16px; }
.ph-topbar__controls { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.ph-topbar__identity { display: grid; gap: 5px; min-width: 0; padding-left: 20px; border-left: 3px solid var(--ph-brand-blue); }
.ph-topbar__identity::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 3px; background: var(--ph-brand-red); }
.ph-topbar__eyebrow { color: var(--ph-ink-3); font-size: 11px; font-weight: 600; }
.ph-topbar__meta strong { color: #fff; font-weight: 600; }

.ph-chevron-lockup { display: block; width: 54px; height: 62px; object-fit: contain; flex: 0 0 54px; }
.ph-chevron-wordmark { color: #0073ba; font-size: 11px; font-weight: 700; line-height: 1; margin-bottom: 2px; }
.ph-chevron-logo { display: block; width: 58px; height: 44px; flex: none; overflow: visible; }
.ph-chevron-logo__blue { fill: #00a3e0; }
.ph-chevron-logo__blue-dark { fill: #0073ba; }
.ph-chevron-logo__red { fill: #d71920; }

.ph-topbar h1 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: 0; color: var(--ph-navy); }
.ph-eyebrow { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-blue); }
.ph-topbar__scope { margin: 2px 0 0; color: var(--ph-ink-3); font-size: 12px; font-weight: 500; }

.ph-section-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-top: 0;
    margin-inline: calc(-1 * clamp(16px, 3vw, 48px));
    padding-inline: clamp(16px, 3vw, 48px);
    border-top: 1px solid var(--ph-border);
    background: var(--ph-surface-alt);
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
}
.ph-section-nav::-webkit-scrollbar { display: none; }
.ph-section-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    height: 46px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ph-ink-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}
.ph-section-nav__icon { display: block; width: 18px; height: 18px; min-width: 18px; opacity: .7; }
.ph-section-nav__item.is-active .ph-section-nav__icon { opacity: 1; }
.ph-section-nav__label { font-size: 14px; }
.ph-section-nav__item:hover {
    background: var(--ph-blue-100);
    color: var(--ph-navy);
}
.ph-section-nav__item.is-active {
    background: var(--ph-blue-100);
    color: var(--ph-navy);
    border-color: var(--ph-brand-red);
    box-shadow: none;
}
.ph-section-nav__spacer { flex: 1 1 auto; min-width: 8px; }
.ph-scope-pill { border-color: var(--ph-navy); background: var(--ph-navy); color: #fff; }
.ph-live-status { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding-left: 14px; border-left: 1px solid var(--ph-border); color: var(--ph-ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ph-live-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ph-green); box-shadow: 0 0 0 3px rgba(21, 127, 74, .1); }

.ph-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 12px; font-weight: 600;
}

.ph-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    position: relative;
    left: 0;
}

.ph-field { display: flex; flex-direction: column; gap: 4px; min-width: 132px; }
.ph-time-range { flex-direction: row; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 4px 8px; border: 1px solid var(--ph-border); border-radius: 10px; background: #f7f8fa; }
.ph-time-range > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #687d91; white-space: nowrap; }
.ph-time-range select { min-width: 166px; min-height: 32px !important; height: 32px; padding: 4px 28px 4px 10px; border-color: var(--ph-border-strong); border-radius: 7px; font-size: 14px; }
.ph-date-range { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ph-date-range__field { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ph-date-range__field > span { color: #687d91; font-size: 10.5px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.ph-date-range__field input[type="date"] { box-sizing: border-box; width: 146px; min-width: 0; height: 38px; padding: 4px 10px; border: 1px solid var(--ph-border-strong); border-radius: 4px; background: var(--ph-surface); color: var(--ph-ink); font-size: 14px; }
.ph-date-range__action { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border: 1px solid var(--ph-border); border-radius: 4px; background: var(--ph-surface); color: var(--ph-ink-2); cursor: pointer; }
.ph-date-range__action:hover:not(:disabled) { border-color: var(--ph-blue); color: var(--ph-blue); background: var(--ph-blue-100); }
.ph-date-range__action.is-pending { border-color: var(--ph-blue); color: var(--ph-blue); }
.ph-date-range__action:disabled { cursor: wait; opacity: .6; }
.ph-date-range__action:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 2px; }
.ph-date-window { color: var(--ph-ink-3); font-size: 12px; font-weight: 600; }
.ph-date-window-group { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.ph-date-window-group .ph-loading-spinner { padding: 0; color: var(--ph-ink-3); font-size: 12px; }
.ph-field > span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ph-ink-3); }
.ph-field select {
    appearance: none;
    min-height: 52px;
    padding: 7px 28px 7px 14px;
    border-radius: var(--ph-radius-sm);
    border: 1px solid var(--ph-border-strong);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230073ba' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m4 6.5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 13px;
    color: var(--ph-ink); font-size: 13px; font-weight: 500; cursor: pointer;
}
.ph-field select option { color: var(--ph-ink); background: #fff; }
.ph-field select:focus-visible, .ph-select:focus-visible, .ph-search input:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 1px; }

.ph-app--dark { --ph-bg: #141d23; --ph-surface: #1c282f; --ph-surface-alt: #23323a; --ph-border: #394b55; --ph-border-strong: #607884; --ph-ink: #edf3f5; --ph-ink-2: #c4d3db; --ph-ink-3: #a0b6c0; --ph-blue: #79c7f0; --ph-blue-100: #203d4e; --ph-green: #78d5a5; --ph-green-100: #193e31; --ph-yellow: #f3cb7c; --ph-yellow-100: #433722; --ph-red: #ffa3a7; --ph-red-100: #462a30; }
.ph-app--dark .ph-topbar { background: var(--ph-surface); }
.ph-app--dark { --ph-panel-alt: #23323a; }
.ph-app--dark .ph-topbar h1, .ph-app--dark .ph-section-nav__item.is-active { color: var(--ph-ink); }
.ph-app--dark .ph-section-nav__item:hover { color: var(--ph-ink); }
.ph-app--dark .ph-section-nav__icon, .ph-app--dark .ph-delivery-path__stage-icon img, .ph-app--dark .ph-delivery-path__icon { filter: invert(1); }
.ph-app--dark .ph-chevron-lockup { background: #fff; border-radius: 2px; }
.ph-app--dark .ph-live-status { color: var(--ph-ink); }
.ph-app--dark .ph-date-range__field > span { color: var(--ph-ink-3); }
.ph-app--dark .ph-date-range__field input[type="date"] { background: var(--ph-surface-alt); color: var(--ph-ink); color-scheme: dark; }
body:has(.ph-app--dark) { background: #141d23; color: #edf3f5; }
.ph-app, .ph-app .ph-table, .ph-app button, .ph-app input, .ph-app select, .ph-app th, .ph-app h2, .ph-app h3 { letter-spacing: 0; }
.ph-app button:focus-visible, .ph-app a:focus-visible, .ph-app input:focus-visible, .ph-app select:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 3px; }

/* ---------------------------------------------------------- buttons */

.ph-btn {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px; padding: 8px 14px; border-radius: 4px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: .16s ease;
    white-space: nowrap;
}
.ph-btn--primary { background: var(--ph-blue); color: #fff; }
.ph-btn--primary:hover { background: var(--ph-navy-700); transform: translateY(-1px); }
.ph-btn--ghost { background: var(--ph-surface); color: var(--ph-blue); border-color: var(--ph-border-strong); }
.ph-btn--ghost:hover { background: var(--ph-blue-100); border-color: var(--ph-blue); }
.ph-btn[data-busy="true"] { opacity: .6; pointer-events: none; }
.ph-btn[data-busy="true"] .ph-icon { animation: ph-spin .9s linear infinite; }

@keyframes ph-spin { to { transform: rotate(360deg); } }

.ph-icon-btn {
    width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 8px; border: 1px solid var(--ph-border);
    background: var(--ph-surface); color: var(--ph-ink-3); cursor: pointer; transition: .16s ease;
}
.ph-icon-btn:hover { color: var(--ph-blue); border-color: var(--ph-blue); background: var(--ph-blue-100); }

/* ---------------------------------------------------------- layout */

.ph-layout {
    --ph-page-gutter: clamp(16px, 3vw, 48px);
    display: block;
    align-items: start;
    gap: 18px;
    width: 100%;
    max-width: none;
    padding: 0 var(--ph-page-gutter) 28px;
    background: var(--ph-surface);
    min-height: calc(100vh - 200px);
}

.ph-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    min-height: 64px;
    padding: 16px clamp(16px, 3vw, 48px);
    border-top: 1px solid #dce3e7;
    background: #f4f6f7;
    color: #465e6b;
    font-size: 12px;
}
.ph-footer__info { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; font-weight: 700; }
.ph-footer strong { color: #003b70; font-weight: 600; }
.ph-footer__subtitle { flex: 1 1 360px; }
.ph-footer__tag { padding: 0; border: 0; border-radius: 0; font-weight: 500; }
body:has(.ph-app--dark) .ph-footer { background: #141d23; border-color: #394b55; color: #a0b6c0; }
body:has(.ph-app--dark) .ph-footer strong { color: #edf3f5; }

.ph-main { display: flex; flex-direction: column; gap: 0; min-width: 0; width: 100%; }
.ph-main > .ph-loading-spinner { min-height: 320px; justify-content: center; }

.ph-detail-rail {
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 18px;
    padding: 16px;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    border-left: 5px solid var(--ph-navy);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow);
}

.ph-detail-rail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ph-detail-rail__head .ph-kicker { margin: 0; }
.ph-detail-rail .ph-inline-detail { border: 0; padding: 0; background: transparent; }
.ph-detail-placeholder { min-height: 280px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--ph-ink-3); }
.ph-detail-placeholder__icon { width: 42px; height: 42px; margin-bottom: 14px; fill: none; stroke: var(--ph-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ph-detail-placeholder h2 { margin: 0; font-size: 17px; color: var(--ph-ink); }
.ph-detail-placeholder p { max-width: 270px; margin: 7px 0 0; font-size: 12.5px; }

/* ---------------------------------------------------------- cards */

.ph-card {
    scroll-margin-top: 190px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ph-border);
    border-radius: 0;
    box-shadow: none;
    padding: 28px 0;
}

.ph-card--hero { border-top: 0; }
.ph-card--flow { width: 100%; max-width: none; margin-inline: 0; }
.ph-card--compact { padding: 14px 16px 16px; }

.ph-main > .ph-card {
    width: auto;
    margin-inline: calc(-1 * var(--ph-page-gutter));
    padding-inline: var(--ph-page-gutter);
    background: var(--ph-surface);
}
.ph-main > .ph-card:nth-of-type(even) { background: var(--ph-panel-alt); }

.ph-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ph-card__head--tight { margin-bottom: 10px; }
.ph-card__head h2 { margin: 2px 0 0; color: var(--ph-ink); font-size: 20px; font-weight: 600; letter-spacing: 0; }
.ph-card--compact .ph-card__head h2 { font-size: 15px; }

.ph-kicker { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-blue); }
.ph-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ph-ink-3); }
.ph-block-title { margin: 18px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ph-ink-3); }

.ph-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ph-ink-2); flex-wrap: wrap; }
.ph-legend span { display: inline-flex; align-items: center; gap: 6px; }

.ph-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.ph-dot--success { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.ph-dot--warning { background: #f1a915; box-shadow: 0 0 0 3px rgba(241, 169, 21, .2); }
.ph-dot--danger { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.ph-dot--info { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }

/* tone helpers */
.ph-tone-success { color: var(--ph-green); }
.ph-tone-warning { color: var(--ph-yellow); }
.ph-tone-danger { color: var(--ph-red); }
.ph-tone-info { color: var(--ph-blue); }

.ph-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; min-width: 46px; padding: 0 12px; border-radius: 18px;
    font-size: 14px; font-weight: 700; letter-spacing: .01em;
    flex-wrap: nowrap; white-space: nowrap;
    border: 1px solid transparent;
}
.ph-badge--success { background: var(--ph-green-100); color: var(--ph-green); border-color: #bde3cd; }
.ph-badge--warning { background: var(--ph-yellow-100); color: var(--ph-yellow); border-color: #f2ddb2; }
.ph-badge--danger { background: var(--ph-red-100); color: var(--ph-red); border-color: #f4c3c9; }
.ph-badge--info { background: var(--ph-blue-100); color: var(--ph-blue); border-color: #c3ddf1; }
.ph-table--network .performance-badge .ph-badge {
    height: 24px !important;
    max-width: 100%;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 5px !important;
    gap: 0;
    font-size: 11px !important;
    letter-spacing: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.ph-table--network .performance-badge .ph-dot { display: none !important; }
.ph-metric-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- KPI cards */

.ph-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.ph-kpi {
    position: relative; overflow: hidden; text-align: left; cursor: pointer;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow);
    padding: 15px 15px 13px;
    display: flex; flex-direction: column; gap: 9px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ph-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ph-blue); }
.ph-kpi--success::before { background: #22c55e; }
.ph-kpi--warning::before { background: #f1a915; }
.ph-kpi--danger::before { background: #ef4444; }
.ph-kpi:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); border-color: var(--ph-border-strong); }
.ph-kpi.is-active { border-color: var(--ph-blue); box-shadow: 0 0 0 3px rgba(0, 102, 178, .16); }

.ph-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-kpi__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ph-kpi__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-kpi--success .ph-kpi__icon { background: var(--ph-green-100); color: var(--ph-green); }
.ph-kpi--warning .ph-kpi__icon { background: var(--ph-yellow-100); color: var(--ph-yellow); }
.ph-kpi--danger .ph-kpi__icon { background: var(--ph-red-100); color: var(--ph-red); }
.ph-kpi--info .ph-kpi__icon { background: var(--ph-blue-100); color: var(--ph-blue); }

.ph-kpi__title { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-ink-3); min-height: 28px; }
.ph-kpi__value { font-size: 26px; font-weight: 680; letter-spacing: -.8px; line-height: 1.05; }
.ph-kpi__caption { font-size: 11.5px; color: var(--ph-ink-3); min-height: 30px; }

.ph-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; }
.ph-trend--up { background: var(--ph-green-100); color: var(--ph-green); }
.ph-trend--down { background: var(--ph-red-100); color: var(--ph-red); }
.ph-trend--flat { background: #eef2f7; color: var(--ph-ink-3); }

.ph-meter { height: 5px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.ph-meter > i { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.ph-meter--success > i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ph-meter--warning > i { background: linear-gradient(90deg, #fbbf24, #f1a915); }
.ph-meter--danger > i { background: linear-gradient(90deg, #f87171, #ef4444); }
.ph-meter--info > i { background: linear-gradient(90deg, #60a5fa, var(--ph-blue)); }

/* ---------------------------------------------------------- flow tracker */

.ph-linear-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 34px 4px 26px; }
.ph-linear-flow__node { flex: 1 1 0; min-width: 180px; min-height: 190px; padding: 16px; color: var(--ph-ink); text-align: left; cursor: pointer; border: 1px solid #55a0ed; border-left: 5px solid var(--ph-blue); border-radius: var(--ph-radius); background: #fff; box-shadow: var(--ph-shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ph-linear-flow__node:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); }
.ph-linear-flow__node.is-active { border-color: var(--ph-blue); box-shadow: 0 0 0 3px rgba(0, 102, 178, .15); }
.ph-linear-flow__node.ph-stage--success { border-left-color: #149b92; }
.ph-linear-flow__node.ph-stage--warning { border-left-color: #f1a915; background: #fffdf5; }
.ph-linear-flow__node.ph-stage--danger { border-left-color: #e51d4a; background: #fffafb; }
.ph-linear-flow__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-linear-flow__head .ph-stage__name { font-size: 15px; font-weight: 700; }
.ph-linear-flow__status { color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ph-linear-flow__count { color: var(--ph-ink); font-size: 24px; font-weight: 680; letter-spacing: -.5px; }
.ph-linear-flow__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ph-ink-3); font-size: 11px; }
.ph-linear-flow__row strong { color: var(--ph-ink-2); font-size: 13px; font-weight: 650; }
.ph-linear-flow__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--ph-border); color: var(--ph-ink-3); font-size: 10.5px; }
.ph-linear-flow__arrow { width: 34px; flex: none; display: grid; place-items: center; align-self: center; color: var(--ph-blue); font-size: 24px; }

.ph-delivery-path { padding: 0; }
.ph-delivery-path__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.ph-delivery-path__heading { display: inline-flex; align-items: center; gap: 10px; color: var(--ph-ink); }
.ph-delivery-path__heading h2 { margin: 0; font-size: 20px; font-weight: 600; }
.ph-delivery-path__icon { width: 20px; height: 20px; opacity: .65; }
.ph-delivery-path__legend { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border: 1px solid #e1e7f0; border-radius: 18px; background: #fff; box-shadow: 0 2px 6px rgba(25, 55, 90, .08); color: #64748b; font-size: 10px; white-space: nowrap; }
.ph-delivery-path__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ph-delivery-path__legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.ph-delivery-path__legend-dot--success { background: #0f9f91; }
.ph-delivery-path__legend-dot--warning { background: #f59e0b; }
.ph-delivery-path__legend-dot--danger { background: #e11d48; }
.ph-delivery-path__legend-line { width: 23px; border-top: 2px dashed #72c5ff; }
.ph-delivery-path__content { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
.ph-delivery-path__main { display: flex; align-items: center; width: 100%; min-width: 0; overflow-x: auto; }
.ph-delivery-path__canvas { position: relative; display: inline-flex; flex: 0 0 auto; width: fit-content; margin-inline: auto; align-items: center; gap: 12px; padding: 16px 4px; }
.ph-delivery-path__node { position: relative; z-index: 1; display: flex; box-sizing: border-box; flex: 0 0 220px; width: 220px; height: 200px; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--ph-border-strong); border-left: 3px solid var(--ph-blue); border-radius: 6px; background: var(--ph-surface); box-shadow: var(--ph-shadow); color: var(--ph-ink); cursor: pointer; text-align: left; transition: background-color .16s ease, border-color .16s ease; }
.ph-delivery-path__node:hover { border-color: var(--ph-blue); background: var(--ph-surface-alt); }
.ph-delivery-path__node.is-active { border-color: var(--ph-blue); background: var(--ph-blue-100); box-shadow: 0 0 0 1px var(--ph-blue); }
.ph-delivery-path__node.ph-stage--success { border-left-color: #0f9f91; }
.ph-delivery-path__node.ph-stage--warning { border-left-color: #f59e0b; }
.ph-delivery-path__node.ph-stage--danger { border-left-color: #e11d48; }
.ph-delivery-path__canvas--without-pros { width: 100%; justify-content: center; gap: 12px; padding: 8px 4px 12px; }
.ph-delivery-path__node.ph-delivery-path__node--sap, .ph-delivery-path__node.ph-delivery-path__node--webmethods, .ph-delivery-path__node.ph-delivery-path__node--cbp { flex: 0 0 280px; width: 280px; height: 152px; padding: 14px; gap: 5px; }
.ph-delivery-path__node.ph-delivery-path__node--sap.ph-stage--success, .ph-delivery-path__node.ph-delivery-path__node--webmethods.ph-stage--success, .ph-delivery-path__node.ph-delivery-path__node--cbp.ph-stage--success { border-left-color: #078753; }
.ph-delivery-path__node.ph-delivery-path__node--sap.ph-stage--warning, .ph-delivery-path__node.ph-delivery-path__node--webmethods.ph-stage--warning, .ph-delivery-path__node.ph-delivery-path__node--cbp.ph-stage--warning { border-left-color: #e4a11b; }
.ph-delivery-path__connector { position: relative; flex: 0 0 26px; width: 26px; height: 2px; background: var(--ph-border-strong); pointer-events: none; }
.ph-delivery-path__connector::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 2px solid var(--ph-border-strong); border-right: 2px solid var(--ph-border-strong); transform: rotate(45deg); }
.ph-delivery-path__node-head { display: flex; align-items: center; gap: 5px; }
.ph-delivery-path__node--pros { align-items: center; justify-content: center; }
.ph-delivery-path__node--pros { flex: 0 0 280px; width: 280px; height: 152px; padding: 14px; gap: 5px; }
.ph-delivery-path__alignment-spacer { flex: 0 0 280px; width: 280px; height: 152px; }
.ph-delivery-path__connector--alignment-placeholder { visibility: hidden; }
.ph-delivery-path__node--pros .ph-delivery-path__node-head { width: 100%; justify-content: center; gap: 9px; }
.ph-delivery-path__node--pros .ph-delivery-path__node-head .ph-stage__name { font-size: 15px; }
.ph-delivery-path__stage-icon { display: inline-grid; width: 28px; height: 28px; flex: none; place-items: center; color: var(--ph-blue); }
.ph-delivery-path__stage-icon img { display: block; width: 18px; height: 18px; opacity: .75; }
.ph-delivery-path__sap-mark { display: grid; width: 42px; height: 24px; flex: none; place-items: center; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); background: #0876c9; color: #fff; font-size: 13px; font-style: italic; font-weight: 800; }
.ph-delivery-path__node-head .ph-stage__name { min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ph-delivery-path__node-status { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--ph-ink-3); font-size: 8px; white-space: nowrap; }
.ph-delivery-path__node-head .ph-dot { flex: none; }
.ph-delivery-path__rows { display: flex; flex-direction: column; gap: 3px; }
.ph-delivery-path__rows--centered { margin-block: auto; }
.ph-delivery-path__rows > span { display: grid; grid-template-columns: 13px minmax(0, 1fr); align-items: start; gap: 2px 4px; padding: 5px 4px; border-radius: 4px; background: #f7fafc; color: #526579; font-size: 9px; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row { min-height: 34px; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 2px; padding: 0; background: transparent; }
.ph-delivery-path__primary-row > b { display: none; }
.ph-delivery-path__primary-row > em { grid-column: 1; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row strong { grid-column: 1; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row--wm { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding-inline: 8px; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row--wm em { grid-column: 1; grid-row: 1; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row--wm strong { grid-column: 2; grid-row: 1; text-align: right; }
.ph-delivery-path__rows--wm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ph-delivery-path__rows--wm > .ph-delivery-path__primary-row--wm { min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 0; }
.ph-delivery-path__rows--wm > .ph-delivery-path__primary-row--wm:last-child { align-items: flex-end; text-align: right; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row em { color: var(--ph-ink-2); font-size: 12px; font-weight: 500; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row strong { color: var(--ph-navy); font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row--wm strong { font-size: 18px; }
.ph-app--dark .ph-delivery-path__rows--pipeline > .ph-delivery-path__primary-row strong { color: var(--ph-ink); }
.ph-delivery-outcome { display: grid; gap: 4px; width: 100%; margin-top: auto; padding-top: 7px; border-top: 1px solid var(--ph-border); font-size: 12px; line-height: 1.3; }
.ph-delivery-outcome__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-delivery-outcome__row > span { display: inline-flex; align-items: center; gap: 7px; }
.ph-delivery-outcome__row b { display: grid; width: 18px; height: 18px; flex: none; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; }
.ph-delivery-outcome__row--success { color: #087a51; }
.ph-delivery-outcome__row--success b { background: #078753; }
.ph-delivery-outcome__row--warning { color: #98610a; }
.ph-delivery-outcome__row--warning b { background: #e4a11b; }
.ph-delivery-outcome__row strong { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.ph-delivery-outcome__row small { font-size: 11px; font-weight: 500; }
.ph-delivery-outcome__variance { font-size: 11px; }
.ph-delivery-path__rows b { grid-row: span 2; color: #0f9f91; font-size: 12px; line-height: 1; }
.ph-delivery-path__rows em { font-style: normal; }
.ph-delivery-path__rows strong { grid-column: 2; color: #0876b7; font-size: 9px; font-weight: 750; text-align: left; overflow-wrap: anywhere; }
.ph-delivery-path__rows small { color: var(--ph-ink-3); font-size: 8px; font-weight: 600; }
.ph-delivery-path__rows .ph-delivery-path__held { color: #e11d48; }
.ph-delivery-path__reconciliation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 8px 12px; }
.ph-idoc-reconciliation { min-width: 0; margin: 0 8px 16px; padding-top: 12px; border-top: 1px solid var(--ph-border); }
.ph-idoc-reconciliation.ph-stage-metrics { padding: 0; overflow: hidden; border: 1px solid var(--ph-border); border-top: 2px solid var(--ph-blue); border-radius: 4px; background: var(--ph-surface); }
.ph-stage-metrics > .ph-idoc-reconciliation__toolbar { margin: 0; padding: 12px 14px; }
.ph-stage-metrics > p[role] { margin: 0; padding: 0 14px 14px; font-size: 13px; line-height: 1.5; }
.ph-stage-metrics > .ph-idoc-reconciliation__metrics th, .ph-stage-metrics > .ph-idoc-reconciliation__metrics td { padding-inline: 14px; }
.ph-stage-metrics > button { margin: 0 14px 14px; }
.ph-idoc-reconciliation__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.ph-idoc-reconciliation__toolbar h3 { margin: 0; font-size: 16px; }
.ph-idoc-reconciliation__toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.ph-idoc-reconciliation__toolbar input, .ph-idoc-reconciliation__toolbar select { max-width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid var(--ph-border); border-radius: 4px; background: var(--ph-surface); color: inherit; font: inherit; }
.ph-idoc-reconciliation__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ph-idoc-reconciliation__systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-idoc-reconciliation__system { min-width: 0; overflow: hidden; border: 1px solid var(--ph-border); border-top: 2px solid var(--ph-blue); border-radius: 4px; background: var(--ph-surface); }
.ph-idoc-reconciliation__system h4 { margin: 0; padding: 12px 14px; color: var(--ph-blue); font-size: 15px; font-weight: 600; }
.ph-idoc-reconciliation__metrics { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; color: var(--ph-ink); }
.ph-idoc-reconciliation__metrics th, .ph-idoc-reconciliation__metrics td { padding: 10px 12px; border-top: 1px solid var(--ph-border); vertical-align: middle; overflow-wrap: anywhere; }
.ph-idoc-reconciliation__metrics thead th { background: var(--ph-surface-alt); color: var(--ph-ink); font-size: 13px; font-weight: 600; text-align: left; }
.ph-idoc-reconciliation__metrics thead th strong { font-size: inherit; font-weight: 600; }
.ph-idoc-reconciliation__metrics th:first-child { width: 75%; }
.ph-idoc-reconciliation__metrics th:nth-child(2) { width: 25%; text-align: right; }
.ph-idoc-reconciliation__metrics tbody th { font-weight: 500; text-align: left; }
.ph-idoc-reconciliation__metrics td:nth-child(2) { text-align: right; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-stage-unprocessed { margin: 0 14px 14px; padding-top: 12px; border-top: 1px solid var(--ph-border); }
.ph-stage-unprocessed__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ph-stage-unprocessed__head h4 { margin: 0; color: var(--ph-ink); font-size: 14px; font-weight: 650; }
.ph-stage-unprocessed__head > span { color: var(--ph-ink-3); font-size: 12px; }
.ph-stage-unprocessed > p { margin: 0 0 10px; color: var(--ph-ink-2); font-size: 13px; }
.ph-idoc-reconciliation__badge { display: inline-block; max-width: 100%; padding: 4px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1.4; }
.ph-idoc-reconciliation__badge--info { color: #175d96; background: #eaf3fc; }
.ph-idoc-reconciliation__badge--success { color: #17633d; background: #e9f6ee; }
.ph-idoc-reconciliation__badge--danger { color: #a52236; background: #fcecef; }
.ph-idoc-reconciliation__badge--warning { color: #875406; background: #fff3d9; }
.ph-idoc-reconciliation__overall { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px 18px; border-left: 4px solid currentColor; background: #f7f9fb; font-size: 14px; font-weight: 600; }
.ph-idoc-reconciliation__overall > div { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.ph-idoc-reconciliation__overall strong { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ph-idoc-reconciliation__overall > div > span { font-size: 12px; }
.ph-idoc-reconciliation__overall--success { color: var(--ph-green); background: var(--ph-green-100); }
.ph-idoc-reconciliation__overall--warning { color: var(--ph-yellow); background: var(--ph-yellow-100); }
.ph-idoc-reconciliation__overall--danger { color: var(--ph-red); background: var(--ph-red-100); }
@media (max-width: 900px) {
    .ph-idoc-reconciliation__systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ph-idoc-reconciliation__systems { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .ph-idoc-reconciliation__toolbar > h3 { width: 100%; }
    .ph-idoc-reconciliation__metrics th, .ph-idoc-reconciliation__metrics td { padding: 9px 6px; }
    .ph-idoc-reconciliation__overall { flex-direction: column; text-align: center; }
    .ph-idoc-reconciliation__overall > div { text-align: center; }
}
.ph-idoc-reconciliation summary { cursor: pointer; font-size: 13px; font-weight: 700; padding: 8px 0; }
.ph-idoc-reconciliation__table { min-width: 650px; }
.ph-idoc-reconciliation__table td { max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
.ph-delivery-path__gap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 10px; border-left: 3px solid #f59e0b; border-radius: 4px; background: #fff8e8; color: #526579; font-size: 11px; }
.ph-delivery-path__gap--success { border-left-color: #0f9f91; background: #eaf8f5; }
.ph-delivery-path__gap--danger { border-left-color: #e11d48; background: #fff0f3; }
.ph-delivery-path__gap strong { color: #092f57; font-size: 14px; }
.ph-delivery-path__reconciliation p { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 4px; background: #fff8e8; color: #7c5a10; font-size: 12px; }
.ph-delivery-path__details { min-width: 0; min-height: 0; padding: 14px; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); background: #fff; box-shadow: var(--ph-shadow); }
.ph-delivery-path__details.ph-delivery-path__details--source { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ph-stage-source { min-width: 0; margin-top: 0; overflow: hidden; border: 1px solid var(--ph-border); border-top: 2px solid var(--ph-blue); border-radius: 4px; background: var(--ph-surface); }
.ph-stage-source > h4 { margin: 0; padding: 12px 14px; color: var(--ph-blue); font-size: 16px; font-weight: 600; }
.ph-stage-source > p[role] { margin: 0; padding: 0 14px 14px; font-size: 13px; line-height: 1.5; }
.ph-stage-source > .ph-idoc-reconciliation__toolbar { margin: 0; padding: 10px 14px; }
.ph-idoc-reconciliation__systems:has(> .ph-idoc-reconciliation__system:only-child) { grid-template-columns: minmax(0, 1fr); }
.ph-stage-source .ph-table-wrap.ph-stage-source__scroll { max-width: 100%; max-height: 480px; overflow: auto; border-right: 0; border-left: 0; border-radius: 0; }
.ph-stage-source .ph-table.ph-stage-source__table { width: max-content; min-width: 100%; table-layout: auto; }
.ph-stage-source .ph-stage-source__table th, .ph-stage-source .ph-stage-source__table td { box-sizing: border-box; min-width: 140px; max-width: 280px; padding: 10px 14px; text-align: center; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; border-right: 0; }
.ph-stage-source .ph-stage-source__table thead th { height: 78px; padding: 0 12px; background: var(--ph-surface-alt); color: var(--ph-ink-3); font-size: 15px; font-weight: 750; }
.ph-stage-source .ph-stage-source__table thead th:first-child { text-align: left; }
.ph-stage-source .ph-stage-source__table tbody td { height: 80px !important; padding: 10px 12px; color: var(--ph-ink-2); font-size: 18px; font-weight: 700; }
.ph-stage-source .ph-stage-source__table tbody td:first-child { text-align: left; }
.ph-stage-source select.ph-source-filter { box-sizing: border-box; display: block; width: 100%; min-width: 112px; height: 56px; margin: 0; padding: 0 16px; border: 0; border-radius: 0; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2317629a' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right center; background-size: 8px 5px; color: var(--ph-ink-3); font: inherit; font-size: 15px; font-weight: 750; text-align: center; text-align-last: center; text-overflow: ellipsis; cursor: pointer; }
.ph-stage-source select.ph-source-filter:focus { outline: 2px solid #1771c7; outline-offset: 1px; }
.ph-stage-source select.ph-source-filter option { background: #fff; color: var(--ph-ink); font-weight: 500; }
.ph-stage-source__table thead th:first-child select.ph-source-filter { padding-left: 12px; text-align: left; text-align-last: left; }
.ph-delivery-path__details-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ph-delivery-path__details-head .ph-kicker { margin: 0; }
.ph-delivery-path__details-placeholder { display: grid; min-height: 150px; align-content: center; justify-items: center; gap: 8px; color: var(--ph-ink-3); text-align: center; }
.ph-delivery-path__details-placeholder .ph-kicker { margin: 0; }
.ph-delivery-path__details-placeholder p:last-child { max-width: 220px; margin: 0; font-size: 12px; }
.ph-delivery-path__details .ph-sap-details { margin: 0; padding: 0; border: 0; background: transparent; }
.ph-delivery-path__details .ph-idoc-tiles { gap: 8px; }
.ph-delivery-path__details .ph-idoc-tile { min-height: 96px; padding: 10px 8px 9px 12px; }
.ph-delivery-path__details .ph-idoc-tile__label { min-height: 0; font-size: 9px; }
.ph-delivery-path__details .ph-idoc-tile strong { font-size: 16px; overflow-wrap: anywhere; }
.ph-delivery-path__details .ph-idoc-tile small { font-size: 9px; }
.ph-delivery-path__details .ph-inline-detail { gap: 9px; padding: 0; border: 0; background: transparent; }
.ph-delivery-path__details .ph-inline-detail__head h3 { overflow-wrap: anywhere; }

.ph-topology {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    grid-template-rows: repeat(2, minmax(190px, auto));
    grid-template-areas: "feedback webmethods cbp" "sap connect-direct ondemand";
    gap: 34px 48px;
    min-height: 510px;
    padding: 48px 4px 26px;
}
.ph-topology__connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ph-topology__line { fill: none; stroke: #1771c7; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.ph-topology__line--dashed { stroke: #76cfff; stroke-dasharray: 8 7; }
.ph-topology__node { position: relative; z-index: 1; width: 100%; min-height: 190px; padding: 16px; color: var(--ph-ink); text-align: left; cursor: pointer; border: 1px solid #55a0ed; border-left: 5px solid var(--ph-blue); border-radius: var(--ph-radius); background: #fff; box-shadow: var(--ph-shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ph-topology__node:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); }
.ph-topology__node.is-active { border-color: var(--ph-blue); box-shadow: 0 0 0 3px rgba(0, 102, 178, .15); }
.ph-topology__node.ph-stage--success { border-left-color: #149b92; }
.ph-topology__node.ph-stage--warning { border-left-color: #f1a915; background: #fffdf5; }
.ph-topology__node.ph-stage--danger { border-left-color: #e51d4a; background: #fffafb; }
.ph-topology__node--sap { grid-area: sap; align-self: center; }
.ph-topology__node--webmethods { grid-area: webmethods; }
.ph-topology__node--cbp { grid-area: cbp; }
.ph-topology__node--connect-direct { grid-area: connect-direct; }
.ph-topology__node--ondemand { grid-area: ondemand; }
.ph-topology__node-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-topology__node-head .ph-stage__name { font-size: 15px; font-weight: 700; }
.ph-topology__node-status { color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ph-topology__node-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ph-ink-3); font-size: 11px; }
.ph-topology__node-row strong { color: var(--ph-ink-2); font-size: 13px; font-weight: 650; }
.ph-topology__node-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--ph-border); color: var(--ph-ink-3); font-size: 10.5px; }

.ph-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 6px; }

.ph-flow__node { display: flex; align-items: center; flex: 1 1 0; min-width: 190px; }

.ph-stage {
    flex: 1; text-align: left; cursor: pointer;
    background: var(--ph-surface-alt);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 13px 14px;
    display: flex; flex-direction: column; gap: 9px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.ph-stage:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); background: #fff; }
.ph-stage.is-active { border-color: var(--ph-blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 102, 178, .15); }

.ph-stage__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-stage__name { font-size: 13.5px; font-weight: 650; }
.ph-stage__index { font-size: 10px; font-weight: 700; color: var(--ph-ink-3); letter-spacing: .1em; }
.ph-stage__total { font-size: 21px; font-weight: 680; letter-spacing: -.5px; }

.ph-stage__bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: #eef2f7; }
.ph-stage__bar i { display: block; height: 100%; }
.ph-stage__bar i:nth-child(1) { background: #22c55e; }
.ph-stage__bar i:nth-child(2) { background: #f1a915; }
.ph-stage__bar i:nth-child(3) { background: #ef4444; }

.ph-stage__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 11px; }
.ph-stage__stats b { display: block; font-size: 13px; font-weight: 650; }
.ph-stage__stats span { color: var(--ph-ink-3); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

.ph-stage__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ph-ink-3); border-top: 1px dashed var(--ph-border); padding-top: 8px; }

.ph-flow__link { width: 26px; display: grid; place-items: center; color: var(--ph-border-strong); flex: none; }
.ph-flow__link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- tables */

.ph-table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.ph-table-tools .ph-block-title { margin: 0; margin-right: auto; }

.ph-search { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--ph-border-strong); border-radius: var(--ph-radius-sm); background: #fff; color: var(--ph-ink-3); min-width: 240px; }
.ph-search input { border: 0; outline: 0; font-size: 13px; width: 100%; color: var(--ph-ink); background: transparent; }

.ph-select {
    appearance: none; padding: 7px 28px 7px 10px; font-size: 13px; cursor: pointer;
    border: 1px solid var(--ph-border-strong); border-radius: var(--ph-radius-sm);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m4 6.5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 13px;
    color: var(--ph-ink);
}

.ph-table-wrap { border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm); overflow: auto; max-height: 360px; }
.ph-table-wrap--flush { max-height: none; }
.ph-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.ph-table thead th {
    position: sticky; top: 0; z-index: 4;
    background: var(--ph-surface-alt);
    height: 52px;
    padding: 0 12px; text-align: left; white-space: nowrap;
    font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ph-ink-3);
    border-bottom: 1px solid var(--ph-border); box-shadow: 0 1px 0 var(--ph-border);
}

.ph-table tbody td { height: 54px !important; padding: 10px 8px; border-bottom: 1px solid #eef2f7; vertical-align: middle; color: var(--ph-ink-2); font-size: 15px; font-weight: 700; }
.ph-detail-rail .ph-table-wrap { overflow-x: hidden; }
.ph-detail-rail .ph-table { table-layout: fixed; min-width: 0; width: 100%; }
.ph-detail-rail .ph-table thead th { white-space: normal; overflow-wrap: anywhere; padding: 8px 6px; font-size: 9.5px; }
.ph-detail-rail .ph-table tbody td { padding: 8px 6px; overflow-wrap: anywhere; word-break: break-word; font-size: 11px; }
.ph-table tbody tr { cursor: pointer; transition: background .14s ease; }
.ph-table tbody tr:nth-child(odd) { background: var(--ph-surface); }
.ph-table tbody tr:nth-child(even) { background: var(--ph-surface-alt); }
.ph-table tbody tr:hover { background: var(--ph-blue-100); }
.ph-table tbody tr.is-active { background: #dbeafe; }
.ph-table tbody tr:last-child td { border-bottom: 0; }
.ph-table--apps td { font-size: 15px; }
.ph-table--changes { table-layout: fixed; min-width: 1710px; }
.ph-table--changes .ph-col--number { width: 170px; }
.ph-table--changes .ph-col--description { width: 360px; }
.ph-table--changes .ph-col--application { width: 260px; }
.ph-table--changes .ph-col--priority { width: 130px; }
.ph-table--changes .ph-col--date { width: 210px; }
.ph-table--changes .ph-col--status { width: 150px; }
.ph-table--changes .ph-col--group { width: 220px; }
.ph-table--changes td:nth-child(5), .ph-table--changes td:nth-child(6) { white-space: nowrap; }
.ph-table .ph-mono { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ph-ink); }
.ph-table .ph-empty { text-align: center; padding: 26px; color: var(--ph-ink-3); }

.ph-table-foot { margin: 8px 0 0; font-size: 11.5px; color: var(--ph-ink-3); }

/* ---------------------------------------------------------- SAP panel */

.ph-sap-overview { display: flex; flex-direction: column; gap: 0; padding: 4px 4px 2px; }
.ph-sap-overview__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 10px 18px; border: 1px solid var(--ph-border-strong); background: #fff; }
.ph-sap-overview__titlebar h3 { margin: 0; color: var(--ph-ink); font-size: 18px; font-weight: 650; letter-spacing: .01em; }
.ph-sap-overview__titlebar > span { display: inline-flex; align-items: center; gap: 9px; color: var(--ph-ink-2); font-size: 14px; font-weight: 650; white-space: nowrap; }
.ph-sap-overview__headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; text-align: center; }
.ph-sap-overview__metric { display: flex; flex-direction: column; gap: 7px; }
.ph-sap-overview__metric span { color: var(--ph-ink-2); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.ph-sap-overview__metric strong { color: var(--ph-ink); font-size: 22px; font-weight: 680; letter-spacing: .1px; }
.ph-sap-overview__drop-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; height: 58px; justify-items: center; }
.ph-sap-overview__drop-lines span { position: relative; width: 2px; height: 35px; margin-top: 3px; background: var(--ph-ink-2); }
.ph-sap-overview__drop-lines span::after { content: ""; position: absolute; left: -4px; bottom: -1px; border-top: 8px solid var(--ph-ink-2); border-left: 5px solid transparent; border-right: 5px solid transparent; }
.ph-sap-process { display: flex; align-items: flex-start; justify-content: center; gap: 0; padding: 4px 0 28px; border-bottom: 1px solid var(--ph-border); }
.ph-sap-process__item { display: flex; min-width: 132px; flex-direction: column; align-items: center; }
.ph-sap-process__node { width: 100%; min-height: 122px; padding: 13px 10px; color: var(--ph-ink); cursor: pointer; background: #fff; border: 1px solid var(--ph-border-strong); border-radius: 3px; box-shadow: none; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ph-sap-process__node:hover { transform: translateY(-2px); border-color: var(--ph-blue); box-shadow: var(--ph-shadow); }
.ph-sap-process__node.is-active { border-color: var(--ph-blue); box-shadow: 0 0 0 3px rgba(0, 102, 178, .14); }
.ph-sap-process__node--warning { border-color: #e8b33d; background: var(--ph-yellow-100); }
.ph-sap-process__node--danger { border-color: #e5737e; background: var(--ph-red-100); }
.ph-sap-process__name { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; }
.ph-sap-process__count { color: var(--ph-ink); font-size: 20px; font-weight: 680; letter-spacing: .02em; }
.ph-sap-process__status { color: var(--ph-ink-2); font-size: 12px; }
.ph-sap-process__health { display: inline-flex; align-items: center; gap: 7px; color: var(--ph-ink-2); font-size: 12px; }
.ph-sap-process__arrow { align-self: center; margin: 0 8px; color: var(--ph-ink-2); font-size: 23px; line-height: 1; }
.ph-sap-overview__exceptions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px 8px 4px; }
.ph-sap-overview__exceptions div { display: flex; align-items: center; gap: 9px; color: var(--ph-ink-2); font-size: 13px; }
.ph-sap-overview__exceptions strong { font-weight: 650; }
.ph-sap-overview__warning { color: var(--ph-ink-2); font-size: 22px; line-height: 1; }

.ph-sap-dashboard { display: flex; flex-direction: column; gap: 18px; }
.ph-sap-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ph-sap-metric {
    position: relative; min-height: 84px; padding: 13px 14px 11px 17px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 7px;
    background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow); overflow: hidden;
}
.ph-sap-metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ph-blue); }
.ph-sap-metric--success::before { background: #16a34a; }
.ph-sap-metric--warning::before { background: #f1a915; }
.ph-sap-metric--danger::before { background: #d71920; }
.ph-sap-metric--info::before { background: #0066b2; }
.ph-sap-metric span { color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.ph-sap-metric strong { color: var(--ph-ink); font-size: 25px; font-weight: 680; letter-spacing: -.7px; line-height: 1; }
.ph-sap-metric--success strong { color: var(--ph-green); }
.ph-sap-metric--warning strong { color: var(--ph-yellow); }
.ph-sap-metric--danger strong { color: var(--ph-red); }
.ph-sap-metric--info strong { color: var(--ph-blue); }

.ph-sap-section { padding-top: 2px; }
.ph-sap-section + .ph-sap-section { border-top: 1px solid var(--ph-border); padding-top: 18px; }
.ph-sap-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ph-sap-section__head h3 { margin: 2px 0 0; color: var(--ph-ink); font-size: 16px; font-weight: 700; }
.ph-sap-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 3px 0 8px; }
.ph-sap-flow__item { display: flex; align-items: center; flex: 1 1 0; min-width: 170px; }
.ph-sap-node {
    width: 100%; min-height: 164px; padding: 14px; color: var(--ph-ink); text-align: left; cursor: pointer;
    border: 1px solid transparent; border-radius: var(--ph-radius); display: flex; flex-direction: column; gap: 7px;
    box-shadow: 0 2px 8px rgba(9, 47, 87, .08); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ph-sap-node:hover { transform: translateY(-2px); box-shadow: var(--ph-shadow-lg); }
.ph-sap-node.is-active { border-color: var(--ph-blue); box-shadow: 0 0 0 3px rgba(0, 102, 178, .16); }
.ph-sap-node--success { background: var(--ph-green-100); border-color: #bde3cd; }
.ph-sap-node--warning { background: var(--ph-yellow-100); border-color: #f2ddb2; }
.ph-sap-node--danger { background: var(--ph-red-100); border-color: #f4c3c9; }
.ph-sap-node__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-sap-node__head strong { font-size: 14px; }
.ph-sap-node__status { color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ph-sap-node__count { margin-top: 5px; color: var(--ph-ink); font-size: 24px; font-weight: 680; letter-spacing: -.7px; line-height: 1; }
.ph-sap-node__label { color: var(--ph-ink-3); font-size: 10px; }
.ph-sap-node__meta { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 9px; border-top: 1px dashed rgba(9, 47, 87, .18); color: var(--ph-ink-2); font-size: 10.5px; }
.ph-sap-flow__arrow { width: 30px; flex: none; display: grid; place-items: center; color: var(--ph-blue); font-size: 23px; font-weight: 500; }
.ph-sap-details { margin-top: 14px; padding: 14px; background: var(--ph-surface-alt); border: 1px solid var(--ph-border); border-left: 3px solid var(--ph-blue); border-radius: var(--ph-radius); }
.ph-sap-details__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ph-sap-details__head h4 { margin: 2px 0 0; font-size: 15px; }
.ph-idoc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ph-idoc-tile { position: relative; min-height: 104px; padding: 13px 12px 11px 16px; overflow: visible; background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm); box-shadow: 0 2px 6px rgba(9, 47, 87, .06); color: var(--ph-ink); text-align: left; }
.ph-idoc-tile::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ph-blue); content: ""; }
.ph-idoc-tile[data-tooltip]::after { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 9px 11px; visibility: hidden; opacity: 0; pointer-events: none; background: #123555; border: 1px solid #214b70; border-radius: 4px; box-shadow: 0 8px 20px rgba(9, 47, 87, .2); color: #fff; content: attr(data-tooltip); font-size: 11px; font-weight: 500; line-height: 1.35; text-align: left; transition: opacity .16s ease, visibility .16s ease; }
.ph-idoc-tile[data-tooltip]:hover, .ph-idoc-tile[data-tooltip]:focus-visible { z-index: 10; }
.ph-idoc-tile[data-tooltip]:hover::after, .ph-idoc-tile[data-tooltip]:focus-visible::after { visibility: visible; opacity: 1; }
.ph-idoc-tile__label { display: block; min-height: 25px; color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ph-idoc-tile strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 720; letter-spacing: 0; line-height: 1.1; }
.ph-idoc-tile small { display: block; min-height: 16px; margin-top: 7px; color: var(--ph-ink-2); font-size: 10.5px; line-height: 1.2; }
.ph-idoc-tile--success { border-color: #bde3cd; background: var(--ph-green-100); }
.ph-idoc-tile--success::before, .ph-idoc-tile--increase::before { background: var(--ph-green); }
.ph-idoc-tile--warning { border-color: #f2ddb2; background: var(--ph-yellow-100); }
.ph-idoc-tile--warning::before { background: var(--ph-yellow); }
.ph-idoc-tile--increase { border-color: #bde3cd; background: var(--ph-green-100); }
.ph-idoc-tile--increase strong, .ph-price-up { color: var(--ph-green); }
.ph-idoc-tile--decrease { border-color: #f4c3c9; background: var(--ph-red-100); }
.ph-idoc-tile--decrease::before { background: var(--ph-red); }
.ph-idoc-tile--decrease strong, .ph-price-down { color: var(--ph-red); }
.ph-idoc-tile--action { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.ph-idoc-tile--action:hover { transform: translateY(-3px); border-color: var(--ph-blue); box-shadow: var(--ph-shadow-lg); }
.ph-idoc-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 28, 49, .58); }
.ph-idoc-modal { width: min(1120px, 100%); max-height: min(700px, calc(100vh - 40px)); overflow: auto; padding: 18px; background: #fff; border: 1px solid var(--ph-border-strong); border-top: 4px solid var(--ph-blue); border-radius: var(--ph-radius); box-shadow: 0 24px 60px rgba(7, 28, 49, .28); }
.ph-idoc-modal .ph-sap-details__head { align-items: center; }
.ph-idoc-modal__title { display: flex; min-width: 0; align-items: baseline; gap: 9px; overflow: hidden; white-space: nowrap; }
.ph-idoc-modal__title .ph-kicker { flex: none; }
.ph-idoc-modal__title h4 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.ph-idoc-modal__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 16px; border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm); background: var(--ph-surface-alt); }
.ph-idoc-modal__summary > div { min-height: 72px; padding: 12px 15px; border-right: 1px solid var(--ph-border); }
.ph-idoc-modal__summary > div:last-child { border-right: 0; }
.ph-idoc-modal__summary span, .ph-idoc-modal__summary small { display: block; color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.ph-idoc-modal__summary strong { display: block; margin-top: 4px; font-size: 19px; line-height: 1.1; }
.ph-idoc-modal__summary small { margin-top: 3px; font-size: 9px; letter-spacing: 0; text-transform: none; }
.ph-idoc-modal .ph-table th { position: sticky; top: 0; background: var(--ph-surface-alt); z-index: 4; }
.ph-idoc-modal .ph-table { table-layout: fixed; min-width: 760px; }
.ph-idoc-modal .ph-table th { box-sizing: border-box; height: auto; min-height: 52px; padding: 10px 12px; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.ph-idoc-modal .ph-table tbody td { height: auto !important; min-height: 54px; padding: 10px 12px; white-space: normal; overflow-wrap: anywhere; word-break: normal; line-height: 1.35; }
.ph-idoc-modal__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.ph-idoc-search { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; color: var(--ph-ink-3); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ph-idoc-search > span { flex: none; white-space: nowrap; }
.ph-idoc-search input { min-width: 0; flex: 1; height: 34px; padding: 7px 10px; border: 1px solid var(--ph-border-strong); border-radius: var(--ph-radius-sm); background: #fff; color: var(--ph-ink); font: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; }
.ph-idoc-search input:focus { border-color: var(--ph-blue); outline: 2px solid rgba(24, 93, 162, .16); outline-offset: 1px; }
.ph-idoc-modal__result-count { flex: none; color: var(--ph-ink-3); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ph-idoc-price-table { max-height: 485px; }
.ph-idoc-detail-table { max-height: 485px; }
.ph-pros-region-cell { white-space: pre-line; }
.ph-pros-region-metrics .ph-table { width: 100%; min-width: 0; table-layout: fixed; }
.ph-pros-region-metrics .ph-table th { white-space: normal; }
.ph-pros-region-metrics .ph-table th:first-child, .ph-pros-region-metrics .ph-table td:first-child { width: 18%; }
.ph-pros-region-metrics .ph-table th:nth-child(2), .ph-pros-region-metrics .ph-table td:nth-child(2) { width: 23%; }
.ph-pros-region-metrics .ph-table th:nth-child(3), .ph-pros-region-metrics .ph-table td:nth-child(3), .ph-pros-region-metrics .ph-table th:nth-child(4), .ph-pros-region-metrics .ph-table td:nth-child(4) { width: 15%; }
.ph-pros-region-metrics .ph-table th:nth-child(5), .ph-pros-region-metrics .ph-table td:nth-child(5) { width: 14%; }
.ph-pros-region-metrics .ph-table th:last-child, .ph-pros-region-metrics .ph-table td:last-child { width: 15%; }
.ph-pros-region-metrics .ph-table thead th { padding: 8px 6px; font-size: 12px; line-height: 1.2; }
.ph-pros-region-metrics .ph-table thead tr:first-child th { white-space: nowrap; }
.ph-pros-region-metrics .ph-table tbody td { padding: 8px 6px; font-size: 13px; overflow-wrap: anywhere; }
.ph-pros-region-metrics .ph-table thead tr.ph-pros-filter-row { height: 48px; background: linear-gradient(90deg, #145a96 0%, #1f7ec8 14%, #0a2f66 32%, #1f7ec8 50%, #0a2f66 68%, #0a2f66 84%, #1f7ec8 100%); }
.ph-pros-region-metrics .ph-table thead tr.ph-pros-filter-row th { height: 48px; padding: 0; background: transparent; color: #fff; }
.ph-pros-region-metrics .ph-pros-picker { display: block; box-sizing: border-box; width: 100%; height: 48px; min-width: 0; padding: 0 12px 0 5px; border: 0; border-radius: 0; outline: 0; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 4px center; background-size: 8px 5px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; text-align: center; text-align-last: center; cursor: pointer; }
.ph-pros-region-metrics .ph-pros-picker:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.ph-pros-region-metrics .ph-pros-picker option { color: #123d7a; background: #fff; text-transform: none; }
.ph-pros-region-metrics .ph-pros-table { border: 1px solid #dfe5ed; border-collapse: collapse; table-layout: fixed; }
.ph-pros-region-metrics .ph-pros-table thead tr.ph-pros-filter-row { height: 48px; background: linear-gradient(90deg, #145a96 0%, #1f7ec8 14%, #0a2f66 32%, #1f7ec8 50%, #0a2f66 68%, #0a2f66 84%, #1f7ec8 100%); }
.ph-pros-region-metrics .ph-pros-table thead th { height: 48px; padding: 0; border: 0; background: transparent !important; color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.ph-pros-region-metrics .ph-pros-table thead th:first-child { padding-left: 12px; text-align: left; }
.ph-pros-region-metrics .ph-pros-table .ph-app-picker { display: block; width: 100%; height: 48px; padding: 0 18px; border: 0; border-radius: 0; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 6px center; background-size: 9px 6px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-align: center; text-align-last: center; text-transform: uppercase; }
.ph-pros-region-metrics .ph-pros-table .ph-app-picker { padding: 0 12px 0 3px; background-position: right 3px center; background-size: 8px 5px; font-size: 11px; letter-spacing: 0; }
.ph-pros-region-metrics .ph-pros-table .ph-app-picker option { color: #123d7a; background: #fff; text-transform: none; }
.ph-idoc-price-table .ph-table { min-width: 980px; }
.ph-idoc-price-table .ph-table th, .ph-idoc-detail-table .ph-table th { position: sticky; top: 0; background: var(--ph-surface-alt); z-index: 4; }
.ph-idoc-price-table .ph-table td { white-space: nowrap; }
.ph-idoc-detail-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 485px; overflow: auto; padding: 2px; }
.ph-idoc-detail-tile { overflow: hidden; border: 1px solid var(--ph-border); border-left: 4px solid var(--ph-blue); border-radius: var(--ph-radius-sm); background: #fff; box-shadow: 0 2px 6px rgba(9, 47, 87, .06); }
.ph-idoc-detail-tile--price { border-left-color: var(--ph-green); }
.ph-idoc-detail-tile__head { min-height: 74px; padding: 11px 12px; background: var(--ph-surface-alt); }
.ph-idoc-detail-tile__head > span { display: block; color: var(--ph-ink-3); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ph-idoc-detail-tile__head strong { display: block; overflow: hidden; margin-top: 4px; color: var(--ph-ink); font-size: 15px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.ph-idoc-detail-tile__head small { display: block; margin-top: 4px; color: var(--ph-ink-2); font-size: 10px; }
.ph-idoc-detail-tile__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-idoc-detail-tile__metrics > span { min-height: 49px; padding: 9px 10px; border-top: 1px solid var(--ph-border); border-right: 1px solid var(--ph-border); color: var(--ph-ink-3); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ph-idoc-detail-tile__metrics > span:nth-child(even) { border-right: 0; }
.ph-idoc-detail-tile__metrics strong { display: block; margin-top: 3px; color: var(--ph-ink); font-size: 15px; letter-spacing: 0; line-height: 1; }
.ph-idoc-detail-tile__metrics small { display: block; margin-top: 4px; font-size: 9px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ph-idoc-detail-tile--price .ph-idoc-detail-tile__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-idoc-detail-tile--price .ph-idoc-detail-tile__metrics > span { min-height: 64px; }
.ph-exception-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ph-range-tabs { display: flex; gap: 4px; padding: 3px; background: var(--ph-surface-alt); border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm); }
.ph-range-tabs button { padding: 6px 9px; border: 0; border-radius: 4px; background: transparent; color: var(--ph-ink-3); cursor: pointer; font-size: 11px; font-weight: 650; }
.ph-range-tabs button:hover, .ph-range-tabs button.is-active { background: #fff; color: var(--ph-blue); box-shadow: var(--ph-shadow); }
.ph-processing-chart { padding: 8px 4px 0; }
.ph-processing-chart svg { width: 100%; height: 220px; overflow: visible; }
.ph-processing-chart__grid line { stroke: var(--ph-border); stroke-dasharray: 3 4; stroke-width: 1; }
.ph-processing-chart__legend { display: flex; justify-content: center; gap: 18px; margin-top: 3px; color: var(--ph-ink-2); font-size: 11px; }
.ph-processing-chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ph-processing-chart__legend i { width: 8px; height: 8px; border-radius: 50%; }
.ph-processing-chart__axis { display: flex; justify-content: space-between; margin: 7px 5px 0 38px; color: var(--ph-ink-3); font-size: 10px; }

.ph-sap { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.3fr) minmax(240px, 1fr); gap: 20px; align-items: start; }

.ph-sap__donut { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ph-donut { position: relative; width: 170px; height: 170px; }
.ph-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ph-donut__center strong { display: block; font-size: 28px; font-weight: 680; letter-spacing: -1px; }
.ph-donut__center span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ph-ink-3); font-weight: 650; }

.ph-sap__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; text-align: center; }
.ph-sap__stats div { background: var(--ph-surface-alt); border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm); padding: 8px 6px; }
.ph-sap__stats b { display: block; font-size: 16px; font-weight: 680; }
.ph-sap__stats span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ph-ink-3); }

.ph-chart { position: relative; height: 170px; }
.ph-chart svg { width: 100%; height: 100%; overflow: visible; }

.ph-cats { display: flex; flex-direction: column; gap: 9px; }
.ph-cat { cursor: pointer; text-align: left; background: none; border: 0; padding: 4px 6px; border-radius: var(--ph-radius-sm); transition: background .16s ease; width: 100%; }
.ph-cat:hover { background: var(--ph-blue-100); }
.ph-cat__top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 6px; }
.ph-cat__top b { font-weight: 650; }
.ph-cat .ph-meter { height: 8px; }

/* ---------------------------------------------------------- pricing system health table */

.ph-incident-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

/* ---------------------------------------------------------- batch job health */

.ph-batch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.ph-batch-card {
    text-align: left; cursor: pointer;
    background: var(--ph-surface-alt);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding: 14px 15px;
    display: flex; flex-direction: column; gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    width: 100%;
}
.ph-batch-card:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); background: #fff; }
.ph-batch-card.is-active { background: #fff; box-shadow: 0 0 0 3px rgba(0, 102, 178, .15); }
.ph-batch-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ph-batch-card__name { font-size: 13.5px; font-weight: 650; }
.ph-batch-card__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ph-ink-3); }
.ph-batch-card__row b { color: var(--ph-ink-2); font-weight: 600; }
.ph-batch-card__failure {
    font-size: 11.5px; color: var(--ph-red);
    background: var(--ph-red-100); border-radius: var(--ph-radius-sm);
    padding: 7px 9px; margin-top: 2px;
}

/* ---------------------------------------------------------- data quality (compact) */

.ph-quality-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ph-quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ph-quote {
    border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm);
    padding: 9px 10px; background: var(--ph-surface-alt);
    display: flex; flex-direction: column; gap: 2px;
}
.ph-quote span { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ph-ink-3); }
.ph-quote strong { font-size: 17px; font-weight: 680; letter-spacing: -.4px; }
.ph-quote--warn { border-color: #f2ddb2; background: var(--ph-yellow-100); }
.ph-quote--button { width: 100%; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.ph-quote--button:hover { border-color: var(--ph-blue); background: #fff; }
.ph-quote--button.is-active { border-color: var(--ph-blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 102, 178, .14); }

/* ---------------------------------------------------------- flow banner */

.ph-flow-banner {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; margin-bottom: 14px;
    border-radius: var(--ph-radius-sm); background: var(--ph-surface-alt); border: 1px solid var(--ph-border);
}
.ph-flow-banner__msg { font-size: 12.5px; color: var(--ph-ink-2); }
.ph-stage--bottleneck { border-color: var(--ph-red); box-shadow: 0 0 0 2px rgba(198, 32, 51, .12); }

/* ---------------------------------------------------------- inline expandable detail sections */

.ph-collapse {
    width: 100%;
    margin-top: 14px;
}
.ph-collapse__inner { overflow: hidden; }

.ph-inline-detail-row { background: transparent; cursor: default; }
.ph-inline-detail-row:hover { background: transparent; }
.ph-inline-detail-cell { padding: 0 !important; border-bottom: 0 !important; }
.ph-inline-detail-row .ph-collapse { margin: 10px 0; }

.ph-inline-detail {
    width: 100%;
    background: var(--ph-surface-alt);
    border: 1px solid var(--ph-border);
    border-left: 3px solid var(--ph-navy);
    border-radius: var(--ph-radius);
    padding: 16px 18px 18px;
    display: flex; flex-direction: column; gap: 12px;
}

.ph-inline-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ph-inline-detail__head h3 { margin: 2px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -.2px; }

.ph-panel-metrics--wide { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.ph-panel-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.ph-panel-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

/* ---------------------------------------------------------- detail metric primitives (shared) */

.ph-panel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ph-panel-metric { border: 1px solid var(--ph-border); border-radius: var(--ph-radius-sm); padding: 9px 11px; background: #fff; }
.ph-panel-metric span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-ink-3); }
.ph-panel-metric strong { font-size: 17px; font-weight: 680; letter-spacing: -.4px; }

.ph-panel-group { display: flex; flex-direction: column; gap: 8px; }
.ph-panel-group .ph-block-title { margin: 4px 0 0; }
.ph-panel-chart { display: flex; flex-direction: column; gap: 6px; }
.ph-chart--panel { height: 160px; }

.ph-panel-notes { display: flex; flex-direction: column; gap: 7px; }
.ph-panel-note {
    font-size: 12px; color: var(--ph-ink-2);
    background: var(--ph-blue-100); border-left: 3px solid var(--ph-blue);
    border-radius: 0 var(--ph-radius-sm) var(--ph-radius-sm) 0; padding: 8px 11px;
}

.ph-panel-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ph-panel-actions .ph-btn { font-size: 12px; padding: 6px 11px; }

/* ---------------------------------------------------------- skeleton / loading */

.ph-skeleton { border-radius: var(--ph-radius); background: linear-gradient(90deg, #e9eef5 25%, #f4f7fb 37%, #e9eef5 63%); background-size: 400% 100%; animation: ph-shimmer 1.3s ease infinite; }
.ph-skeleton--kpi { height: 146px; }
@keyframes ph-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.ph-fade-in { animation: ph-fade .35s ease both; }
@keyframes ph-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ph-loading-spinner { display: inline-flex; align-items: center; gap: 8px; color: var(--ph-ink-3); font-size: 12.5px; }
.ph-loading-spinner__ring {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--ph-border-strong); border-top-color: var(--ph-blue);
    animation: ph-spin .8s linear infinite;
}
.ph-empty-state {
    padding: 24px;
    color: var(--ph-ink-3);
    text-align: center;
    font-size: 13px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1500px) {
    .ph-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ph-sap-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ph-exception-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-batch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-sap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ph-sap__cats { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .ph-topbar__main { gap: 24px; }
    .ph-filters { justify-content: flex-end; }
    .ph-layout { --ph-page-gutter: 24px; padding: 0 var(--ph-page-gutter) 28px; }
    .ph-detail-rail { position: static; max-height: none; }
}

@media (max-width: 1100px) {
    .ph-delivery-path__content { grid-template-columns: minmax(0, 1fr); }
    .ph-delivery-path__details { min-height: 0; max-height: none; }
    .ph-delivery-path__details-placeholder { min-height: 180px; }
}

@media (max-width: 1000px) {
    .ph-topbar__main { flex-wrap: wrap; gap: 12px; }
    .ph-topbar__controls { flex: 1 1 100%; }
    .ph-filters { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) {
    .ph-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-sap-kpis, .ph-exception-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-sap { grid-template-columns: minmax(0, 1fr); }
    .ph-sap__cats { grid-column: auto; }
    .ph-sap-flow { flex-direction: column; align-items: stretch; overflow-x: visible; }
    .ph-sap-flow__item { flex-direction: column; min-width: 0; }
    .ph-sap-flow__arrow { width: auto; height: 28px; transform: rotate(90deg); }
    .ph-idoc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-idoc-modal-backdrop { padding: 10px; }
    .ph-idoc-detail-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-idoc-modal__tools { align-items: center; flex-direction: row; gap: 8px; }
    .ph-idoc-search { gap: 6px; }
    .ph-idoc-search > span { font-size: 9px; }
    .ph-idoc-search input { min-width: 120px; }
    .ph-sap-node { min-height: 142px; }
    .ph-sap-overview__headline, .ph-sap-overview__drop-lines { gap: 10px; }
    .ph-sap-overview__titlebar { align-items: flex-start; flex-direction: column; gap: 7px; }
    .ph-sap-process { justify-content: flex-start; overflow-x: auto; padding-left: 2px; padding-right: 2px; }
    .ph-sap-process__item { min-width: 106px; }
    .ph-sap-process__arrow { margin-left: 4px; margin-right: 4px; }
    .ph-sap-overview__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
    .ph-sap-overview__exceptions { grid-template-columns: 1fr; gap: 11px; padding-left: 2px; }
    .ph-topology { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "sap" "webmethods" "cbp" "connect-direct" "ondemand"; gap: 12px; min-height: 0; padding: 8px 0; }
    .ph-topology__connectors { display: none; }
    .ph-topology__node { min-height: 150px; }
    .ph-linear-flow { align-items: stretch; padding-left: 0; padding-right: 0; }
    .ph-linear-flow__node { min-width: 165px; }
    .ph-linear-flow__arrow { width: 28px; }
    .ph-delivery-path__toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .ph-delivery-path__heading h2 { font-size: 18px; }
    .ph-delivery-path__legend { width: 100%; flex-wrap: wrap; white-space: normal; }
    .ph-field { flex: 1 1 140px; }
    .ph-date-range { width: auto; gap: 6px; }
    .ph-date-range__field { gap: 5px; }
    .ph-date-range__field input[type="date"] { width: 130px; }
    .ph-topbar h1 { font-size: 20px; }
    .ph-topbar__main { align-items: stretch; flex-direction: column; gap: 16px; padding-block: 16px; }
    .ph-topbar__controls { width: 100%; }
    .ph-filters { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .ph-live-status { flex: 1 0 100%; padding: 4px 0; border-left: 0; }
    .ph-section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: visible; }
    .ph-section-nav__item { min-width: 0; padding: 8px; height: 44px; min-height: 44px; }
    .ph-section-nav__label { font-size: 13px; }
    .ph-filters { left: 0; }
    .ph-layout { --ph-page-gutter: 16px; padding: 0 var(--ph-page-gutter) 20px; }
    .ph-card { padding-block: 22px; }
    .ph-card__head h2 { font-size: 18px; }
    .ph-table--network th:first-child, .ph-table--network td:first-child { position: sticky; left: 0; z-index: 3; background: var(--ph-surface); border-right: 1px solid var(--ph-border); }
    .ph-table--network thead th:first-child { z-index: 5; background: var(--ph-surface-alt); }
    .ph-table--network tr:nth-child(even) td:first-child { background: var(--ph-surface-alt); }
    .ph-incidents-section .ph-incident-summary-table { min-width: 920px; }
    .ph-incidents-section .ph-incident-summary-table col.ph-incident-summary-table__application { width: 250px; }
    .ph-incidents-section .ph-incident-summary-table col.ph-incident-summary-table__metric { width: auto; }
    .ph-detail-rail { padding: 12px; }
    .ph-detail-rail .ph-inline-detail__head { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
