/* KlienX Teams, Deals and accessible report ribbon. Scoped styles only. */
.kx-funnel-panel { grid-column:1/-1; min-width:0; }
.kx-funnel-scroll { width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:5px 0 12px; }
.kx-funnel-body { min-width:var(--kx-chart-width); width:100%; }
.kx-funnel-labels { display:grid; grid-template-columns:repeat(var(--kx-stage-count),minmax(0,1fr)); border-bottom:1px solid #e5edf6; }
.kx-funnel-label { padding:12px 13px 15px; border-right:1px solid #e5edf6; min-width:0; display:flex; flex-direction:column; gap:4px; color:#294568; }
.kx-funnel-label:first-child { border-left:1px solid #e5edf6; }
.kx-funnel-label span { font-size:12px; font-weight:650; line-height:1.35; overflow-wrap:anywhere; }
.kx-funnel-label strong { font-size:clamp(19px,2vw,27px); color:#122f50; font-weight:800; line-height:1.2; font-variant-numeric:tabular-nums; }
.kx-funnel-label small { font-size:11px; color:#587595; line-height:1.4; }
.kx-funnel-svg { display:block; width:100%; height:auto; aspect-ratio: auto; max-height:275px; }
.kx-funnel-panel .funnel-caption { margin-top:13px; font-size:12px; line-height:1.65; color:#5e7390; }
.kx-team-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr); gap:18px; align-items:start; }
.kx-role-list { display:grid; gap:13px; }
.kx-role-list p { margin:0; border-bottom:1px solid #eaf0f9; padding-bottom:11px; }
.kx-role-list strong { display:block; color:#1b395e; margin-bottom:4px; }
.kx-role-list small { display:block; color:#667c94; font-size:12px; line-height:1.6; }
.kx-feature-note { margin-bottom:16px; }
.kx-inline-editor { min-width:105px; }
.kx-inline-editor summary { color:#2563eb; cursor:pointer; font-weight:600; }
.kx-editor-form { margin-top:10px; display:grid; gap:9px; min-width:200px; max-width:300px; }
.kx-deal-overview { display:grid; grid-template-columns:repeat(6,minmax(135px,1fr)); gap:12px; margin-bottom:15px; }
.kx-stage-card { display:flex; flex-direction:column; border:1px solid #deebf9; background:#fff; border-radius:14px; padding:17px 16px; text-decoration:none; box-shadow:0 2px 8px rgb(35 83 135 / 3%); border-top:4px solid var(--item-color); }
.kx-stage-card:hover { border-color:var(--item-color); transform:translateY(-1px); }
.kx-stage-heading { color:#345574; font-size:12px; font-weight:700; }
.kx-stage-card strong { font-size:28px; line-height:1.5; color:#1b385e; font-variant-numeric:tabular-nums; }
.kx-stage-card small { font-size:11px; color:#8294a9; }
.kx-deal-filters { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:19px; }
.kx-deal-filters .input { flex:1 1 180px; min-width:175px; }
.kx-deal-filters .select { flex:1 1 140px; min-width:135px; max-width:260px; }
.kx-deal-stage { color:var(--item-color) !important; border:1px solid color-mix(in srgb,var(--item-color) 35%,white); background:color-mix(in srgb,var(--item-color) 9%,white); }
.kx-deal-form { max-width:1050px; }
.kx-linked-deal { display:flex; gap:12px; flex-wrap:wrap; justify-content:space-between; margin:0; padding:12px 0; border-bottom:1px solid #e7eef8; }
.kx-linked-deal span { color:#637d96; font-size:13px; }
@media (max-width:1150px) { .kx-deal-overview { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:740px) { .kx-team-grid { grid-template-columns:1fr; } .kx-deal-overview { grid-template-columns:repeat(2,minmax(0,1fr)); } .kx-funnel-labels { min-width:720px; } .kx-funnel-svg { min-width:720px; } }
@media (max-width:400px) { .kx-deal-overview { grid-template-columns:1fr; } }

.kx-readonly-detail { display:grid; grid-template-columns:minmax(95px,1fr) 2fr; gap:12px; margin:0; line-height:1.6; }
.kx-readonly-detail dt { font-weight:700; color:#436481; }
.kx-readonly-detail dd { margin:0; color:#153455; overflow-wrap:anywhere; }
