/* ============================================================
   Rich tooltip content (US-475)

   MudTooltip teleports its popover to a container outside the component that
   declared it, so a scoped .razor.css can never reach the content -- a rule written
   there compiles to nothing at all when it leads with ::deep, which is how the lender
   gate tooltip shipped unstyled. Rich tooltip CONTENT therefore lives in a global
   sheet; the alternative the app already uses elsewhere is to hand-roll a CSS tooltip
   so it stays in scope (see LwBalanceStat and ClientProjectBudget).

   Everything here is namespaced under its own content class, so nothing leaks into
   plain text tooltips.

   Colours come from the --lw-tooltip-* tokens, which exist precisely because the
   tooltip surface is DARK: the regular status -fg tokens are mixed for white
   backgrounds and go nearly invisible here.
   ============================================================ */

/* Gate detail on a lender payment request: one row per precondition. */
.lw-tip-gates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px;
    text-align: left;
}

.lw-tip-gate {
    display: grid;
    grid-template-columns: 16px 64px auto;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.lw-tip-gate-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

/* Light on dark: the regular success green (#2D7A5F) disappears against the
   tooltip surface, which is what --lw-tooltip-success-fg was added for. */
.lw-tip-gate-icon--met {
    color: var(--lw-tooltip-success-fg);
}

.lw-tip-gate-icon--unmet {
    color: var(--lw-primary-gold);
}

.lw-tip-gate-label {
    font-weight: 600;
    color: var(--lw-white);
}

/* Slightly recessive so the label reads first, but still well clear of the
   surface -- not an opacity knock-down, which is what made this unreadable. */
.lw-tip-gate-detail {
    color: var(--lw-gray-smoke);
}

/* A budget adjustment's description on hover over its title (US-1050, the
   builder's Adjustments tab). Up to 1,000 characters the builder wrote, so it
   wraps at a readable measure and keeps the builder's line breaks. */
.lw-tip-description {
    display: block;
    max-width: 360px;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: var(--lw-white);
}
