.wdk-document {
    position: relative;
    border: 1px solid var(--grey-01);
    border-radius: var(--radius-base);
    background-color: var(--white-01);
    transition: var(--time-01);
}
.wdk-document-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grey-01);
    padding: 16px;
}

.wdk-document-body {
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: calc(100vh - 310px) !important;
}

.wdk-training-content .wdk-document-body {
    height: calc(100vh - 344px) !important;
}

.wdk-document.fullscreen .wdk-document-body {
    height: calc(100vh - 54px) !important;
    overflow: auto;
}

@media (max-width: 576px) {
    .wdk-document-head {
        padding: 8px;
    }
}
/*________________________________________________
_____________ Document visualization _____________
__________________________________________________*/

/* ___________________ Content ___________________ */


.wdk-documentfind-content :not(table) {
    word-break: break-word;
}

.wdk-document table {
    border-collapse: initial;
}

.wdk-document table * {
    word-break: initial;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-content {
    flex: 1 !important;
    min-height: 240px !important;
    overflow: auto;
	scrollbar-width: thin !important;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-content {
    flex: 1 !important;
    padding: 0;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-content::-webkit-scrollbar-track {
	background-color: var(--white-02) !important;
	-webkit-box-shadow: inset 0 0 6px var(--white-02) !important;
    box-shadow: inset 0 0 6px var(--white-02) !important;
}
#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-content::-webkit-scrollbar {
	background-color: var(--white-02) !important;
	width: 5px !important;
	height: 5px;
}
#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-content::-webkit-scrollbar-thumb {
	background-color: var(--scroll-thumb-base-custom-color) !important;
	border-radius: 10px;
}

/* ___________________ Embed ___________________ */

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-embed {
    flex: 1 !important;
    min-height: 300px !important;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-embed {
    flex: 1 !important;
    padding: 0;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-embed embed,
#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-embed video {
    height: 100% !important;
    width: 100%;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-embed embed {
    width: 100%;
    height: 100%;
}
#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-embed video {
    width: 100%;
    height: 100%;
    margin-left: -2px;
}

/* ___________________ iframe ___________________ */

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-iframe {
    position: relative;
    flex: 1;
    min-height: 300px !important;
    overflow: hidden;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-iframe {
    flex: 1;
    padding: 0;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-iframe iframe {
    min-height: 300px !important;
    width: 100%;
    height: 100%;
    margin-left: -2px;
    margin-top: -1px;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-iframe iframe {
    width: 100%;
    height: 100%;
    margin-left: -2px;
}

/* ___________________ Audio ___________________ */

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-audio {
    flex: 1 !important;
    min-height: 300px;
    text-align: center;
    position: relative;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-audio center,
#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-audio center,
#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-embed center,
#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-embed center {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-audio {
    flex: 1 !important;
    text-align: center;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-audio img {
    flex: 1 !important;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-audio img {
    width: 100%;
    height: 100%;
}

/* ___________________ Builder ___________________ */

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-builder {
    flex: 1 !important;
    /* min-height: 400px; Commented to solve an overflow on document view */
    overflow: auto;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-builder .bldr-col {
    overflow: auto;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-builder .bldr-col + .bldr-col {
    margin-top: 0;
}

#wdkCard_Content.wdk-document .wdk-document-body .wdk-documentfind-builder .accordion-body .bldr-col + .bldr-col {
    margin-top: 0;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-document-body .wdk-documentfind-builder {
    height: 100%;
    padding: 16px 24px;
}

/* ___________________ Button fullscreen ___________________ */
.wdk-document.fullscreen .btn .open,
.wdk-document.fullscreen .btn .icon-fullscreen,
.wdk-document:not(.fullscreen) .btn .icon-fullscreen_exit {
    display: none;
}
.wdk-document:not(.opened) .btn .notopen,
.wdk-document.opened .btn .open {
    display: none;
}

/* Hide action button on fullscreen */
/*.wdk-document.fullscreen .wdk-document-head:nth-child(1) div .btn.btn-inline,*/
/*.wdk-document.fullscreen .wdk-document-head:nth-child(2) div .btn.btn-inline {*/
/*    display: none;*/
/*}*/

/* ____________________________________ */

/* Fullscreen */
#wdkCard_Content.wdk-document.h-auto .wdk-fullscreen-header {
    height: 24px;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-fullscreen-header {
    height: 66px;
}

/* CKEditor fullscreen */
#wdkCard_Content.wdk-document.fullscreen .bldr-grid-container {
    height: 100% !important;
}

#wdkCard_Content.wdk-document.fullscreen .bldr-grid-container .bldr-ckeditor {
    padding: 16px 24px;
}

/* Fix overflow break line in document find */
#wdkCard_Content.wdk-document.fullscreen .bldr-grid-container .accordion-body .bldr-col .bldr-ckeditor {
    overflow: auto;
}

/* Video fullscreen */
#wdkCard_Content.wdk-document.fullscreen .bldr-col > div .bldr-video-container {
	padding: 0;
}

#wdkCard_Content.wdk-document.fullscreen .d-flex {
    height: auto;
}
#wdkCard_Content.wdk-document.fullscreen .v-space {
    height: 0;
}
#wdkCard_Content.wdk-document.fullscreen .v-space ~ div {
    height: 100%;
}

#wdkCard_Content.wdk-document.fullscreen {
    padding: 0;
}


/* -- */





/* Embed */

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-embed {
    height: 100%;
    padding: 0;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-embed embed {
    width: 100%;
    height: 100%;
}
#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-embed video {
    width: 100%;
    height: 100%;
    margin-left: -2px;
}


/* iframe */

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-iframe {
    flex: 1;
    padding: 0;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-iframe iframe {
    width: 100%;
    height: 100%;
    margin-left: -2px;
}

/* Audio */

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-audio center,
#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-embed center {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-audio {
    flex: 1;
    text-align: center;
}

#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-audio img {
    width: 100%;
    height: 100%;
}

/* Builder */


#wdkCard_Content.wdk-document.fullscreen .wdk-documentfind-builder {
    height: 100%;
    padding: 16px 24px;
}






.wdk-document:not(.opened) .ewtcio {
    display: block;
    position: relative;
    width: 90%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wdk-document.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* overflow: auto; */
    z-index: 9999999;
}
.wdk-document.fullscreen ~ .wdk-fullscreen-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999998;
    background-color: rgba(0,0,0,.8);
}
.wdk-document.fullscreen .btn .open,
.wdk-document.fullscreen .btn .icon-fullscreen,
.wdk-document:not(.fullscreen) .btn .icon-fullscreen_exit {
    display: none;
}
.wdk-document.fullscreen .btn .notopen,
.wdk-document.fullscreen .btn .icon-fullscreen_exit {
    display: initial;
}
.wdk-fullscreen-header .btn.btn-featured {
    position: absolute;
    top: 0;
    right: 16px;
}
.wdk-fullscreen-header {
    padding-right: 104px;
}
.wdk-document.fullscreen {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    padding-top: 100px;
}
.wdk-document.fullscreen .wdk-fullscreen-header {
    padding: 20px 104px 20px 20px;
    background-color: var(--grey-01);
    width: 100%;
    max-width: 100%;
    top: 0;
    position: absolute;
    left: 0;
}
@media (max-width: 992px) {
    .wdk-document.fullscreen .wdk-fullscreen-header {
        padding: 20px 64px 20px 20px;

    }
    .wdk-document.fullscreen .wdk-fullscreen-header h2.wdk-title {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.wdk-document.fullscreen .wdk-fullscreen-header .btn.btn-featured {
    top: 11px;
}
