/** Styles for all themes */
.TcHmi_Controls_Beckhoff_TcHmiToggleSwitch {
    grid-template-columns: calc(var(--square-size) + var(--square-size)) minmax(0, 1fr);
}

    .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch.text-left{
        /* 2 columns: [ column1 (text): min 0, max all available space ] [ column2 (radiobutton): min square-size, max square-size + 5px ] */
        grid-template-columns: minmax(0, 1fr) minmax(var(--square-size) + var(--square-size), calc(var(--square-size) + var(--square-size) + 5px));
    }

    .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch .TcHmi_Controls_Beckhoff_TcHmiCheckbox-template .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch-toggle-state-indicator {
        position: relative;
        justify-self: start;
    }

    .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch.TcHmi_Controls_Beckhoff_TcHmiCheckbox-active .TcHmi_Controls_Beckhoff_TcHmiCheckbox-template .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch-toggle-state-indicator {
        justify-self: end;
    }

    .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch.TcHmi_Controls_System_TcHmiControl-operate-disallowed::after,
    .TcHmi_Controls_Beckhoff_TcHmiToggleSwitch.TcHmi_Controls_System_TcHmiControl-disabled::after {
        content: '';
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.5);
        z-index: 100;
    }