/*
 * No flag on a language tab (US 42908, task 43201): the tabs of localized fields, of the classification store
 * and of translatableManyToManyObjectRelation show only the language name. Business asked for it: a flag names
 * a country, not a language.
 *
 * Hidden, not removed: the core sets the flag as the tab's iconCls (pimcore_icon_language_<lang>), and the
 * Quill AI tools (bundles/pimcorequill/public/custom-modules/ai-tools.js) read the current language from that
 * class on the active tab. Dropping the iconCls in JS would leave them without a language; hiding the icon
 * element keeps the class in the DOM.
 *
 * Scoped to tabs (.x-tab): the language switcher of the object toolbar and its menu are buttons, not tabs,
 * and keep their flags.
 */
.x-tab .x-tab-icon-el[class*="pimcore_icon_language_"] {
    display: none;
}

/*
 * The theme keeps 20px of a tab's text width for the icon (max-width: calc(100% - 20px) on .x-tab-inner). With
 * the icon hidden the button shrinks to the text, so that reserve would cut every language name short
 * ("Ge..." for German): give the text its whole width back on the tabs whose icon is hidden above.
 */
.x-tab-button:has(> .x-tab-icon-el[class*="pimcore_icon_language_"]) .x-tab-inner {
    max-width: none;
}
