.stkdialog{
    border: solid 1px gray;
    border-radius: 0.5rem;
    margin:0px;
    padding: 0px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90vw;
    z-index: 10000000;
    box-shadow: 10px 5px 5px gray;
    display: none;
    position: fixed;
    left: auto;
    top: 7em;
    width: 600px;
    background-color: white;
    max-height: calc(100vh - 10em);
    overflow-y: hidden;
    height: auto;
}

.stkdialog.max{
    max-width: 100vw;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;    
}

.stkdialog.confirmdialog{
    max-width: 400px;
}

.stkdialog.open{
    display: block;
}


.stkdialog > h2:nth-child(1){
    background: rgb(189,189,189);
    background: linear-gradient(0deg, rgba(189,189,189,1) 0%, rgba(164,164,164,1) 100%);
    color: black;
    display: block;
    margin:0px;
    padding: 0px;
    padding-left: 0.5rem;
    line-height: 1.5rem;    
    font-size: 1rem;
    border-radius: 0.5rem 0.5rem 0em 0em;
    border-bottom: solid 1px gray;
}

.stkdialog > div:nth-child(2){
    min-height: 2em;
    background-color: white;
    display: block;
    position: relative;
    border-radius: 0.0rem 0.0rem 0.5rem 0.5rem;
    cursor:default;
    max-height: 50vh;
    overflow: auto;
    padding-left: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-right: 1em;
}

.stkdialog.max > div:nth-child(2){
    max-height: calc(100vh - 8em);
}

.stkdialog > div:nth-child(3){
    border-top: solid 1px lightgray;
    min-height: 2em;
    background-color: white;
    display: block;
    position: relative;
    border-radius: 0.0rem 0.0rem 0.5rem 0.5rem;
    cursor:default;
    display: flex;
    justify-content: space-between;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}

.stkdialog .stkdialog-btnclose{
    display: block;
    width: 2rem;
    border-left: solid 1px gray;
    float: right;
    text-align: center;
    min-height: 100%;
    margin:0px;
    line-height: 1.5rem;
    color: rgb(81, 81, 81);
    cursor: pointer;
}

.stkdialog .stkdialog-btnclose:after{
    content: "X";
    
    font-family: Arial, Helvetica, sans-serif;
}

.stkdialog .stkdialog-btnclose:hover{
    background-color: #028573;
    color: white;
}


.stkdialog .stkdialog-btnmaximize{
    display: block;
    width: 2rem;
    border-left: solid 1px gray;
    float: right;
    text-align: center;
    min-height: 100%;
    margin:0px;
    line-height: 1.5rem;
    color: rgb(81, 81, 81);
    cursor: pointer;
}

.stkdialog .stkdialog-btnmaximize:after{
    content: "🗖";
    
    font-family: Arial, Helvetica, sans-serif;
}

.stkdialog .stkdialog-btnmaximize:hover{
    background-color: #028573;
    color: white;
}



.stkdialog .dlg-row{
    margin-bottom: 2em;
    display: block;

}

.stkdialog .dlg-row textarea{    
    display: block;
    position: relative;
    width: 100%;

}

.stkdialog .dlg-smallrow{
    margin-bottom: 0.25em;
    display: block;

}

.stkdialog .dlg-label{
    display: block;
    color: black;
    font-weight: bold;
    padding-bottom: 0.25em;
    font-size:small;

}

.stkdialog .dlg-checkboxlabel{
    display: block;
    color: black;
    font-weight: bold;
   

}

.stkdialog input[type="text"].dlg-input{
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: 1rem;
    line-height: 1.5;
    /*border-radius: .2rem;*/
    width: 80%;
    border-left: none;
    border-right: none;
    border-top: none;
    font-weight: bold;
    display: inline-block;
}

.stkdialog input[type="time"]{
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: 1.25rem;
    line-height: 1.5;
    /*border-radius: .2rem;*/
    width: 5em;
    border-left: none;
    border-right: none;
    border-top: none;
    font-weight: bold;
}

.stkdialog input[type="date"]{
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: 1.25rem;
    line-height: 1.5;
    /*border-radius: .2rem;*/
    width: 8em;
    border-left: none;
    border-right: none;
    border-top: none;
    font-weight: bold;
}

.stkdialog input[type="number"].dlg-input{
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: 1rem;
    line-height: 1.5;
    /*border-radius: .2rem;*/
    width: 4em;
    border-left: none;
    border-right: none;
    border-top: none;
    font-weight: bold;
}

.stkdialog input[type="number"].dlg-input.dlg-money{
    width: 5em;
}

.stkdialog input[type="url"].dlg-input{
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: 1rem;
    line-height: 1.5;
    /*border-radius: .2rem;*/
    width: 80%;
    border-left: none;
    border-right: none;
    border-top: none;
    font-weight: bold;
}

.stkdialog ul.dlg-list{
    padding:0px;

}

.stkdialog ul.dlg-list li{
    list-style: none;
    display: block;
    border: solid 1px gray;
    margin:0px;
    margin-bottom: 0.5em;
    padding-left: 0.5em;
    
    line-height: 2em;
    width: 80%;
    font-weight: bold;
}
.stkdialog ul.dlg-list li:hover{
    background-color: rgb(235, 235, 235);
}

.stkdialog ul.dlg-list li .dlg-list-remove{
    display: block;
    float: right;    
    position: relative; 
    border-left: solid 1px lightgray;
    padding-left: 0.5em;   
    height: 100%;
    padding-right: 0.5em;
    color: red;
}

.stkdialog ul.dlg-list li.hide{
    display: none;
}

.stkdialog ul.dlg-list li .dlg-list-remove:after{
    content: "X";
    
}

.stkdialog ul.dlg-list li .dlg-list-remove:hover{
    background-color: #c5c5c5;
}

.stkdialog .dlg-select{
    font-size: 1.125rem;
}

.stkdialog .dlg-select.hide{
    display: none;    
}

.stkdialog .dlg-input-date{
    font-size: 1.125rem;
}

option.hidden{
    display: none;
}