/* Env-pill + master-status: in sidebar-flow (niet fixed over menu/uitloggen) */

.env-banner,
.env-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #C05621;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    line-height: 1.2;
}

.env-banner span,
.env-pill span {
    display: none; /* host via title-tooltip */
}

.env-banner strong,
.env-pill strong {
    font-weight: 700;
}

/* Login / master: kleine pill linksonder (geen CMS-sidebar) */
body > .env-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10050;
}

.env-banner--dev,
.env-pill--dev {
    background: #C05621;
}

.env-banner--beta,
.env-pill--beta {
    background: #6B46C1;
}

.env-banner--acceptatie,
.env-pill--acceptatie {
    background: #2B6CB0;
}

.env-banner--cloud,
.env-pill--cloud {
    background: #2C7A7B;
}

.env-banner--non-prod,
.env-pill--non-prod {
    background: #744210;
}

/* In sidebar: boven Meer/Uitloggen, sleept mee in layout */
.cms-status-stack--sidebar {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    padding: 8px 12px 10px;
    box-sizing: border-box;
    pointer-events: auto;
}

.cms-status-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.cms-status-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cms-status-card .env-pill {
    box-shadow: none;
    padding: 4px 8px;
    font-size: 10px;
    flex-shrink: 0;
}

.cms-status-card__user {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.cms-status-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cms-status-card__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cms-status-card__app {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-status-card__code {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.cms-status-card button {
    appearance: none;
    width: 100%;
    background: #7EC8E3;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.cms-status-card button:hover {
    background: #5BB6D9;
}

/* Alleen DEV-pill in sidebar */
.cms-status-stack--sidebar > .env-pill {
    margin: 4px 0;
}
