/* Workspace switcher in the main window header (task 2.2d.1). Local to the component; rocketservice.css is not touched. */
.rs-workspace-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    max-width: 18rem;
    color: #fff;
    white-space: nowrap;
}

.rs-workspace-switcher .rs-ws-combo {
    min-width: 12rem;
    max-width: 18rem;
}

.rs-workspace-switcher .rs-ws-name,
.rs-workspace-switcher .rs-ws-state {
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.rs-workspace-switcher .rs-ws-state {
    font-weight: 400;
    opacity: 0.85;
}

.rs-workspace-switcher .rs-ws-warning {
    color: #ffd27f;
    opacity: 1;
}

/* A refusal appears below the header; position: fixed so that the header (overflow, fixed height) cannot clip it. */
.rs-workspace-switcher .rs-ws-message {
    position: fixed;
    top: 4.25rem;
    right: 1rem;
    z-index: 3000;
    min-width: 16rem;
    max-width: 26rem;
    padding: 0.6rem 2rem 0.6rem 0.9rem;
    border-radius: 0.25rem;
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffc107;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.rs-workspace-switcher .rs-ws-message-close {
    position: absolute;
    top: 0.25rem;
    right: 0.6rem;
    font-size: 1.1rem;
    line-height: 1;
}

.rs-workspace-switcher .rs-ws-combo.dxbl-disabled,
.rs-workspace-switcher .rs-ws-combo[disabled] {
    opacity: 1;
}
