/* ==========================================================================
   Integration Partners page (IntegrationPartners.aspx) — page-specific
   overrides layered on top of grid.css.
   ----------------------------------------------------------------------------
   Scoped via `body.page-integration-partners`. Shared chrome (card, title bar,
   grid, pager, primary CTA pill) comes from grid.css via the additional
   `body.page-grid` class.

   The page has a single ASPxGridView of company tokens and an info banner
   above it explaining token usage. The "Generate New Token" CTA in
   <TitleRight> is rendered as the shared teal pill via grid.css §5.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CTA label — the shared grid.css rule styles the teal pill AND hides the
      inner <img>; this `::before` renders the label text in the same position
      as Inspectors' `lnkNewInspector::before`.
   -------------------------------------------------------------------------- */
body.page-integration-partners a[id$='_btnAddToken']::before {
    content: 'Generate New Token';
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* asp:LinkButton renders <ins>&nbsp;</ins> before its content. In the
   inline-flex + gap pill from grid.css §5 the <ins> becomes a flex item
   and shifts the ::before label off-center. Hide it. */
body.page-integration-partners a[id$='_btnAddToken'] > ins {
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. Info banner — "How to Use Integration Tokens" callout above the grid.
      Light teal surface using the page-grid primary token + neutral text.
      Sits inside .modV2 with the same horizontal extent as the grid.
   -------------------------------------------------------------------------- */
body.page-integration-partners .integration-info-banner {
    background-color: #f0fdfa;
    border: 1px solid #99f6e4;
    border-left: 3px solid var(--q88-grid-primary, #0d9488);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    color: #0f172a;
    font-family: var(--q88-grid-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 13px;
    line-height: 1.5;
}

body.page-integration-partners .integration-info-banner__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--link-hover);
    margin: 0 0 6px 0;
}

/* Tint the legacy AlertInfo icon to match the banner's accent without
   changing the shared sprite. The icon is rendered via mask in components.css
   for sidebar-nav users, so we override `background-color` (the mask paint)
   only — not `background`, which would kill the mask substrate. */
body.page-integration-partners .integration-info-banner__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-color: var(--q88-grid-primary, #0d9488) !important;
}

body.page-integration-partners .integration-info-banner__body {
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   3. Actions column — "Regenerate" custom button is the only command in
      this grid. Right-align like the standard edit column to match the
      sibling page-grid pages' visual rhythm.
   -------------------------------------------------------------------------- */
body.page-integration-partners td.dxgvCommandColumn,
body.page-integration-partners th.dxgvCommandColumn {
    text-align: center;
}
