html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.msgbox-icon {
    margin-top: 0 !important;
}

.dxbl-fl .dxbl-fl-item .dxbl-fl-ctrl-nc:has(> div.static-image-container) {
    margin-top: 0 !important;
    padding-top: 20px !important;
}


/*.dxbl-fl .dxbl-fl-item .dxbl-fl-ctrl-nc > div.static-image-container {
    padding-top: 20px !important;
}
*/
.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 180px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.main-content .dxbl-grid .dxbl-grid-table > tbody > tr > td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dxbl-grid-header-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-top: 5px;
    padding-bottom: 5px;
}

.clickable-xaf-nav-item > a .xaf-nav-link, .clickable-xaf-nav-item > div > a .xaf-nav-link {
    text-decoration: unset !important;
}

.header.xaf-show-navigate-back-action > .header-right-side button.navigate-back-icon-container {
    display: unset;
}

.dxbs-grid-table td {
    white-space: nowrap;
}

td.xaf-double-click {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.xaf-masterdetail-view {
    flex: 0%;
    min-height: 50px !important;
    min-width: 300px;
}

.app .main-content > .grid-content,
.xaf-masterdetail-listview > .grid-content {
    height: 100%;
    min-height: 50px !important;
}

.always-show-caption {
    display: block !important;
}

    .always-show-caption span {
        display: inline !important;
    }

#pdfViewer {
    margin: 10px auto 10px auto;
    width: 95%;
    height: 100%;
}

#pdfContainer {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: auto;
    background: #333;
    text-align: center;
    border: solid 3px
}

.pdfCanvas {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid black;
    z-index: 1;
    height: 100%;
}



.resizable {
    touch-action: none;
    /* This makes things *much* easier */
    box-sizing: border-box;
}

#signature {
    position: relative;
    user-select: none;
    background-size: 100% 100%; /* Scale the image to cover the entire div */
    background-repeat: no-repeat; /* Prevent image repetition */
    background-position: center;
    transform: translate(-50%, -50%);
}

    #signature:hover {
        border: 1px dashed #000;
    }

.outer-div {
    height: 800px;
    width: 1200px;
}

/* .imageHolder {
    background-color: transparent;
    display: flex;
    flex-flow: column nowrap;
    align-content: space-between;
    position: absolute;
    top: 20px;
    left: 20px;
    border: 1px solid blue;
    z-index: 2;
} */

#rotationIcon {
    visibility: hidden;
    position: absolute;
    padding-bottom: 20px;
    left: calc(50% - 5px);
    top: -40px;
    width: 20px;
    height: 20px;
    z-index: 5;
}

    #rotationIcon:hover {
        cursor: grab;
    }

    #rotationIcon:active {
        cursor: grabbing;
    }

#signature:hover #rotationIcon {
    visibility: visible;
}

.imageWrapper {
    position: absolute;
    transform-origin: top left;
    user-select: none;
    /*margin: 10px;*/
    top: 100px;
    left: 100px;
    z-index: 2;
}

.resizer {
    visibility: hidden;
    width: 10px;
    height: 10px;
    position: absolute;
    border: 1px solid white;
    background-color: black;
    border-radius: 50%;
    z-index: 3;
}

    .resizer:hover {
        background-color: gray;
    }

#signature:hover .resizer {
    visibility: visible;
}

#resizer-tl {
    top: -5px;
    left: -5px;
}

#resizer-tm {
    top: -5px;
    left: calc(50% - 5px);
}

#resizer-tr {
    top: -5px;
    right: -5px;
}

#resizer-ml {
    top: calc(50% - 5px);
    left: -5px;
}

#resizer-mr {
    top: calc(50% - 5px);
    right: -5px;
}

#resizer-bl {
    bottom: -5px;
    left: -5px;
}

#resizer-bm {
    bottom: -5px;
    left: calc(50% - 5px);
}

#resizer-br {
    bottom: -5px;
    right: -5px;
}

#resizer-bl:hover,
#resizer-tr:hover {
    cursor: nesw-resize;
}

#resizer-br:hover,
#resizer-tl:hover {
    cursor: nwse-resize;
}

#resizer-bm:hover,
#resizer-tm:hover {
    cursor: ns-resize;
}

#resizer-ml:hover,
#resizer-mr:hover {
    cursor: ew-resize;
}


/* Smanjimo duljinu teksta u tab-u na 30 znakova */
.dxbl-btn-standalone div.d-flex.flex-row span {
    overflow: hidden;
    max-width: 30ch;
    white-space: nowrap;
    text-overflow: ellipsis;
}