/* View-as impersonation banner. Visible on every authenticated page
 * while the admin is viewing the app as another role, with an exit
 * button to drop back to their normal identity.
 *
 * Yellow/amber for high contrast — the banner is a safety signal
 * (mutations are blocked, audit is duplicating the admin's name), not
 * decorative. Sticks to the top of the page above any sidebar/content. */

.view-as-banner {
    position: sticky;
    top: 0;
    z-index: 9500;
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    color: #78350f;
    font-size: 0.88rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.view-as-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.view-as-banner svg {
    color: #92400e;
    flex-shrink: 0;
}

.view-as-banner-label {
    flex: 1;
    min-width: 0;
}

.view-as-banner-label strong {
    color: #78350f;
    font-weight: 600;
}

.view-as-banner-form {
    margin: 0;
}

.view-as-banner-exit {
    border: 1px solid #92400e;
    background: #fff;
    color: #78350f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.view-as-banner-exit:hover {
    background: #92400e;
    color: #fff;
}

/* Role-edit head: actions row wraps the view-as + delete buttons. */
.mr-head-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.mr-head-actions form {
    margin: 0;
}
