/*
Copyright (C) 2001-2021 OTRS AG, https://otrs.com/
Copyright (C) 2021 Znuny GmbH, https://znuny.org/

This software comes with ABSOLUTELY NO WARRANTY. For details, see
the enclosed file COPYING for license information (GPL). If you
did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
*/

/**
 * @package     Skin "Default"
 * @section     Input Fields
 */

@media screen,projection,tv,handheld {

/**
 * @subsection  General
 */

.InputField_Container,
.InputField_InputContainer,
.InputField_Container div,
.InputField_InputContainer div,
fieldset.Columns .Column .InputField_Container,
fieldset.Columns .Column .InputField_InputContainer,
fieldset.Columns .Column .InputField_Container div,
fieldset.Columns .Column .InputField_InputContainer div {
    padding: 0;
    overflow: visible;
    width: 100%;
}

.InputField_InputContainer,
.InputField_InputContainer div,
fieldset.Columns .Column .InputField_InputContainer,
fieldset.Columns .Column .InputField_InputContainer div {
    display: flex;
    width: 100%;
}

fieldset div.InputField_Container:first-child,
fieldset div.InputField_InputContainer:first-child,
.InputField_Container div:first-child,
.InputField_InputContainer div:first-child {
    border-top: none;
    padding-top: 0;
}

div.InputField_Container {
    position: static;
    display: flex;
}

div.InputField_InputContainer {
    position: relative;
    display: inline-block;
    line-height: 11px;
    text-shadow: none;
}

.InputField_InputContainer i.fa.fa-caret-down {
    position: absolute;
    right: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 100;
}

.InputField_Search::-ms-clear {
    display: none;
    width : 0;
    height: 0;
}

.InputField_Search,
.InputField_Autocomplete {
    min-width: 200px;
}

.ActionRow .InputField_Search,
.ActionRow .InputField_Autocomplete {
    min-width: 200px;
    box-shadow: none;
}

.InputField_Search[disabled="disabled"] {
    color: #aaa;
}

.InputField_Search[readonly=readonly]:focus {
    box-shadow: none;
}

a.InputField_Action {
    position: absolute;
    color: #000;
    top: 4px;
    height: 75%;
    width: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

a.InputField_Action:hover {
    color: #f92;
}

div.InputField_Selection {
    position: absolute;
    top: 4px;
    height: 75%;
    width: auto;
    line-height: 11px;
    text-shadow: none;
    border-radius: 6px;
    padding: 6px var(--padding-xs);
    z-index: 50;
    background: var(--pill-color-selected);
    transition: var(--main-transition);
    border: var(--border-width) var(--border-solid) var(--border-color);
    align-items: center;
}

div.InputField_Selection div {
    display: inline-block;
    font-size: 11px;
}

div.InputField_Selection div.Text {
    background: transparent;
    height: 100%;
    padding: 0 var(--padding-xs);
    line-height: 100%;
    display: inline-flex;
    align-items: center;
}

div.InputField_Selection div.Remove {
    width: auto;
    color: var(--black);
    cursor: pointer;
}

.AlreadyDisabled div.InputField_Selection div.Text {
    cursor: default;
}


div.InputField_Selection div.Remove a {
    color: var(--black);
    background-color: transparent;
    padding: 2px 4px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

div.InputField_Selection div.Remove i {
    font-size: var(--font-size-xs);
}

.AlreadyDisabled div.InputField_Selection div.Remove {
    visibility: hidden;
    display: none;
}

div.InputField_More {
    white-space: nowrap;
    position: absolute;
    top: 4px;
    height: 75%;
    width: auto;
    line-height: 11px;
    text-shadow: none;
    border-radius: 6px;
    padding: 6px var(--padding-xs);
}

div.InputField_ListContainer {
    position: absolute;
    z-index: 1000;
    display: none;
    text-shadow: none;
    box-shadow: var(--menu-box-shadow);
    background: var(--menu-bg);
    border-radius: var(--border-radius-xs);
    overflow: hidden;
}

div.InputField_TreeContainer {
    border: 0;
    border-top: none;
    overflow-y: auto;
    box-sizing: border-box;
    line-height: 18px;
    min-width: 75px;
}

.ExpandToTop div.InputField_TreeContainer {
    border-top: 0;
    border-bottom: none;
}

div.InputField_ToolbarContainer {
    line-height: 21px;
    min-height: 21px;
    min-width: 275px;
    background: var(--white);
    box-sizing: border-box;
}

div.InputField_ToolbarContainer ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: var(--padding-sm);
    border-top: var(--border-width) var(--border-solid) var(--border-color);
}

div.InputField_ToolbarContainer ul li {
    display: flex;
}

/* div.InputField_ToolbarContainer ul li:after {
    color: #bbb;
    content: "|";
    display: inline-block;
    float: right;
    cursor: default;
    width: 0;
} */

div.InputField_ToolbarContainer ul li:last-child:after {
    display: none;
}

.RTL div.InputField_ToolbarContainer ul li:last-child:after {
    display: inline-block;
}

.RTL div.InputField_ToolbarContainer ul li:first-child:after {
    display: none;
}

div.InputField_ToolbarContainer ul li a {
    display: inline-block;
    width: 100%;
    color: var(--black);
    font-size: var(--font-size-sm);
    line-height: 100%;
    border-bottom: 2px solid transparent;
}

div.InputField_ToolbarContainer ul li a:hover {
    border-bottom: 2px solid #f92;
    margin-bottom: 0;
}

.InputField_Confirm,
.InputField_Filters.Active {
    font-weight: bold;
}

.InputField_ListContainer .InputField_FiltersList {
    display: flex;
    gap: var(--gap-sm);
    align-items: center;
    background: var(--white);
    padding: var(--padding-sm);
    white-space: nowrap;
    z-index: 1500;
    width: 100%;
    font-size: var(--main-font-size);
    border-top: var(--border-width) var(--border-solid) var(--border-color);
}

.InputField_FiltersList span {
    font-size: var(--font-size-sm);
}

.InputField_FiltersList input[disabled="disabled"] + span {
    font-style: italic;
    color: #aaa;
}

/**
 * @subsection  Select
 */

 form select {
    border: var(--border-width) var(--border-solid) var(--border-color);
    background-color: var(--white);
    -webkit-box-shadow: none;
    box-shadow: none;
    padding: var(--padding-xs) var(--padding-sm);
    font-size: var(--font-size-sm);
    color: var(--black);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    line-height: var(--input-line-height);
    transition: var(--main-transition);
    height: 30px;
}

/**
 * @subsection  jsTree theme
 */
.jstree-InputField {
    /* font-size: 11px !important;
    border: none !important;
    box-shadow: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important; */
}

.jstree-InputField .jstree-node,
.jstree-InputField .jstree-children,
.jstree-InputField .jstree-container-ul {
    display: block;
    margin: 0;
    padding: var(--padding-sm);
    list-style-type: none;
    list-style-image: none;
    text-align: left;
    /*background-color: var(--white);*/
}

.jstree-InputField .jstree-container-ul .jstree-children {
    padding: 0;
}

.jstree-InputField .jstree-container-ul .jstree-node.jstree-open {
    padding-bottom: 0;
}

/* .jstree-InputField .jstree-container-ul:hover .jstree-node.jstree-open .jstree-wholerow .jstree-children .jstree-wholerow  {
    background-color: var(--gray-light) !important;
} */

.jstree-InputField .jstree-node {
    white-space: nowrap;
}

.jstree-InputField .jstree-node.jstree-hidden {
    display: none;
}

.jstree-InputField .jstree-anchor {
    display: inline-block;
    color: black;
    white-space: nowrap;
    padding: 0 4px 0 1px;
    margin: 0;
    vertical-align: top;
}

.jstree-InputField .jstree-anchor:focus {
    outline: 0;
    background: transparent !important;
}

.jstree-InputField .jstree-anchor,
.jstree-InputField .jstree-anchor:link,
.jstree-InputField .jstree-anchor:visited,
.jstree-InputField .jstree-anchor:hover,
.jstree-InputField .jstree-anchor:active {
    text-decoration: none;
    color: inherit;
}

.jstree-InputField .jstree-icon {
    display: inline-block;
    text-decoration: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
    text-align: center;
}

.jstree-InputField .jstree-icon:empty {
    display: inline-block;
    text-decoration: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
    text-align: center;
}

.jstree-InputField .jstree-ocl {
    cursor: pointer;
}

.jstree-InputField .jstree-leaf > .jstree-ocl {
    cursor: default;
}

.jstree-InputField .jstree .jstree-open > .jstree-children {
    display: block;
}

.jstree-InputField .jstree .jstree-closed > .jstree-children,
.jstree-InputField .jstree .jstree-leaf > .jstree-children {
    display: none;
}

.jstree-InputField .jstree-anchor > .jstree-themeicon {
    margin-right: 2px;
}

.jstree-InputField .jstree-no-icons .jstree-themeicon,
.jstree-InputField .jstree-anchor > .jstree-themeicon-hidden {
    display: none;
}

.jstree-InputField .jstree-rtl .jstree-anchor {
    padding: 0 1px 0 4px;
}

.jstree-InputField .jstree-rtl .jstree-anchor > .jstree-themeicon {
    margin-left: 2px;
    margin-right: 0;
}

.jstree-InputField .jstree-rtl .jstree-node {
    margin-left: 0;
}

.jstree-InputField .jstree-rtl .jstree-container-ul > .jstree-node {
    margin-right: 0;
}

.jstree-InputField .jstree-hovered {
    background-color: transparent !important;
}

.jstree-InputField .Disabled > .jstree-anchor {
    color: #aaa !important;
    font-style: italic;
    cursor: default;
}

.jstree-InputField .jstree-open,
.jstree-InputField .jstree-closed {
    cursor: pointer;
}

.jstree-InputField .jstree-wholerow-ul {
    position: relative;
    display: inline-block;
    min-width: 100%;
}

.jstree-InputField .jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
    cursor: pointer;
}

.jstree-InputField .jstree-wholerow-ul .jstree-anchor,
.jstree-InputField .jstree-wholerow-ul .jstree-icon {
    position: relative;
}

.jstree-InputField .jstree-wholerow-ul .jstree-wholerow {
    width: 100%;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 100%;
    width: 100%;
    border-radius: var(--border-radius-xs);
}

.jstree-InputField .jstree-wholerow-ul .jstree-wholerow-clicked {
    background-color: var(--primary-color);
}

.jstree-InputField .jstree-clicked, 
.jstree-InputField .jstree-anchor.jstree-clicked {
    color: var(--white);
}

.jstree-InputField .jstree-wholerow-ul .jstree-wholerow:hover,
.jstree-InputField .jstree-wholerow-ul .jstree-wholerow-hovered,
.jstree-InputField .jstree-focused > .jstree-wholerow {
    background-color: var(--gray-light);
}

.jstree-InputField .jstree-wholerow-ul .jstree-wholerow-clicked:hover,
.jstree-InputField .jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered,
.jstree-InputField .jstree-focused > .jstree-wholerow-clicked {
    background-color: var(--gray-light);
}

.jstree-InputField .Disabled > .jstree-wholerow:hover,
.jstree-InputField .Disabled > .jstree-wholerow-hovered {
    background-color: var(--gray-light);
    cursor: default;
}

.jstree-InputField .Disabled.jstree-open > .jstree-anchor,
.jstree-InputField .Disabled.jstree-closed > .jstree-anchor {
    cursor: pointer !important;
}

.jstree-InputField .jstree-clicked {
    background: transparent !important;
    border: none !important;
    padding: 0 4px 0 1px !important;
}

.jstree-InputField.jstree-rtl .jstree-node {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
    background-position: 100% 1px;
    background-repeat: repeat-y;
}

.jstree-InputField.jstree-rtl .jstree-last {
    background: transparent;
}

.jstree-InputField.jstree-rtl .jstree-open > .jstree-ocl {
    background-position: -135px -39px;
}

.jstree-InputField.jstree-rtl .jstree-closed > .jstree-ocl {
    background-position: -103px -39px;
}

.jstree-InputField.jstree-rtl .jstree-leaf > .jstree-ocl {
    background-position: -71px -39px;
}

.jstree-InputField.jstree-rtl > .jstree-no-dots .jstree-node,
.jstree-InputField.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
    background: transparent;
}

.jstree-InputField.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
    background-position: -39px -39px;
}
.jstree-InputField.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
    background-position: -7px -39px;
}

.jstree-InputField .jstree-themeicon-custom {
    background-color: transparent;
    background-image: none;
    background-position: 0 0;
}

.jstree-InputField.jstree-rtl .jstree-node {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==');
}

.jstree-InputField.jstree-rtl .jstree-last {
    background: transparent;
}

.jstree-InputField .jstree-search {
    font-style: italic;
}

.jstree-InputField .jstree-no-match .jstree-ocl {
    display: none;
}

.jstree-InputField .jstree-no-match {
    margin-left: 2px !important;
}

.jstree-InputField.jstree-rtl .jstree-no-match {
    margin-right: 2px !important;
}

/**
 * @subsection  jsTree theme - Tree variant
 */
.jstree-InputField-Tree .jstree-node {
    min-height: 18px;
    line-height: 18px;
    margin-left: 18px;
    min-width: 18px;
}

.RTL .jstree-InputField-Tree .jstree-node {
    margin-right: 18px;
    margin-left: 0;
}

.jstree-InputField-Tree > .jstree-container-ul > .jstree-node,
.RTL .jstree-InputField-Tree > .jstree-container-ul > .jstree-node {
    margin-left: 0;
    margin-right: 0;
}

.jstree-InputField-Tree .jstree-anchor {
    height: 18px;
    line-height: 19px;
    overflow-y: hidden;
}

.jstree-InputField-Tree .jstree-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.jstree-InputField-Tree .jstree-icon:empty {
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.jstree-InputField-Tree.jstree-rtl .jstree-node {
    margin-right: 18px;
}

.jstree-InputField-Tree .jstree-wholerow {
    height: 18px;
}

.jstree-InputField-Tree .jstree-node,
.jstree-InputField-Tree .jstree-icon {
    background-image: url('../img/inputfield_tree.png');
}

.jstree-InputField-Tree .jstree-node {
    background-position: -295px -7px;
    background-repeat: repeat-y;
}

.jstree-InputField-Tree .jstree-last {
    background: transparent;
}

.jstree-InputField-Tree .jstree-open > .jstree-ocl {
    background-position: -135px -7px;
}

.RTL .jstree-InputField-Tree .jstree-open > .jstree-ocl {
    background-position: -135px -39px;
}

.jstree-InputField-Tree .jstree-closed > .jstree-ocl {
    background-position: -103px -7px;
}

.RTL .jstree-InputField-Tree .jstree-closed > .jstree-ocl {
    background-position: -103px -39px;
}

.jstree-InputField-Tree .jstree-leaf > .jstree-ocl {
    background-position: -71px -7px;
}

.RTL .jstree-InputField-Tree .jstree-leaf > .jstree-ocl {
    background-position: -71px -39px;
}

.jstree-InputField-Tree .jstree-themeicon {
    background-position: -263px -7px;
}

.RTL .jstree-InputField-Tree .jstree-themeicon {
    background-position: -263px -39px;
}

.jstree-InputField-Tree > .jstree-no-dots .jstree-node,
.jstree-InputField-Tree > .jstree-no-dots .jstree-leaf > .jstree-ocl {
    background: transparent;
}

.jstree-InputField-Tree > .jstree-no-dots .jstree-open > .jstree-ocl {
    background-position: -39px -7px;
}

.RTL .jstree-InputField-Tree > .jstree-no-dots .jstree-open > .jstree-ocl {
    background-position: -39px -39px;
}

.jstree-InputField-Tree > .jstree-no-dots .jstree-closed > .jstree-ocl {
    background-position: -7px -7px;
}

.RTL .jstree-InputField-Tree > .jstree-no-dots .jstree-closed > .jstree-ocl {
    background-position: -7px -39px;
}

/**
 * @subsection  jsTree theme - No Tree variant
 */
 .jstree-InputField-NoTree .jstree-node,
 .jstree-InputField .jstree-node {
    position: relative;
    min-height: auto;
    line-height: 1;
    margin-left: 0;
    min-width: 18px;
    box-sizing: border-box;
    border-bottom: 2px solid transparent;
}

.jstree-InputField-NoTree .jstree-anchor,
.jstree-InputField .jstree-anchor {
    height: 18px;
    line-height: 18px;
}

.jstree-InputField-NoTree .jstree-icon,
.jstree-InputField .jstree-icon {
    display: none;
}

.jstree-InputField-NoTree.jstree-rtl .jstree-node,
.jstree-InputField.jstree-rtl .jstree-node {
    margin-right: 2px;
}

.jstree-InputField-NoTree .jstree-wholerow,
.jstree-InputField .jstree-wholerow {
    height: 18px;
}

/**
 * @subsection  Checkbox Styles
 */

 input[type=checkbox]{
    appearance: none; -webkit-appearance: none;
    position: relative;
    display: block;
    width: 16px; 
    height: 16px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    border: var(--border-width) solid #ccc; 
    background: transparent;
    border-radius: 3px;
    z-index: 100;
    background: var(--white);
}

input[type=checkbox]:hover {
    border-color: var(--success-color);
}
  
input[type=checkbox]:checked {
    background:var(--success-color);
    border: 2px solid var(--success-color); 
}

input[type=checkbox]:checked + label {
    color: var(--black);
}

input[type=checkbox]::after {
    position: absolute;
    z-index: 10000;
    content: '';
    transform: rotate(45deg);
    height: 8px;
    width: 4px;
    border-bottom: 2px solid transparent;
    border-right: 2px solid transparent;
    left: 3px;
    top: 0px;
    transition: var(--main-transition);
  }

input[type=checkbox]:checked::after{
    display: inline-block;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
}

/******************************/
/*        Radio Buttons       */

.radio-field-wrapper {
    display: flex;
    gap: var(--gap-sm);
    align-content: center;
    align-items: center;
}

input[type=radio]{
    appearance: none; -webkit-appearance: none;
    position: relative;
    display: block;
    width: 16px; 
    height: 16px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    border: var(--border-width) solid #ccc; 
    background: transparent;
    border-radius: var(--border-radius-xl);
    z-index: 100;
    background: var(--white);
}

input[type=radio]:checked {
    border: 2px solid var(--success-color);
}

.radio-input:checked + .radio-label {
    color: var(--black) !important;
}

input[type=radio]::after {
    position: absolute;
    z-index: 10000;
    content: '';
    height: 8px;
    width: 8px;
    top: 2px;
    left: 0; right: 0; margin: 0 auto;
    transition: var(--main-transition);
    display: none;
    background:var(--success-color);
    border-radius: var(--border-radius-xl);
}

input[type=radio]:checked::after {
    display: inline-block;
}


} /* end @media */
