.ms-opportunities-shell{padding:22px}.ms-opportunities-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.ms-opportunities-heading h1{margin:2px 0}.ms-opportunities-heading small{color:var(--ms-primary,#315bea);font-weight:800;letter-spacing:.08em}.ms-opportunities-heading p{margin:0;color:var(--ms-text-muted,#68758c)}
.ms-opportunity-view-switch{display:flex;padding:3px;border:1px solid var(--ms-border,#dbe3ef);border-radius:11px;background:var(--ms-surface,#fff)}.ms-opportunity-view-switch button{border:0;border-radius:8px;padding:8px 16px;background:transparent;font-weight:750}.ms-opportunity-view-switch .active{background:var(--ms-primary,#315bea);color:#fff}
.ms-opportunities-content{margin-top:14px}.ms-opportunity-kanban{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;overflow-x:auto}.ms-opportunity-stage{display:grid;grid-template-rows:34px auto;grid-auto-rows:auto;align-content:start;min-height:430px;border:1px solid var(--ms-border,#dbe3ef);border-radius:15px;background:var(--ms-surface-subtle,#f6f8fc);overflow:hidden}.ms-opportunity-stage>header{display:grid;gap:3px;padding:14px;background:var(--ms-surface,#fff);border-bottom:1px solid var(--ms-border,#dbe3ef)}.ms-opportunity-stage>header div{display:flex;align-items:center;gap:8px}.ms-opportunity-stage>header i{width:9px;height:9px;border-radius:50%;background:var(--stage-color)}.ms-opportunity-stage>header span,.ms-opportunity-stage>header small{color:var(--ms-text-muted,#68758c);font-size:11px}.ms-opportunity-stage-cards{display:grid;align-content:start;gap:9px;padding:10px}.ms-opportunity-card{display:grid;gap:5px;padding:11px;border:1px solid var(--ms-border,#dbe3ef);border-radius:11px;background:var(--ms-surface,#fff);box-shadow:0 3px 10px rgba(27,45,78,.06);cursor:grab}.ms-opportunity-card span{font-size:11px;color:var(--ms-text-muted,#68758c)}.ms-opportunity-card footer{display:flex;justify-content:space-between;gap:8px;margin-top:5px}.ms-opportunity-empty{padding:28px 12px;text-align:center;color:var(--ms-text-muted,#68758c)}
.ms-opportunity-table-wrap{overflow:auto;border:1px solid var(--ms-border,#dbe3ef);border-radius:14px;background:var(--ms-surface,#fff)}.ms-opportunity-table{width:100%;border-collapse:collapse;white-space:nowrap}.ms-opportunity-table th,.ms-opportunity-table td{padding:12px 14px;border-bottom:1px solid var(--ms-border,#e5eaf2);text-align:left;font-size:12px}.ms-opportunity-table th{background:var(--ms-surface-subtle,#f6f8fc);color:var(--ms-text-muted,#68758c)}.ms-opportunity-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eaf0ff;color:#315bea}.ms-opportunity-status.won{background:#e1f7eb;color:#14804a}.ms-opportunity-status.lost{background:#ffe8ea;color:#b4232f}
#dashboardPipeline.ms-pipeline{display:block;max-width:100%;overflow:hidden}#dashboardPipeline .ms-opportunity-kanban{width:100%;min-width:0;grid-template-columns:repeat(var(--ms-opportunity-stage-count,5),minmax(0,1fr));gap:8px;overflow:visible}#dashboardPipeline .ms-opportunity-stage{min-width:0;min-height:0;border-color:var(--ms-border-color,#dbe3ef);border-radius:var(--ms-radius-md,9px);background:var(--ms-surface-secondary,#f6f8fc)}#dashboardPipeline .ms-opportunity-stage>header{min-width:0;padding:10px;background:var(--ms-surface-primary,#fff);overflow:hidden}#dashboardPipeline .ms-opportunity-stage>header div,#dashboardPipeline .ms-opportunity-stage>header strong,#dashboardPipeline .ms-opportunity-stage>header span,#dashboardPipeline .ms-opportunity-stage>header b,#dashboardPipeline .ms-opportunity-stage>header small{min-width:0;max-width:100%;overflow-wrap:anywhere}#dashboardPipeline .ms-opportunity-stage>header b{font-variant-numeric:tabular-nums}
@media(max-width:1100px){#dashboardPipeline .ms-opportunity-kanban{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.ms-opportunity-kanban{width:max-content;min-width:100%;grid-template-columns:repeat(var(--ms-opportunity-stage-count,5),220px)}#dashboardPipeline .ms-opportunity-kanban{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.ms-opportunities-heading{align-items:start;gap:14px;flex-direction:column}}
@media(max-width:600px){#dashboardPipeline .ms-opportunity-kanban{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){#dashboardPipeline .ms-opportunity-kanban{grid-template-columns:1fr}}

.ms-pipeline-card.is-dashboard-expanded #dashboardPipeline{max-height:none!important;overflow:hidden!important}.ms-dashboard-pipeline-switch{display:flex;gap:8px;margin:8px 0 12px}.ms-dashboard-pipeline-switch button{padding:8px 18px;border:1px solid var(--ms-border-color,#33455e);border-radius:8px;background:transparent;color:var(--ms-text-primary,#e8eef8);font-weight:800}.ms-dashboard-pipeline-switch button[aria-selected="true"]{border-color:var(--ms-accent,#4f7cff);background:color-mix(in srgb,var(--ms-accent,#4f7cff) 20%,transparent)}.ms-dashboard-pipeline-expanded-content{max-height:calc(100vh - 190px);overflow:auto;overscroll-behavior:contain}.ms-pipeline-card.is-dashboard-expanded #dashboardPipeline .ms-opportunity-kanban{grid-template-columns:repeat(var(--ms-opportunity-stage-count,5),minmax(210px,1fr));overflow-x:auto}.ms-pipeline-card.is-dashboard-expanded #dashboardPipeline .ms-opportunity-stage{min-height:0;border-color:var(--omnia-stage-color);background:#101c31;box-shadow:0 0 0 1px color-mix(in srgb,var(--omnia-stage-color) 24%,transparent)}.ms-pipeline-card.is-dashboard-expanded #dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-body{background:#101c31}.ms-pipeline-card.is-dashboard-expanded #dashboardPipeline .ms-opportunity-stage-cards{max-height:calc(100vh - 350px);overflow-y:auto}

/* OMNIA NEXUS R2 — canonical renderer retained; R1W.1 removes its failed thin flow accents. */
/* OMNIA DARK DASHBOARD MASTER R1C — bounded grid retained with full-width semantic headers. */
/* R1W.1 — canonical full-width semantic pipeline headers */
#dashboardPipeline .ms-opportunity-kanban{grid-template-columns:repeat(var(--ms-opportunity-stage-count,1),minmax(112px,1fr));gap:7px;padding:9px 0 0;overflow:hidden}
#dashboardPipeline .ms-opportunity-stage{min-width:0;padding:0;overflow:hidden;border:1px solid var(--omnia-stage-color);border-radius:var(--ms-radius-md);background:var(--ms-surface-secondary)}
.ms-opportunity-stage{--omnia-stage-color:#41617f}
.ms-opportunity-stage>.ms-opportunity-stage-header,#dashboardView.ms-dashboard-nexus #dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-header{box-sizing:border-box;display:flex;flex:0 0 34px;align-self:start;align-items:center;justify-content:center;width:100%;min-width:0;height:34px;min-height:34px;max-height:34px;padding:0 10px;border:0;border-radius:999px;background:var(--omnia-stage-color);clip-path:none;box-shadow:inset 0 -1px rgba(3,15,24,.3),inset 0 1px rgba(255,255,255,.16);overflow:hidden}
#dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-header>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7fbff;font-size:clamp(10px,.78vw,12px);font-weight:850;letter-spacing:.025em;text-shadow:0 1px 2px rgba(0,0,0,.34)}
#dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-body{box-sizing:border-box;display:grid;align-content:start;gap:4px;width:100%;padding:11px;background:var(--ms-surface-secondary)}
#dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-body span,#dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-body small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ms-text-secondary);font-size:11px}
#dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-body b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ms-text-primary);font-size:clamp(11px,.9vw,15px);font-variant-numeric:tabular-nums}
@media(max-width:1100px){#dashboardPipeline .ms-opportunity-kanban{grid-template-columns:repeat(3,minmax(112px,1fr))}}
@media(max-width:600px){#dashboardPipeline .ms-opportunity-kanban{grid-template-columns:1fr;gap:7px;padding-left:15px}}
/* OMNIA DARK VISUAL REFINEMENT R1I — canonical pipeline stage/card hierarchy */
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-stage{background:var(--ms-surface-secondary)}
html:is(.ms-theme-light,.ms-theme-dark) #dashboardPipeline .ms-opportunity-stage>.ms-opportunity-stage-header>strong{color:#f7fbff}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-stage-cards{gap:10px}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card{border-color:color-mix(in srgb,var(--omnia-stage-color) 62%,var(--ms-border-color));background:var(--ms-surface-primary);color:var(--ms-text-primary);box-shadow:0 3px 9px rgba(3,15,24,.14);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card:hover{border-color:var(--omnia-stage-color);box-shadow:0 5px 14px color-mix(in srgb,var(--omnia-stage-color) 18%,transparent);transform:translateY(-1px)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card:is(.selected,.is-selected,[aria-selected="true"]){border-width:2px;border-color:var(--omnia-stage-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--omnia-stage-color) 24%,transparent)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card>strong,html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card footer b{color:var(--ms-text-primary)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card :is(button,span,small){color:var(--ms-text-secondary)}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-card button{padding:0;border:0;background:transparent;text-align:left}
html:is(.ms-theme-light,.ms-theme-dark) .ms-opportunity-empty{color:var(--ms-text-secondary)}

/* Pipeline Configurator R3 — data controls only; R1W8 geometry remains canonical. */
.ms-opportunity-stage>.ms-opportunity-stage-header strong{color:var(--omnia-stage-text,#f7fbff)!important}.ms-opportunity-stage>.ms-opportunity-stage-body{background:var(--omnia-stage-body,var(--ms-surface-secondary,#101c31))!important}
.ms-pipeline-config-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(3,15,24,.72)}.ms-pipeline-config{width:min(980px,100%);max-height:min(88vh,900px);overflow:auto;padding:20px;border:1px solid var(--ms-border-color,#33455e);border-radius:16px;background:var(--ms-surface-primary,#fff);color:var(--ms-text-primary,#172033);box-shadow:0 24px 70px rgba(0,0,0,.35)}.ms-pipeline-config>header{display:flex;justify-content:space-between;gap:16px;align-items:start}.ms-pipeline-config h2,.ms-pipeline-config h3,.ms-pipeline-config p{margin:3px 0}.ms-pipeline-config [data-config-stages]{display:grid;gap:10px;margin:18px 0}.ms-pipeline-config-stage{display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto minmax(130px,.5fr) minmax(130px,.5fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--ms-border-color,#dbe3ef);border-radius:12px}.ms-pipeline-config-stage label,.ms-pipeline-config [data-stage-create] label{display:grid;gap:5px;font-size:12px;font-weight:700}.ms-pipeline-config-stage .check{display:flex;align-items:center;min-height:38px}.ms-pipeline-config-order{display:flex;gap:5px}.ms-pipeline-config button,.ms-pipeline-config input{min-height:40px}.ms-pipeline-config input[type=color]{width:100%;min-width:72px;padding:3px}.ms-pipeline-config [data-stage-create]{display:grid;grid-template-columns:minmax(180px,1fr) 150px 150px auto;gap:10px;align-items:end;padding-top:16px;border-top:1px solid var(--ms-border-color,#dbe3ef)}.ms-pipeline-config [data-stage-create] h3{grid-column:1/-1}
@media(max-width:900px){.ms-pipeline-config-stage{grid-template-columns:auto 1fr 1fr}.ms-pipeline-config-stage>label:first-of-type{grid-column:2/-1}.ms-pipeline-config [data-stage-create]{grid-template-columns:1fr 1fr}.ms-pipeline-config [data-stage-create] h3{grid-column:1/-1}}
@media(max-width:600px){.ms-pipeline-config-backdrop{padding:0;place-items:stretch}.ms-pipeline-config{width:100%;max-height:100vh;border-radius:0;padding:14px}.ms-pipeline-config-stage,.ms-pipeline-config [data-stage-create]{grid-template-columns:1fr 1fr}.ms-pipeline-config-stage>label:first-of-type{grid-column:1/-1}.ms-pipeline-config-stage>button[data-stage-save],.ms-pipeline-config [data-stage-create]>button{grid-column:1/-1}.ms-pipeline-config-order button{min-width:48px;min-height:48px}}

/* OMNIA_LIGHT_STAGE_R41_START */
/* The renderer's inline body color remains authoritative in Dark.
   Light resolves the shared stage token to the canonical elevated surface.
   This single priority overrides the inline token, not header semantics. */
html.ms-theme-light [data-omnia-visual-scope="suite"] .ms-opportunity-stage {
    --omnia-stage-body: var(--ms-surface-secondary) !important;
}
/* OMNIA_LIGHT_STAGE_R41_END */

/* OMNIA_PIPELINE_R1W8_COLOR_OWNER_START */

/*
 * OMNIA Dashboard Pipeline:
 * semantic color belongs exclusively to the compact stage header
 * and to the thin stage outline.
 * Stage surface and body remain dark.
 */

#dashboardView.ms-dashboard-nexus
#dashboardPipeline
.ms-opportunity-stage {
    box-sizing: border-box !important;
    background: var(--omnia-stage-body,#101c31) !important;
    background-color: var(--omnia-stage-body,#101c31) !important;
    border-color: var(--omnia-stage-color) !important;
    overflow: hidden !important;
}

#dashboardView.ms-dashboard-nexus[data-omnia-visual-scope="suite"]
#dashboardPipeline
.ms-opportunity-stage >
.ms-opportunity-stage-header {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 34px !important;
    align-self: start !important;

    width: 100% !important;
    min-width: 0 !important;

    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-top-width: 4px !important;
    border-top-style: solid !important;
    border-top-color: var(--omnia-stage-color) !important;
    border-radius: 999px !important;

    background: var(--omnia-stage-color) !important;
    background-color: var(--omnia-stage-color) !important;

    clip-path: none !important;

    overflow: hidden !important;
}

#dashboardView.ms-dashboard-nexus
#dashboardPipeline
.ms-opportunity-stage >
.ms-opportunity-stage-body {
    box-sizing: border-box !important;
    background: var(--omnia-stage-body,#101c31) !important;
    background-color: var(--omnia-stage-body,#101c31) !important;
}

.ms-pipeline-card.is-dashboard-expanded
#dashboardPipeline
.ms-opportunity-stage {
    background: var(--omnia-stage-body,#101c31) !important;
    background-color: var(--omnia-stage-body,#101c31) !important;
    border-color: var(--omnia-stage-color) !important;
}

.ms-pipeline-card.is-dashboard-expanded
#dashboardPipeline
.ms-opportunity-stage >
.ms-opportunity-stage-body {
    background: var(--omnia-stage-body,#101c31) !important;
    background-color: var(--omnia-stage-body,#101c31) !important;
}

/* OMNIA_PIPELINE_R1W8_COLOR_OWNER_END */
