.controls {
    position: relative;
    width: 100%; height: 100%;
    overflow: auto;
}

.controls *:not(.widget){
    user-select: none;
}

.controls my-elem-group {
    position: relative;
    display: block;
    width: 100%; height: auto;
    background-color: #fafbfc;
    overflow: hidden;
    transition: opacity 0.5s;
}

.controls my-elem-group.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.controls my-elem-group > .title {
    position: relative;
    display: block;
    box-sizing: border-box;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.7rem;
    line-height: 1.8rem;
    /* min-height: 5rem; */
    padding: 1.6rem 2rem;
    padding-right: 5rem;
    background-color: #f3f5f8;
    transition: background-color 0.3s;
    /* border-bottom: 1px solid #888888; */
    border-left: 6px solid transparent;
    color: #555;
    cursor: pointer;
}

.controls my-elem-group.requared > .title {
    border-left: 6px solid #be3d3d;
}

.controls my-elem-group > .title:hover {
    background-color: #e2e4e7;
}
.controls my-elem-group > .title::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
    right: 3rem; top: 50%; width: 1.5rem; height: 1.5rem;
    border-bottom: 3px solid #be3d3d;
    border-right: 3px solid #be3d3d;
    transform: translate(50%,-50%) rotate(-45deg);
    transition: transform 0.3s;
}

.controls my-elem-group.open > .title::after {
    transform: translate(50%,-1.06rem) rotate(45deg);
}

.controls my-elem-group .children {
    display: block;
    box-sizing: border-box;
    overflow: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s, transform 0.4s;
    /* border-bottom: 1px solid #a2a2a2; */
}

.controls my-elem-group.open .children {
    opacity: 1;
    transform: scale(1);
}



.controls my-elem-group .children .control {
    display: flex;
    flex-direction: row;
    width: 100%;
    pointer-events: all;
    padding: 0.2rem 0;
}

.controls my-elem-group .children .control:first-child {
    margin-top: 0.6rem;
}

.controls my-elem-group .children .control:last-child {
    margin-bottom: 0.6rem;
}
.controls my-elem-group .children .control > .title {
    position: relative;
    display: flex;
    align-items: center;
    width: 55%;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    padding: 0.3rem 1rem 0.3rem 2rem;
    /* background-color: rgba(255,0,0,0.3); */
    color: #222;
}

.controls my-elem-group .children .control > .widget {
    position: relative;
    display: block;
    width: 45%;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    line-height: 4rem;
    min-height: 4rem;
    padding: 0 2rem 0 1rem;
    /* background-color: rgba(0,255,0,0.3); */
    color: #222;
}

.controls my-elem-group .children .control:not(:last-child) {
    /* border-bottom: 1px solid rgba(0,0,0,0.2); */
}


/* CHECKABLE GROUP */
/* CHECKABLE GROUP */
/* CHECKABLE GROUP */
/* CHECKABLE GROUP */
/* CHECKABLE GROUP */
/* CHECKABLE GROUP */
/* CHECKABLE GROUP */


.controls my-elem-group.checkbox > .title  {
    padding-left: 5rem;
}

.controls my-elem-group.checkbox > .title input[type='checkbox'] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    position: absolute;
    left: 1rem; top: 50%; transform: translateY(-50%);
    margin: 0;
    width: 2.6rem; height: 2.6rem;
    border-radius: 10rem;
    background: #ffffff;
    border: 1px solid #E1E5ED;
    cursor: pointer;
    pointer-events: none;
}

.controls my-elem-group.checkbox > .title input[type='checkbox']:hover {
    outline: 2px solid #be3d3d;
}

.controls my-elem-group.checkbox > .title input[type='checkbox']:checked {
    background-color: #be3d3d;
}

.controls my-elem-group.checkbox > .title input[type='checkbox']:checked::after {
    content: '';
    display: block;
    position: absolute;
    box-sizing: border-box;
    left: 50%; top: 50%;
    width: 35%; height: 50%; transform: translate(-50%,-66%) rotate(45deg);
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    pointer-events: none;
}












/* WIDGET CHECKBOX */
/* WIDGET CHECKBOX */
/* WIDGET CHECKBOX */
/* WIDGET CHECKBOX */
.controls my-elem-group .children .control.checkbox > .title {
    width: 100%;
}

.controls my-elem-group .children .control.checkbox > .widget {
    display: flex;
    align-items: center;
    width: 8rem;
}    

.controls my-elem-group .children .control.checkbox > .widget  input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    position: relative;
    left: calc(100% - 3rem); 
    width: 2.6rem; height: 2.6rem;
    border-radius: 0.7rem;
    background: #ffffff;
    border: 1px solid #E1E5ED;
    transition: outline 0.2s;
    outline: 2px solid transparent;
}

.controls my-elem-group .children .control.checkbox {
    cursor: pointer;
}

.controls my-elem-group .children .control.checkbox:hover > .widget  input {
    outline: 2px solid #be3d3d;
    pointer-events: none;
}

.controls my-elem-group .children .control.checkbox > .widget  input:checked {
    background-color: #be3d3d;
}

.controls my-elem-group .children .control.checkbox > .widget  input:checked::after {
    content: '';
    display: block;
    position: absolute;
    box-sizing: border-box;
    left: 50%; top: 50%;
    width: 35%; height: 50%; transform: translate(-50%,-66%) rotate(45deg);
    border-bottom: 3px solid white;
    border-right: 3px solid white;
}





/* BUTTON WIDGET */
/* BUTTON WIDGET */
/* BUTTON WIDGET */
/* BUTTON WIDGET */
.controls my-elem-group .children .control.button > .widget {
    width: 100%; text-align: center;
} 

.controls my-elem-group .children .control.button > .widget button {
    appearance: none;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: auto; height: 4rem;
    padding: 0 3rem;
    border-radius: 10rem;
    background-color: #ffffff;
    border: 1px solid #E1E5ED;
    margin: 0.2rem;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    color: #222;
    transition: background-color 0.2s, color 0.2s, outline-color 0.2s;
    outline: 2px solid transparent;
    cursor: pointer;
    /* opacity: 0.2; */
} 

.controls my-elem-group .children .control.button > .widget button:hover,
.controls my-elem-group .children .control.button > .widget button:active {
    border: 1px solid #be3d3d;
    outline: 2px solid #be3d3d;
    /* color: #fff; */
} 

.controls my-elem-group .children .control.button > .widget button:active {
    background-color: #be3d3d;
    color: #fff;
} 

.controls my-elem-group.skiped .children .control.button > .widget button {
    background-color: #be3d3d;
    color: #fff;
}



/* SELECT WIDGET */
/* SELECT WIDGET */
/* SELECT WIDGET */
/* SELECT WIDGET */
.controls my-elem-group .children .control.select > .widget {
    width: 100%;
} 

.controls my-elem-group .children .control.select > .widget button {
    appearance: none;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%; 
    min-height: 4rem;
    padding: 0.6rem 3rem;
    border-radius: 10rem;
    background-color: #ffffff;
    border: 1px solid #E1E5ED;
    margin: 0.6rem;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    color: #222;
    transition: background-color 0.2s, color 0.2s, outline-color 0.2s;
    outline: 2px solid transparent;
    cursor: pointer;
    /* opacity: 0.2; */
} 

.controls my-elem-group .children .control.select > .widget button:hover,
.controls my-elem-group .children .control.select > .widget button:active {
    border: 1px solid #be3d3d;
    outline: 2px solid #be3d3d;
    /* color: #fff; */
} 

.controls my-elem-group:not(.skiped) .children .control.select > .widget button.selected {
    background-color: #be3d3d;
    border: 1px solid #be3d3d;
    color: #fff;
    outline: none;
} 






/* WIDGET NUMBER  */
/* WIDGET NUMBER  */
/* WIDGET NUMBER  */
/* WIDGET NUMBER  */
/* WIDGET NUMBER  */
.controls my-elem-group .children .control.number > .title {
    width: 100%;
}

.controls my-elem-group .children .control.number > .widget {
    width: 17rem;
}

.controls my-elem-group .children .control.number > .widget input {
    appearance: none;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%; height: auto;
    border-radius: 10rem;
    background-color: #ffffff;
    border: 1px solid #E1E5ED;
    margin: 0.2rem;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    line-height: 2.0rem;
    padding: 1.0rem 0.5rem 1.0rem 1.5rem;
    color: #222;
    transition: background-color 0.2s, color 0.2s, outline 0.2s;
    cursor: text;
    outline: 2px solid transparent;
}


.controls my-elem-group .children .control.number > .widget input:active,
.controls my-elem-group .children .control.number > .widget input:hover,
.controls my-elem-group .children .control.number > .widget input:focus {
    outline: 2px solid #be3d3d;
}

.controls my-elem-group .children .control.number > .widget .range {
    position: absolute;
    display: block;
    box-sizing: border-box;
    left: 3rem; bottom: 0.4rem; right: 3.8rem;  height: 0.4rem;
    border-radius: 0.2rem;
    background-color: #be3d3d34;
    z-index: 100;
    cursor: pointer;
}

.controls my-elem-group .children .control.number > .widget .range .handle {
    position: absolute;
    display: block;
    box-sizing: border-box;
    left: 0; bottom: 0; width: 0.6rem; height: 1.2rem; transform: translateY(1px);
    border-radius: 0.5rem;
    background-color: #be3d3d;
    z-index: 100;
    cursor: pointer;
    transform-origin: center bottom;
    transition: transform 0.2s;
}

.controls my-elem-group .children .control.number > .widget .range .handle:hover {
    transform: translateY(1px) scale(1.2,1.5); 
    cursor: ew-resize;
}







/* WIDGET TEXT  */
/* WIDGET TEXT  */
/* WIDGET TEXT  */
/* WIDGET TEXT  */
/* WIDGET TEXT  */
.controls my-elem-group .children .control.text {
    flex-direction: column;
}

.controls my-elem-group .children .control.text > .title {
    width: auto;
}

.controls my-elem-group .children .control.text > .widget {
    width: auto; 
}

.controls my-elem-group .children .control.text > .widget input {
    appearance: none;
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%; height: auto;
    border-radius: 10rem;
    background-color: #ffffff;
    border: 1px solid #E1E5ED;
    margin: 0.2rem;
    font-family: Intro, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    line-height: 2.0rem;
    padding: 1.0rem 0.5rem 1.0rem 1.5rem;
    color: #222;
    transition: background-color 0.2s, color 0.2s, outline 0.2s;
    cursor: text;
    outline: 2px solid transparent;
} 

.controls my-elem-group .children .control.text > .widget input:active,
.controls my-elem-group .children .control.text > .widget input:hover,
.controls my-elem-group .children .control.text > .widget input:focus {
    outline: 2px solid #be3d3d;
}




.controls *.hidden {
    display: none!important;
} 

.controls *.disabled {
    filter: grayscale(0.5) contrast(0.75);
    opacity: 0.5;
    pointer-events: none!important;
} 

.controls *.disabled * {
    pointer-events: none!important;
} 


.controls *.notitle > .title {
    display: none!important;
} 
