/*
 * Credentialing admin helpers.
 * Sticky "jump to" section nav + floating "back to top" button for the
 * (very long) Provider change page. Activated by admin_credentialing_jump_nav.js,
 * which only builds the nav on the Provider add/change page.
 */

#cred-jump-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #6a6a6a;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 0 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

#cred-jump-nav .cred-jump-who {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    background: #F48472;
    padding: 3px 12px;
    border-radius: 12px;
    margin-right: 8px;
    white-space: nowrap;
}

#cred-jump-nav .cred-jump-label {
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    margin-right: 4px;
}

#cred-jump-nav a {
    color: #fff;
    background: #417690;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
}

#cred-jump-nav a:hover,
#cred-jump-nav a:focus {
    background: #F48472;
}

/* Keep anchored sections clear of the sticky nav when jumped to. */
.inline-group {
    scroll-margin-top: 80px;
}

#cred-back-to-top {
    position: fixed;
    bottom: 24px;
    left: 280px; /* fallback; JS pins it to the content column's left edge */
    z-index: 1000;
    background: #F48472;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

#cred-back-to-top:hover {
    background: #e06a57;
}

@media (max-width: 768px) {
    #cred-jump-nav {
        font-size: 11px;
    }
    #cred-jump-nav a {
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* "Backfill Credentialing Tables" button on the Provider changelist */
.cred-backfill-btn {
    background-color: #F48472;
    color: #fff;
    padding: 3px 12px;
    border-radius: 15px;
    text-decoration: none;
}

.cred-backfill-btn:hover,
.cred-backfill-btn:focus {
    background-color: #e06a57;
    color: #fff;
}

p.cred-backfill-note,
p.cred-backfill-applied {
    background: #f0f1f4;
    border-left: 4px solid #F48472;
    padding: 10px 14px;
    border-radius: 4px;
    max-width: 720px;
}

p.cred-backfill-applied {
    border-left-color: #10b981;
}
