/* ═══════════════════════════════════════════════════════════════════════════
   PARTNER CO-BRAND — "In partnership with …" (e.g. Imbewu)
   ───────────────────────────────────────────────────────────────────────────
   Per domain: DomainEntity.PartnerName / PartnerLogoPath / ShowPartnerLogo.
   Shown only when the toggle is on AND a logo is uploaded.

   A partner is a CREDIT, not the workspace's owner, so it never enters the
   brand lockup (PayChain symbol + domain mark already sit there at their CI
   minimums). It gets its own quiet plate instead, with clear space around it.

   Neutrals here are the CI Stone family already used on the sidebar (each
   clears 4.5:1 on Obsidian). No brand colour is named — so nothing here can
   un-white-label a domain (see the rule in mis_v2 design notes).
   Loaded LAST (after paychain.forms.css); every selector is unique to this
   feature, so order only matters for the shared .sidebar flex column.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Sidebar plate, above the status card ─────────────────────────────── */
.sidebar .cp-partner {
  flex-shrink: 0;
  margin-top: 16px;
  padding: 12px 14px 14px;
  border: 1px solid #2E2B26;
  border-radius: 13px;
  background: transparent;           /* lighter than the status card: a credit, not a status */
}
.sidebar .cp-partner__label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8A8379;                    /* Stone, 7.0:1 on Obsidian */
  margin: 0 0 10px;
}
.sidebar .cp-partner__logo {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.sidebar .cp-partner__logo img {
  display: block;
  height: auto;
  max-height: 68px;                  /* 2x — Mike, 11 Nov */
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: none;
}
/* SVG partner logos can't be adapted server-side — a clean white plate on Obsidian. */
.sidebar .cp-partner__logo--plate {
  display: inline-flex;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

/* ── 2. MIS sign-in (Ivory form panel) ───────────────────────────────────── */
.auth-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--bc-border, #E4DED2);
}
.auth-partner small {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bc-text-muted, #6E6A63);
}
.auth-partner img {
  display: block;
  max-height: 88px;                  /* 2x — Mike, 11 Nov */
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
/* Partner then the "runs on PayChain" credit — one rule between them, not two. */
.auth-partner + .auth-credit {
  border-top: 0;
  padding-top: 14px;
}

/* ── 3. Domain Create / Edit — the partner group ─────────────────────────── */
.partner-fieldset {
  border: 1px solid var(--bc-border, #E4DED2);
  border-radius: 12px;
  padding: 20px;
}
.partner-fieldset__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}
.partner-fieldset__head .form-switch { white-space: nowrap; padding-top: 2px; }
.partner-current {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--bc-border, #E4DED2);
  border-radius: 10px;
}
.partner-current__plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bc-border, #E4DED2);
  border-radius: 8px;
  padding: 6px 12px;
}
.partner-current__plate img {
  display: block;
  max-height: 32px;
  max-width: 160px;
  object-fit: contain;
}

/* ── 4. Domain Details — status + preview ────────────────────────────────── */
.partner-detail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  text-align: left;
}
.partner-detail__plate { margin: 0 auto; }
.partner-state {
  font-size: .6875rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.partner-state.is-on      { background: #E7F7F1; color: #11845F; }
.partner-state.is-off     { background: #EFECE6; color: #6E6A63; }
.partner-state.is-pending { background: #FFF3E1; color: #94590F; }
