html, body, #page-wrapper, #login {
    height: 100% !important;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow:hidden;
}
body.swal2-height-auto, html body.swal2-height-auto{height: 100% !important;}
#page-wrapper{
    display:flex;
    flex-direction: row;
    max-height: 100%;
}

#sidebar-wrapper{
    display:flex;
    flex-direction: column;
    flex: 0 0 auto;
    width:300px;
    height:100%;
    max-height:100%;
}

#sidebar-logo{
    width:100%;
    display:block;
    height:70px;
    flex:0 0 auto;
    background: url(images/Acudesk_bpmn_app_logo_100h.png) no-repeat center;
    background-size: contain;
    margin-top:20px;
}


#sidebar-content{
    width:100%;
    display:block;
    flex:1 1 auto;
    height:100%;
    max-height:100%;
}

#content-wrapper{
    display:flex;
    flex-direction: column;
    flex: 1 1 auto;
    height:100dvh;
    max-height:100dvh;
}

#content-header{
    flex: 0 0 auto;
}

#content{
    flex: 1 1 auto;
    display:flex;
    flex-direction: row;
    height: calc(100dvh - 51px);
}




#document-agent {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 400px;
    max-width:400px;
    background: #eee;
    border-right:1px solid #ccc;
}
#document-agent .agent-messages{
    flex: 1 1 auto;
    height:100%;
    max-height:100%;
    overflow-y:scroll;
}
#document-agent .agent-input{
    flex: 0 0 auto;
    min-height:50px;

}
.document-agent .agent-input textarea{
    min-height:50px;
    width:100%;
    min-width:100%;
    max-width: 100%;
}

#app{
    flex: 1 1 auto;
    display:flex;
    flex-direction: column;
}

#header-tabs-wrapper{
    display:none;
    height:0;
}

#bpmn-editor{
    flex: 1 1 auto;
    height:100%;
    width:100%;
    position:relative;
}

#bpmn-diagram{
    width:100%;
    height:100%;
}

/* overview mini-map in corner */
#bpmn-overview {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 220px;
    height: 160px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #dde1e7;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    cursor: grab;
}

#bpmn-empty-state {
    position: absolute;
    inset: 20px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#bpmn-empty-state.hidden {
    display: none;
}

#bpmn-empty-state .empty-state-content {
    max-width: 420px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

#bpmn-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e293b;
}

#bpmn-empty-state p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}



