:root { --brand: #0b3d91; --brand-2: #1363df; --muted-bg: #f4f6fa; }
body { background: var(--muted-bg); font-size: .92rem; }
.bg-brand { background: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.card { border: none; box-shadow: 0 1px 3px rgba(16,24,40,.08); }
.kpi .value { font-size: 1.6rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.kpi .label { color: #6b7280; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table { font-size: .87rem; }
.table thead th { background: #eef2f8; font-weight: 600; white-space: nowrap; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; }
.page-title { font-weight: 600; margin-bottom: .75rem; }

/* Org chart */
.org ul { padding-left: 1.4rem; border-left: 2px dashed #c7d2e5; margin-left: .6rem; list-style: none; }
.org > ul { border-left: none; padding-left: 0; margin-left: 0; }
.org li { margin: .35rem 0; }
.org .node { display: inline-block; background: #fff; border: 1px solid #d6deeb; border-radius: 8px; padding: .35rem .6rem; }
.org .node.dm { border-color: #f59f00; box-shadow: 0 0 0 2px #fff3bf; }

/* Chat widget */
#chat-toggle { position: fixed; right: 22px; bottom: 22px; width: 64px; height: 64px; z-index: 1050; padding: 0;
  border: 3px solid #fff; border-radius: 50%; background: #29c5e6; overflow: hidden; transition: transform .15s; }
#chat-toggle:hover { transform: scale(1.08); }
#chat-toggle img { width: 100%; height: 100%; object-fit: cover; }
#chat-panel { position: fixed; right: 22px; bottom: 90px; width: 440px; max-width: calc(100vw - 32px); height: 560px;
  max-height: calc(100vh - 120px); z-index: 1050; display: flex; flex-direction: column; }
#chat-panel.d-none { display: none !important; }
#chat-body { overflow-y: auto; flex: 1; background: #f8fafc; padding: .75rem; }
.msg { max-width: 88%; padding: .5rem .7rem; border-radius: 12px; margin-bottom: .5rem; word-wrap: break-word; }
.msg ul { padding-left: 1.1rem; margin: .3rem 0; }
.msg p { margin: 0 0 .3rem; }
.msg.bot { background: #fff; border: 1px solid #e5e9f2; }
.msg.me { background: var(--brand); color: #fff; margin-left: auto; }
#chat-buttons { display: flex; flex-wrap: wrap; gap: .3rem; max-height: 120px; overflow-y: auto; }
#chat-buttons .btn { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; }
.typing { color: #94a3b8; font-style: italic; }
@media (max-width: 576px) { #chat-panel { right: 8px; left: 8px; width: auto; bottom: 84px; } }

/* RAG badges */
.rag-green { background: #2b8a3e; color: #fff; }
.rag-amber { background: #f59f00; color: #212529; }
.rag-red { background: #c92a2a; color: #fff; }
.rag-gray { background: #adb5bd; color: #212529; }
:root { --rag-green: #2b8a3e; --rag-amber: #f59f00; --rag-red: #c92a2a; --rag-gray: #adb5bd; }

/* WellsPro / NiRa branding */
.brand-logo { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: #29c5e6; }
.chat-head-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: #29c5e6; }
.bot-row { display: flex; align-items: flex-end; gap: .4rem; margin-bottom: .5rem; }
.bot-row .msg { margin-bottom: 0; }
.bot-avatar { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; background: #29c5e6; }
.login-hero { max-height: 460px; filter: drop-shadow(0 6px 14px rgba(11,61,145,.15)); }
.brand-title { color: var(--brand); letter-spacing: .01em; }
.auth-avatar { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 6px 16px rgba(11,61,145,.18); }
.auth-tabs .nav-link { border: 1px solid #d6deec; color: var(--brand); }
.auth-tabs .nav-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.auth-tabs .nav-item:first-child .nav-link { border-radius: .4rem 0 0 .4rem; }
.auth-tabs .nav-item:last-child .nav-link { border-radius: 0 .4rem .4rem 0; }

/* Mphasis + Wells Fargo account branding */
:root { --acct-red: #d71e28; --acct-gold: #ffcd41; }
.by-mphasis { color: #fff; }
.mphasis-chip { background: #fff; border-radius: 6px; padding: 3px 8px; display: inline-flex; align-items: center; }
.mphasis-chip img { height: 22px; }
.mphasis-word { font-weight: 800; letter-spacing: .02em; color: #fff; font-size: 1.05rem; }
.mphasis-word-lg { color: var(--brand); font-size: 1.6rem; }
.login-mphasis { max-height: 48px; max-width: 220px; }
.account-banner { background: var(--acct-red); color: #fff; border-bottom: 4px solid var(--acct-gold); padding: .45rem 0; }
.account-banner .acct-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.account-banner .acct-tag { background: var(--acct-gold); color: #3b2f00; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  border-radius: 4px; padding: .1rem .4rem; }
.account-banner .acct-logo { height: 26px; background: #fff; border-radius: 4px; padding: 2px 4px; }
.account-banner .acct-stats b { color: var(--acct-gold); }
.account-banner .acct-by b { color: #fff; }
.login-account { display: inline-flex; align-items: center; gap: .4rem; background: var(--acct-red); color: #fff; font-weight: 700;
  border-bottom: 3px solid var(--acct-gold); border-radius: 6px; padding: .3rem .8rem; }
.login-account img { height: 22px; background: #fff; border-radius: 3px; padding: 1px 3px; }
.app-footer { border-top: 1px solid #e5e9f2; }

/* Landing / portfolio */
.rag-strip { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #eef2f8; min-width: 70px; }
.rag-strip span { display: block; height: 100%; }
.kpi-accent { box-shadow: inset 4px 0 0 var(--acct-gold), 0 1px 3px rgba(16,24,40,.08); }
.tile { transition: transform .12s, box-shadow .12s; border-left: 4px solid transparent; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11,61,145,.12); border-left-color: var(--brand-2); }
.tile .tile-icon { width: 42px; height: 42px; border-radius: 10px; background: #eaf1ff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: 0 0 42px; }
.hero { background: linear-gradient(120deg, var(--brand) 0%, #1d5fc8 100%); color: #fff; border-radius: 14px; }
.hero .hero-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: #29c5e6; }
.hero .crumb { opacity: .85; font-size: .85rem; }
.hero .lens { background: rgba(255,255,255,.18); border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; }
.port-card { border-top: 4px solid var(--brand-2); }
.port-card.acct-wf { border-top-color: var(--acct-red); }
.section-title { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; margin: 1.2rem 0 .6rem; }
.account-banner.banner-neutral { background: #12326b; border-bottom-color: var(--acct-gold); }

/* ---------- Public home (sign in / sign up) – Mphasis.com-style ---------- */
:root { --mp-navy: #0a1230; --mp-cyan: #29abe2; --mp-magenta: #e6007e; --mp-purple: #7a2d8c; }
.pub-bar { background: #fff; border-bottom: 1px solid #e8ebf2; padding: .7rem 0; position: sticky; top: 0; z-index: 1020; }
.pub-logo { height: 40px; }
.pub-sep { width: 1px; height: 28px; background: #d9dde7; }
.pub-product { font-weight: 700; color: var(--mp-navy); display: inline-flex; align-items: center; gap: .4rem; font-size: 1.05rem; }
.pub-product img { width: 30px; height: 30px; border-radius: 50%; }
.btn-pub-outline { border: 1.5px solid var(--mp-navy); color: var(--mp-navy); border-radius: 999px; padding: .35rem 1.2rem; font-weight: 600; }
.btn-pub-outline:hover, .btn-pub-outline.active { background: var(--mp-navy); color: #fff; }
.btn-pub-grad { background: linear-gradient(90deg, var(--mp-cyan), var(--mp-magenta) 60%, var(--mp-purple)); color: #fff; border: none;
  border-radius: 999px; padding: .35rem 1.3rem; font-weight: 600; }
.btn-pub-grad:hover, .btn-pub-grad.active, .btn-pub-grad:focus { filter: brightness(1.08); color: #fff !important; }
form .btn-pub-grad { border-radius: .5rem; }
.pub-hero { position: relative; overflow: hidden; color: #fff; padding: 3.2rem 0 9rem;
  background: radial-gradient(1200px 400px at 85% 0%, rgba(230,0,126,.22), transparent 60%),
              radial-gradient(900px 380px at 10% 100%, rgba(41,171,226,.22), transparent 60%),
              linear-gradient(120deg, #070d24 0%, #0f1c4d 55%, #2a0f4d 100%); }
.pub-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--mp-cyan), var(--mp-magenta), var(--mp-purple), #8cc63f); }
.pub-hero-compact { padding: 2rem 0 2.2rem; }
.pub-hero-art { position: absolute; right: 0; top: 0; height: 100%; width: 55%; pointer-events: none; }
.pub-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; opacity: .8; margin-bottom: .6rem; }
.pub-title { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; margin-bottom: .8rem; }
.pub-hero-compact .pub-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.grad-text { background: linear-gradient(90deg, #5cc8f2, #ff4fa8 60%, #b46ad0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-sub { font-size: 1.1rem; max-width: 640px; opacity: .9; margin-bottom: 1.2rem; }
.pub-chips { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 720px; }
.pub-chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.pub-main { padding-top: 0 !important; }
.auth-card { margin-top: -6.5rem; border-radius: 14px; box-shadow: 0 18px 40px rgba(10,18,48,.18); position: relative; z-index: 2; }
.nira-stage { position: relative; margin-top: -7.5rem; height: 540px; z-index: 1; }
.nira-hero { height: 540px; position: absolute; right: 6rem; bottom: 0; filter: drop-shadow(0 14px 24px rgba(10,18,48,.25)); }
.nira-bubble { position: absolute; right: -.5rem; top: 8.6rem; background: #fff; color: var(--mp-navy); border-radius: 14px; padding: .6rem .9rem;
  box-shadow: 0 8px 22px rgba(10,18,48,.18); font-size: .92rem; max-width: 200px; z-index: 3; }
.nira-bubble::before { content: ""; position: absolute; left: 34px; bottom: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: #fff; }
.nira-bubble i { color: var(--mp-magenta); }
@media (max-width: 991.98px) { .pub-hero { padding-bottom: 7.5rem; } .auth-card { margin-top: -5.5rem; } }

/* Newsletter */
.nl-viewer { width: 100%; height: 78vh; border: 0; border-radius: .5rem; display: block; }
#chat-body .nl-card { border-left: 3px solid var(--brand); padding-left: .5rem; }
#chat-body .nl-card-title { font-weight: 700; color: var(--brand); }
#chat-body ul { padding-left: 1.1rem; margin-bottom: .3rem; }

/* NiRa AI answers */
#chat-body .nira-table { font-size: .78rem; margin: .3rem 0; background: #fff; }
#chat-body .nira-table th { white-space: nowrap; }
#chat-body details.nira-how { font-size: .72rem; color: #6b7280; margin-top: .3rem; }
#chat-body details.nira-how code { display: block; white-space: pre-wrap; font-size: .7rem; color: #374151;
  background: #f4f6fa; padding: .3rem; border-radius: 4px; }

/* Today's meetings: bell + login pop-up */
.notif-menu { width: 330px; max-height: 420px; overflow: auto; }
.notif-item { white-space: normal; border-bottom: 1px solid #eef1f6; padding: .5rem .9rem; }
.notif-count { font-size: .65rem; }
.login-notice { z-index: 1090; margin-top: 56px; }
.login-notice .toast { width: 340px; background: #fff; opacity: 1; }
.login-notice .toast-body a:hover { background: #f4f6fa; }

/* ================= Account launchpad (WellsPro) ================= */
.lp-main { background: #fff; }
.lp { max-width: 1180px; margin: 0 auto; }
.lp-head { display: grid; grid-template-columns: 180px 1fr 180px; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 12px; background: linear-gradient(90deg, #22b3c9 0%, #1d8fd6 50%, #2a63d6 100%); color: #fff;
  box-shadow: 0 4px 14px rgba(29,111,214,.25); }
.lp-logo img { max-height: 58px; max-width: 170px; background: #fff; border-radius: 6px; padding: 4px 8px; display: block; }
.lp-logo-right { justify-self: end; }
.lp-logo-word { font-weight: 800; font-size: 1.1rem; background: #fff; color: #12326b; border-radius: 6px; padding: 8px 12px; }
.lp-title { text-align: center; }
.lp-title h1 { font-size: 2.3rem; font-weight: 800; margin: 0; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.lp-sub { color: #ffd43b; font-weight: 700; font-size: .95rem; }
.lp-crumb { margin: 10px 4px 0; color: #555; }
.lp-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center; margin-top: 18px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; }
.lp-tile { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1f2329; position: relative; }
.lp-art { width: 100%; aspect-ratio: 1 / .94; max-width: 170px; border: 1.5px solid #8d939b; background: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lp-tile:hover .lp-art { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20,60,120,.16); border-color: #1d8fd6; }
.lp-name { font-weight: 700; margin-top: 8px; font-size: .98rem; }
.lp-tile:hover .lp-name { color: #1d6fd6; }
.lp-art-ring { width: 74%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--c); display: flex;
  align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.lp-art-ring i { font-size: clamp(2.8rem, 4.6vw, 3.6rem); line-height: 1; }
.lp-art-word { color: var(--c); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.lp-art-word i { font-size: .9em; }
.lp-art-soon { font-weight: 800; color: #6c7178; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.15; text-align: center; }
.lp-art-img { max-width: 86%; max-height: 86%; object-fit: contain; }
.lp-soon-tag { position: absolute; top: 6px; right: calc(50% - 80px); background: #ffd43b; color: #3b2f00; font-size: .62rem;
  font-weight: 800; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; }
.lp-tile.is-soon .lp-art { border-style: dashed; }
.lp-nira { text-align: center; }
.lp-nira-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.lp-nira-btn img { max-width: 100%; max-height: 430px; transition: transform .2s; }
.lp-nira-btn:hover img { transform: scale(1.02) rotate(-1deg); }
.lp-nira-text { font-weight: 700; font-size: 1.08rem; color: #1f2329; margin-top: 6px; }
.lp-nira-text b { color: #d71e28; font-weight: 800; }
.lp-foot { text-align: right; color: #d71e28; font-size: .8rem; font-weight: 700; margin: 18px 6px 4px; }
@media (max-width: 991px) {
  .lp-body { grid-template-columns: 1fr; }
  .lp-nira { order: -1; } .lp-nira-btn img { max-height: 240px; }
  .lp-head { grid-template-columns: 100px 1fr 100px; } .lp-title h1 { font-size: 1.6rem; } .lp-logo img { max-height: 40px; max-width: 96px; }
}
@media (max-width: 520px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .lp-sub { font-size: .75rem; } }

/* Pro-app hub pages */
.pro-hero { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 12px; background: #fff;
  border: 1px solid #e3e8f0; border-left: 6px solid var(--c); }
.pro-hero-art { width: 92px; height: 92px; flex: 0 0 92px; display: flex; align-items: center; justify-content: center; }
.pro-hero-art .lp-art-ring i { font-size: 2.2rem; }
.pro-hero-art .lp-art-ring { width: 84px; }
.pro-hero-art .lp-art-word { font-size: 1.4rem; }
.pro-hero-art .lp-art-soon { font-size: 1rem; }

/* Pro Apps mega menu + account switcher */
.pro-mega { padding: .75rem; min-width: min(720px, 94vw); }
.pro-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; }
.pro-mega-head { display: block; font-weight: 700; color: var(--c) !important; text-decoration: none; padding: .25rem 1rem; }
.pro-mega-head:hover { text-decoration: underline; }
.pro-mega-col .dropdown-item { font-size: .86rem; padding: .15rem 1rem .15rem 1.6rem; }
.pro-mega-soon { display: block; font-size: .78rem; color: #888; padding: 0 1rem 0 1.6rem; }
@media (max-width: 991px) { .pro-mega { min-width: 0; } .pro-mega-grid { grid-template-columns: 1fr 1fr; } }
.acct-switch .btn { white-space: nowrap; }
/* The Wells Times masthead */
.times-head { border-top: 4px solid #1f2329; border-bottom: 1px solid #1f2329; padding: 6px 0 8px; text-align: center; }
.times-head .times-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 2rem; letter-spacing: .02em; }
.times-head .small { color: #6c7178; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.times-head .times-mast { max-width: min(520px, 90%); height: auto; display: block; margin: 4px auto 6px; }
.lp-tile .lp-art-img[alt="TheWellsTimes"] { max-width: 80%; max-height: 80%; }
/* Contact us */
.contact-card { border-top: 4px solid var(--brand-2); }
.contact-avatar { width: 110px; height: 110px; border-radius: 50%; background: #e8f6fb; flex: 0 0 110px; }

/* ================= Left menu (V2.0) ================= */
:root { --sb-w: 252px; --sb-rail: 64px; --sb-bg: #0b2f6e; --sb-bg-2: #0a275b; }
body.with-sb .app-main { margin-left: var(--sb-w); transition: margin-left .2s; min-height: 100vh; display: flex; flex-direction: column; }
body.with-sb .app-main > main { flex: 1 0 auto; }
body.with-sb.sb-collapsed .app-main { margin-left: var(--sb-rail); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 1040; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sb-bg) 0%, var(--sb-bg-2) 100%); color: #dfe8f7; transition: width .2s, transform .2s;
  box-shadow: 2px 0 10px rgba(0,0,0,.08); }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; white-space: nowrap; overflow: hidden; }
.sb-brand:hover { color: #fff; }
.sb-toggle { border: 0; background: rgba(255,255,255,.08); color: #fff; width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; }
.sb-toggle:hover { background: rgba(255,255,255,.18); }
.sb-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 8px 8px 12px; scrollbar-width: thin; }
.sb-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #8fa6cf; padding: 14px 10px 4px; }
.sb-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 8px; color: #dfe8f7;
  text-decoration: none; white-space: nowrap; font-size: .92rem; border: 0; background: none; text-align: left; position: relative; }
.sb-link > .bi:first-child { font-size: 1.12rem; width: 22px; text-align: center; flex: 0 0 22px; color: var(--c, inherit); }
.sb-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.sb-link.active { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 3px 0 0 #ffcd41; }
.sb-text { overflow: hidden; text-overflow: ellipsis; }
.sb-caret { margin-left: auto; font-size: .75rem; transition: transform .2s; opacity: .7; }
.sb-group[aria-expanded="true"] .sb-caret { transform: rotate(180deg); }
.sb-badge { margin-left: auto; }
.sb-soon { margin-left: auto; font-size: .62rem; text-transform: uppercase; background: rgba(255,205,65,.2); color: #ffcd41; border-radius: 4px; padding: 1px 5px; }
.sb-sub { padding: 2px 0 6px 44px; }
.sb-sub a { display: block; color: #b9c9e6; text-decoration: none; font-size: .84rem; padding: 4px 8px; border-radius: 6px; white-space: normal; line-height: 1.25; }
.sb-sub a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sb-subhead { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa6cf; padding: 6px 8px 2px; }
.sb-date { display: block; font-size: .72rem; color: #8fa6cf; }
.sb-acct { margin-bottom: 4px; }
.sb-acct-btn { background: rgba(255,255,255,.1); }
.sb-acct-btn.dropdown-toggle::after { margin-left: auto; }
.sb-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 8px; }
.sb-user small { display: block; font-size: .72rem; color: #8fa6cf; }
.sb-user .sb-text { line-height: 1.15; }
.sidebar .dropdown-menu { z-index: 1060; }
.sidebar .notif-menu { width: 330px; max-height: 70vh; overflow-y: auto; }
/* collapsed rail */
body.sb-collapsed .sidebar { width: var(--sb-rail); }
body.sb-collapsed .sb-text, body.sb-collapsed .sb-caret, body.sb-collapsed .sb-sub, body.sb-collapsed .sb-section,
body.sb-collapsed .sb-acct-btn.dropdown-toggle::after { display: none !important; }
body.sb-collapsed .sb-head { flex-direction: column; gap: 8px; padding: 10px 6px; }
body.sb-collapsed .sb-toggle .bi { transform: rotate(180deg); display: inline-block; }
body.sb-collapsed .sb-link { justify-content: center; padding: 10px 0; }
body.sb-collapsed .sb-badge { position: absolute; top: 2px; right: 6px; font-size: .6rem; }
body.sb-collapsed .sb-nav > .sb-link + .sb-section, body.sb-collapsed .sb-nav { padding-top: 6px; }
/* phones: slide-in */
.sb-mobile-toggle, .sb-backdrop { display: none; }
@media (max-width: 991.98px) {
  body.with-sb .app-main, body.with-sb.sb-collapsed .app-main { margin-left: 0; }
  .sidebar, body.sb-collapsed .sidebar { width: var(--sb-w); transform: translateX(-100%); }
  body.sb-collapsed .sb-text, body.sb-collapsed .sb-caret, body.sb-collapsed .sb-section { display: revert !important; }
  body.sb-collapsed .sb-sub { display: revert !important; }
  body.sb-collapsed .sb-link { justify-content: flex-start; padding: 8px 10px; }
  body.sb-open .sidebar { transform: none; }
  .sb-mobile-toggle { display: flex; align-items: center; justify-content: center; position: fixed; top: 10px; left: 10px; z-index: 1035;
    width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--sb-bg); color: #fff; font-size: 1.4rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1039; }
  body.with-sb .account-banner .container-fluid { padding-left: 60px !important; }
  body.with-sb main.container-fluid { padding-top: 58px !important; }
  body.with-sb .account-banner ~ main.container-fluid, body.with-sb .account-banner ~ * main { padding-top: 1rem !important; }
}
/* Sign-in page (V2.0): heading, form card and NiRa side by side - no banner */
.login-main { background: radial-gradient(1200px 500px at 85% 20%, #e6f4fb 0%, rgba(230,244,251,0) 60%), #f6f8fc; min-height: 100vh; }
.login-wrap { padding-top: 4vh; }
.login-title { text-align: center; font-weight: 800; color: #10224a; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; margin: 1rem 0 2rem; }
.login-title .grad-text { background: linear-gradient(90deg, #1d6fd6, #d71e28); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-sub { display: block; font-size: .5em; font-weight: 600; color: #4a5875; margin-top: .4rem; }
.login-sub b { color: #d71e28; font-weight: 800; }
.login-main .auth-card { margin-top: 0; }
.login-nira { max-width: 100%; max-height: 64vh; filter: drop-shadow(0 14px 22px rgba(16,34,74,.18)); }
/* Pro-app access checklist (sign-up and admin user forms) */
.pro-check .pro-check-btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-check .dropdown-menu { max-height: 320px; overflow-y: auto; }
/* Mphasis-theme header band on Sign In / Sign Up / Forgot Password */
.mp-head { position: relative; overflow: hidden; color: #fff; padding: 2.4rem 0 2.2rem; text-align: center;
  background: radial-gradient(1200px 400px at 85% 0%, rgba(230,0,126,.25), transparent 60%),
              radial-gradient(900px 380px at 10% 100%, rgba(41,171,226,.25), transparent 60%),
              linear-gradient(120deg, #070d24 0%, #0f1c4d 55%, #2a0f4d 100%); }
.mp-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #29abe2, #e6007e, #8e2d8c, #8cc63f); }
.mp-head-art { position: absolute; right: 0; top: 0; height: 100%; width: 50%; pointer-events: none; }
.mp-title { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; margin: 0; }
.mp-grad { background: linear-gradient(90deg, #5cc8f2, #ff4fa8 60%, #c58cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-sub { margin-top: .45rem; font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.25rem); color: #cfd8f0; }
.mp-sub b { color: #ff4fa8; font-weight: 800; }
.login-main .login-wrap { padding-top: 2.2rem; }
.pro-check .form-check-input:disabled + .form-check-label { opacity: .55; }
.login-main { padding-left: 0 !important; padding-right: 0 !important; }
.lp-tile .lp-art-img[alt="SourcingPro"] { max-width: 94%; }

/* ================= Ribbon: one header for every page (Mphasis theme + Wells / Mphasis logos) ================= */
.ribbon { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 400px at 85% 0%, rgba(230,0,126,.25), transparent 60%),
              radial-gradient(900px 380px at 10% 100%, rgba(41,171,226,.25), transparent 60%),
              linear-gradient(120deg, #070d24 0%, #0f1c4d 55%, #2a0f4d 100%); }
.ribbon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #29abe2, #e6007e, #8e2d8c, #8cc63f); }
.ribbon-art { position: absolute; right: 0; top: 0; height: 100%; width: 45%; pointer-events: none; }
.ribbon-inner { position: relative; display: grid; grid-template-columns: 190px 1fr 190px; align-items: center; gap: 12px;
  padding: 10px 22px 14px; }
.ribbon-logo img { display: block; max-height: 44px; max-width: 180px; background: #fff; border-radius: 8px; padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ribbon-logo-right { justify-self: end; }
.ribbon-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: .9rem; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ribbon-title { text-align: center; min-width: 0; }
.ribbon-title h1 { font-weight: 800; font-size: 1.5rem; margin: 0; line-height: 1.15; letter-spacing: .01em; }
.ribbon-sub { color: #ffd43b; font-weight: 700; font-size: .85rem; margin-top: 2px; }
.ribbon-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; font-size: .78rem; color: #cfd8f0; margin-top: 4px; }
.ribbon-meta b { color: #ffd43b; }
.ribbon-lg .ribbon-inner { padding: 22px 28px 26px; grid-template-columns: 220px 1fr 220px; }
.ribbon-lg .ribbon-logo img { max-height: 62px; max-width: 210px; }
.ribbon-lg .ribbon-title h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.ribbon-lg .ribbon-sub { font-size: clamp(.9rem, 1.5vw, 1.15rem); }
.rb-grad { background: linear-gradient(90deg, #5cc8f2, #ff4fa8 60%, #c58cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ribbon-sub b { color: #ff4fa8; font-weight: 800; }
/* the sign-in pages use the pink initials; the app pages use the gold subtitle */
.login-main .ribbon-sub { color: #cfd8f0; }
.lp-main { padding-top: 1rem !important; }
@media (max-width: 991.98px) {
  .ribbon-inner, .ribbon-lg .ribbon-inner { grid-template-columns: 1fr; justify-items: center; padding: 12px 14px 16px; gap: 8px; }
  body.with-sb .ribbon-inner { padding-top: 58px; }
  .ribbon-logo-right { justify-self: center; }
  .ribbon-logo img { max-height: 34px; }
  .ribbon-art { width: 70%; opacity: .6; }
}
/* one ribbon size everywhere */
.ribbon-inner { grid-template-columns: 210px 1fr 210px; padding: 14px 24px 18px; min-height: 116px; }
.ribbon-logo img { max-height: 54px; max-width: 200px; }
.ribbon-title h1 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.ribbon-sub { font-size: clamp(.85rem, 1.2vw, 1rem); }
@media (max-width: 991.98px) {
  .ribbon-inner { grid-template-columns: 1fr 1fr; grid-template-areas: "l r" "t t"; justify-items: stretch; min-height: 0; gap: 8px;
    padding: 12px 14px 16px; }
  body.with-sb .ribbon-inner { padding-left: 62px; }
  .ribbon-inner > .ribbon-logo:first-child { grid-area: l; justify-self: start; }
  .ribbon-logo-right { grid-area: r; justify-self: end; }
  .ribbon-title { grid-area: t; }
  .ribbon-logo img { max-height: 36px; max-width: 130px; padding: 3px 6px; }
  .ribbon-title h1 { font-size: 1.35rem; }
  .ribbon-sub { font-size: .8rem; }
}

/* ===== Ribbon style E (chosen): bright Mphasis gradient, logos in white pills ===== */
.ribbon { background: linear-gradient(90deg, #0a7cb5 0%, #209c92 50%, #3ec867 100%); }  /* T1: blue to green */
.ribbon::after, .ribbon-art { display: none; }
.ribbon-logo img { border-radius: 999px; padding: 6px 16px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.ribbon-chip { border-radius: 999px; background: #fff; color: #10224a; border: 0; }
.ribbon-title h1 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.18); }
.ribbon-sub, .login-main .ribbon-sub { color: #fff; opacity: .95; }
.ribbon-sub b { color: #ffd43b; }
.ribbon-meta { color: #f1f4ff; } .ribbon-meta b { color: #fff; }
.ribbon .rb-grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; }
/* footer: version left, account note centre */
.app-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.app-footer .ft-mid { text-align: center; font-weight: 600; color: #4a5875; }
@media (max-width: 575.98px) { .app-footer { grid-template-columns: 1fr; text-align: center; } .app-footer .ft-right { display: none; } }
/* user + today's meetings at the top of the menu */
.sb-top { border-bottom: 1px solid rgba(255,255,255,.08); padding: 6px 8px; }
/* footer always visible at the bottom of the sign-in / sign-up pages too */
.app-main { min-height: 100vh; display: flex; flex-direction: column; }
.app-main > main { flex: 1 0 auto; }
.login-main { min-height: 0 !important; }
.login-main .login-wrap { padding-top: 1.6rem; }
.login-nira { max-height: 52vh; }
/* sign-in / sign-up: keep the footer in view even when the form is taller than the window */
body:not(.with-sb) .app-footer { position: sticky; bottom: 0; z-index: 10; background: #f4f6fa; }
/* banner logos: shown at their exact pixel size (1x/2x/3x files) so they stay sharp - no browser rescaling */
.ribbon-logo img.rb-logo { height: 54px; width: auto; max-width: none; max-height: none; padding: 6px 16px; box-sizing: border-box; }
@media (max-width: 991.98px) { .ribbon-logo img.rb-logo { height: 40px; padding: 4px 10px; } }

/* ===== Crisp banner text: a real web font (Poppins, OFL licence, served locally) instead of faked extra-bold system text ===== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../vendor/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
.ribbon-title h1, .ribbon-sub, .ribbon-meta { font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.ribbon-title h1 { font-weight: 700; letter-spacing: .005em; text-shadow: none; }
.ribbon-sub { font-weight: 500; letter-spacing: .01em; }
.ribbon-meta { font-weight: 500; }

/* ================= SourcingPro (WISE) ================= */
.wise-slicers { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.wise-slicer { border: 1px solid #c9d3e3; background: #fff; border-radius: 6px; padding: 6px 10px 8px; min-width: 150px; flex: 1 1 150px; max-width: 230px; }
.wise-slicer label { display: block; font-size: .82rem; color: #4a5875; margin-bottom: 3px; font-weight: 600; }
.wise-clear { background: #2f8a5b; color: #fff; font-weight: 700; font-size: .85rem; padding: 12px 14px; border-radius: 6px; }
.wise-clear:hover { background: #26724b; color: #fff; }
.wise-section { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; color: #5b1f6e; text-align: center; margin-bottom: 6px; }
.wise-tiles { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; }
.wise-tile-col { display: flex; flex-direction: column; gap: 10px; }
.wise-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid #b9c2d0;
  border-radius: 4px; padding: 10px; text-decoration: none; flex: 1; min-height: 78px; transition: box-shadow .15s, transform .15s; }
.wise-tile:hover { box-shadow: 0 6px 16px rgba(16,34,74,.12); transform: translateY(-1px); }
.wise-tile .n { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.wise-tile .l { font-weight: 700; font-size: .92rem; }
.wise-tile.big .n { font-size: 3.4rem; }
.wise-tile.sm .n { font-size: 1.35rem; } .wise-tile.sm .l { font-size: .8rem; text-align: center; }
.wise-tile.demand .n, .wise-tile.demand .l { color: #3f51b5; }
.wise-tile.sourced .n, .wise-tile.sourced .l { color: #ee7d4f; }
.wise-table { background: #fff; border: 1px solid #c9d3e3; border-radius: 4px; overflow: hidden; height: 100%; }
.wise-table-head { background: #3f8f63; color: #fff; text-align: center; font-weight: 600; padding: 6px; font-size: 1.02rem; }
.wise-table th { font-weight: 700; background: #fff; border-bottom: 2px solid #9aa6b8; white-space: nowrap; }
.wise-table td a { text-decoration: none; font-weight: 600; }
.wise-grp td { font-weight: 700; background: #f4f7fb; }
.wise-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #29abe2, #8e2d8c); width: var(--w); min-width: 2px; }
.wise-st { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #eef1f6; color: #3d4a63; }
.wise-st.st-in-progress { background: #e7efff; color: #2a55c4; }
.wise-st.st-offered { background: #e5f6ec; color: #1f7a48; }
.wise-st.st-to-be-offered { background: #fff3dc; color: #946200; }
.wise-st.st-awaiting-tfg-clearance { background: #fde8ec; color: #b42346; }
.wise-st.st-closed { background: #e9e9ef; color: #555; }
.wise-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.wise-stages span { background: #f2f5fa; border: 1px solid #dde3ee; border-radius: 6px; padding: 3px 10px; font-size: .8rem; }
.wise-stages b { color: #2a55c4; margin-left: 4px; }
@media (max-width: 767.98px) { .wise-tiles { grid-template-columns: 1fr 1fr; } .wise-tile.big { grid-column: 1 / -1; } .wise-slicer { max-width: none; } }
.lp-tile .lp-art-img[alt="StageCoach"] { max-width: 94%; }
/* a lone tile in the last row (The Wells Times) sits in the middle column */
.lp-grid > .lp-tile:nth-child(3n+1):last-child { grid-column: 2; }
@media (max-width: 520px) { .lp-grid > .lp-tile:nth-child(3n+1):last-child { grid-column: auto; } }

/* stakeholder photos (CustomerPro) */
.sh-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid #dfe3ea; background: #fff; }
.sh-av-md { width: 40px; height: 40px; }
.sh-av-lg { width: 76px; height: 76px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(20,40,80,.18); }
.sh-av-init { display: inline-flex; align-items: center; justify-content: center; background: #eef2f8; color: #5b6270; font-weight: 700; font-size: 1.5rem; }
.sh-photo-form label { cursor: pointer; }
/* CustomerPro > Stakeholders (Power BI layout) */
.sh-slicers .wise-slicer { min-width: 120px; }
.sh-slicers .wise-clear { line-height: 1.15; font-size: .8rem; }
.sh-card { overflow: hidden; border: 1px solid #cfd6de; }
.sh-head { background: #1f6f78; color: #fff; font-weight: 700; text-align: center; padding: .35rem .75rem; letter-spacing: .01em; }
.sh-chip { background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 .55rem; font-weight: 500; font-size: .8rem; margin-left: .4rem; }
.sh-chip a { color: #fff; text-decoration: none; margin-left: .25rem; }
.sh-scroll { max-height: 300px; overflow-y: auto; }
.sh-sum th, .sh-sum td { text-align: center; border-right: 1px solid #e3e7ec; }
.sh-sum thead th { position: sticky; top: 0; background: #f4f6f9; z-index: 1; }
.sh-sum td a { text-decoration: none; }
.sh-sum tr.sel td, .sh-sum td.sel { background: #e7eef7; }
.sh-sum td.sel { outline: 2px solid #1f6f78; outline-offset: -2px; font-weight: 700; }
.sh-sum tfoot td { font-weight: 700; background: #f4f6f9; position: sticky; bottom: 0; }
.sh-det thead th { background: #f4f6f9; white-space: nowrap; border-right: 1px solid #e3e7ec; }
.sh-det td { border-right: 1px solid #eef1f4; }
.sh-slicers { flex-wrap: nowrap; overflow-x: auto; }
.sh-slicers .wise-slicer { flex: 1 1 0; min-width: 108px; }
.sh-slicers .wise-slicer label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sh-slicers .wise-clear { flex: 0 0 auto; }
@media (max-width: 900px) { .sh-slicers { flex-wrap: wrap; } }
.sh-slicers { gap: 8px; }
.sh-slicers .wise-slicer { min-width: 92px; padding: 5px 8px 7px; }
.sh-slicers .wise-clear { padding: .35rem .6rem; }
@media (max-width: 1350px) { .sh-slicers { flex-wrap: wrap; } .sh-slicers .wise-slicer { flex: 1 1 130px; } }
