#tl_translation_maintenance {
    border-top: 1px solid var(--border);
}

#tl_translation_maintenance h2 {
    margin: 16px 15px 3px
}

#tl_translation_maintenance fieldset {
    padding-bottom: 15px;
}

#tl_translation_maintenance legend {
    margin-bottom: 3px;
}

#tl_translation_maintenance .tl_submit_container {
    background: none;
}

#tl_page_export {
    border-top: 1px solid var(--border);
}

#tl_page_export .tl_submit_container {
    background: none;
}

/* Environment badge, rendered as the first item of the backend header menu
   (#tmenu) instead of a fixed corner ribbon, so it no longer overlaps the
   preview switch, alerts or other header controls. */
#tmenu .environment-badge {
    display: inline-block;
    margin: 10px 8px 10px 0;
    padding: 4px 10px;
    background: #6b7280;
    color: white;
    text-align: center;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    pointer-events: none;
}

#tmenu .environment-badge--prod {
    background: #10b981;
}

#tmenu .environment-badge--dev {
    background: #ef4444;
}

#tmenu .environment-badge--test {
    background: #f59e0b;
}

#tmenu .environment-badge--local {
    background: #aaa8f9;
}

#tmenu .active ul.menu_level_1 {
    z-index: 10;
}