/* 16A: the form-dialog mobile nav bar (thesis 6A anatomy, promoted from
   thesis.css). Cancel · title · Save on top — Save can never be covered by the
   on-screen keyboard. Used by the thesis editor and the transaction dialog. */

.ij-form-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(env(safe-area-inset-top) + 8px) 16px 10px;
    background: var(--mud-palette-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-text-primary) 10%, transparent);
}

/* Matches the thesis dialog's cancel button today (app-layout.css .ij-link-btn) —
   promoted verbatim so the nav bar renders pixel-identically. */
.ij-form-nav-cancel {
    background: none;
    border: none;
    color: var(--mud-palette-primary);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: opacity 0.15s;
}

.ij-form-nav-cancel:hover {
    opacity: 0.75;
}

.ij-form-nav-title {
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ij-form-nav-save {
    border: none;
    background: transparent;
    padding: 4px 2px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--mud-palette-primary);
    cursor: pointer;
}

.ij-form-nav-save:disabled {
    color: var(--mud-palette-text-disabled);
    cursor: default;
}
