/* ==========================================================================
   Entwine · Asset Manager (portfolio) — layout on top of the dashboard tokens
   ========================================================================== */
.pf-body { margin: 0; }
.pf { display: flex; flex-wrap: wrap; min-height: 100vh; }
.pf-nav { width: 232px; flex: 0 0 232px; background: var(--navy); color: #dbe8f5; padding: 22px 16px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
.pf-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.pf-brand img { width: 34px; height: 34px; object-fit: contain; }
.pf-brand b { display: block; font-weight: 700; letter-spacing: .08em; font-size: 13px; color: #fff; }
.pf-brand span { display: block; font-size: 12px; color: #8fb3d9; }
.pf-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #b9d3ea; font-weight: 500; font-size: 15px; text-decoration: none; position: relative; }
.pf-link .ti { width: 20px; text-align: center; font-size: 15px; opacity: .9; }
.pf-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.pf-link[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.pf-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--st-critical); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.pf-navfoot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.pf-mini { background: rgba(255,255,255,.08); border: 0; color: #dbe8f5; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.pf-mini:hover { background: rgba(255,255,255,.14); }
.pf-who { font-size: 12px; color: #8fb3d9; padding: 6px 12px 0; word-break: break-all; }
.pf-main { flex: 999 1 560px; min-width: 0; padding: 26px 32px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pf-eyebrow { font-size: 15px; color: var(--text-muted); }
.pf-head h1 { margin: 2px 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -.01em; font-family: var(--font); }
.pf-sub { font-size: 14px; color: var(--text-secondary); }
.pf-headctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-clock { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pf-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pf-kpi { background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.pf-kpi.hero { background: linear-gradient(135deg, var(--navy, #0f1b35), #1d6fa8); color: #fff; border: 0; }
.pf-kpi .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pf-kpi.hero .k, .pf-kpi.hero .s { color: #b9d3ea; }
.pf-kpi .v { font-size: 36px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-kpi .v small { font-size: 17px; color: var(--text-muted); font-weight: 500; }
.pf-kpi .v.bad { color: var(--st-critical); }
.pf-kpi .s { font-size: 13px; color: var(--text-muted); }
.pf-kpi .s.bad { color: var(--st-critical); font-weight: 500; }
.pf-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.pf-cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-cardhead h2 { margin: 0; font-size: 17px; font-weight: 600; font-family: var(--font); }
.muted { font-weight: 400; color: var(--text-muted); font-size: 13px; }
.pf-more { font-size: 14px; font-weight: 500; color: var(--series-1); text-decoration: none; }
.pf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pf-tablewrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.pf-table th { font-size: 11px; white-space: nowrap; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: left; font-weight: 600; padding: 8px 12px; }
.pf-table td { padding: 13px 10px; border-top: 1px solid var(--grid); vertical-align: middle; }
.pf-table tr.critical td { background: color-mix(in srgb, var(--st-critical) 5%, transparent); }
.pf-table .nm { font-weight: 600; white-space: nowrap; }
.pf-table a.nm { display: block; color: var(--series-1); text-decoration: none; }
.pf-table a.nm:hover { text-decoration: underline; }
.pf-table tbody tr:hover td { background: color-mix(in srgb, var(--series-1) 5%, transparent); }
.pf-table td.store { min-width: 170px; max-width: 230px; }
.pf-table td.nowrap { white-space: nowrap; }
.pf-table .sub { font-size: 12.5px; color: var(--text-muted); }
.pf-table .hv { display: flex; align-items: center; gap: 8px; }
.pf-table .hv b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pf-table .hbar { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: inline-block; }
.pf-table .hbar i { display: block; height: 100%; }
.pf-table .open { text-align: right; }
.pf-table a.go { font-weight: 600; font-size: 13.5px; color: var(--series-1); text-decoration: none; white-space: nowrap; }
.pf-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pf-state.ok { background: var(--wash-ok); color: var(--ink-ok); }
.pf-state.warning { background: var(--wash-warning); color: var(--ink-warning); }
.pf-state.critical { background: var(--wash-critical); color: var(--ink-critical); }
.pf-state.off { background: var(--wash-off); color: var(--text-muted); border: 1px dashed var(--border-strong); }
.pf-state.info { background: var(--wash-info); color: var(--ink-info); }
.pf-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; padding: 0 6px; }
.pf-count.hot { background: var(--st-critical); color: #fff; }
.pf-alerts { display: flex; flex-direction: column; gap: 10px; }
.pf-alert { display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); }
.pf-alert.warning { border-color: color-mix(in srgb, var(--st-warning) 45%, var(--border)); background: color-mix(in srgb, var(--st-warning) 7%, var(--surface-1)); }
.pf-alert.critical { border-color: color-mix(in srgb, var(--st-critical) 40%, var(--border)); background: color-mix(in srgb, var(--st-critical) 6%, var(--surface-1)); }
.pf-alert .bar { width: 8px; border-radius: 4px; flex: none; background: var(--st-info); }
.pf-alert.warning .bar { background: var(--st-warning); } .pf-alert.critical .bar { background: var(--st-critical); }
.pf-alert .body { flex: 1 1 240px; min-width: 0; }
.pf-alert .t { font-weight: 600; font-size: 14px; }
.pf-alert .d { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.pf-alert .ackl { font-size: 12.5px; color: var(--st-info); font-weight: 500; margin-top: 4px; }
.pf-alert .acts { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; margin-left: auto; }
.pf-alert .acts button, .pf-alert .acts a { font: inherit; font-size: 13px; font-weight: 600; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-primary); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.pf-alert .acts button.primary { background: var(--series-1); color: #fff; border-color: var(--series-1); }
.pf-gateways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 13.5px; }
.pf-gw { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.pf-gw.bad { border-color: color-mix(in srgb, var(--st-critical) 40%, var(--border)); background: color-mix(in srgb, var(--st-critical) 6%, var(--surface-1)); }
.pf-gw b { display: block; font-weight: 600; }
.pf-gw span { display: block; color: var(--text-secondary); margin-top: 4px; }
.pf-gw span.bad { color: var(--ink-critical); font-weight: 500; }
.pf-pickrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-picklabel { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; min-width: 64px; }
.pf-pickrow .picker { margin: 0; }
.pf-empty { padding: 26px; text-align: center; color: var(--text-muted); font-size: 14px; }
@media (max-width: 1100px) { .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-two { grid-template-columns: 1fr; } .pf-gateways { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pf-nav { width: 100%; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; } .pf-navfoot { margin-top: 0; flex-direction: row; } .pf-main { padding: 16px; } .pf-kpis { grid-template-columns: 1fr; } }
.pf-table .sub.wx { color: var(--text-secondary); }
