/* ===== nms_reimbursement_html (HTML form) =====
   Loaded eagerly from anvil.yaml native_deps.head_html.

   The card chrome is NOT here. It is the shared .px-card, .px-card-header and .px-card-body, so
   the template carries those shared classes beside its private ones. The body must never be
   anvil:name'd: the dependency drops the card padding
   with .px-card:has(> .px-card-body), a child combinator, and a named element is reparented into an
   <anvil-dropzone> that breaks it. The header IS named, which is why the body is what the card
   padding hangs off.

   Every rule below is scoped :where(.nms-reimb-card), which adds zero specificity and so cannot
   change which rule wins. That includes the one descendant-combinator rule,
   .nms-reimb-month-row strong.

   All the remaining nms-reimb- names are declared in this file alone — checked across client_code,
   theme/assets and the shared dependency — so nothing here ties with theme.css or the dependency's
   runtime-injected sheet and no rule needs a second class. */

:where(.nms-reimb-card) .nms-reimb-grand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

:where(.nms-reimb-card) .nms-reimb-grand-label {
    font-family: var(--px-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--px-text-muted);
}

:where(.nms-reimb-card) .nms-reimb-grand-value {
    font-family: var(--px-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent, #0d9488);
}

:where(.nms-reimb-card) .nms-reimb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

:where(.nms-reimb-card) .nms-reimb-month {
    background: var(--px-bg-elevated);
    border-radius: var(--px-radius-sm);
    padding: 1rem;
}

:where(.nms-reimb-card) .nms-reimb-month-title {
    font-family: var(--px-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--px-text-primary);
    margin-bottom: 0.5rem;
}

:where(.nms-reimb-card) .nms-reimb-month-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--px-font);
    font-size: 0.8rem;
    color: var(--px-text-secondary);
    padding: 0.2rem 0;
}

:where(.nms-reimb-card) .nms-reimb-month-row strong {
    font-family: var(--px-mono);
    font-size: 0.8rem;
    color: var(--px-text-primary);
}

:where(.nms-reimb-card) .nms-reimb-month-total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--px-border);
    font-family: var(--px-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--accent, #0d9488) 70%, var(--px-text-primary));
    text-align: right;
}
