@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap');

/* global editor styles */

.ck.ck-content.ck-editor__editable {
  height: 100%;
}

.ck.ck-editor {
  display: flex;
  flex-direction: column;
  height: 100% !important;
  overflow: hidden;
}

.ck.ck-editor__main {
  border-bottom: 1px lightgray solid;
  height: 100%;
  overflow-y: auto;
}

.editor-container, .main-container {
    height: 100%;
}

.editor-container__editor-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
}

/* popup window styles */

.custom-editor-popup-window {
  font-family: "Assistant", sans-serif;
}

    .custom-editor-popup-window .ck.ck-balloon-panel {
        z-index: 99999999;
    }

    .custom-editor-popup-window .editor-container__editor {
        width: 100%;
    }

    .custom-editor-popup-window .editor-container__editor-wrapper {
        width: 100%;
    }

    .custom-editor-popup-window .content-footer {
        flex: 0 1 auto;
        padding: 1.25rem 0 2rem 0;
    }

.custom-editor-popup-window .ck.ck-editor {
  min-height: 150px;
}

.custom-editor-popup-window .ck.ck-editor__top.ck-reset_all {
  position: sticky;
  top: 0;
  z-index: var(--ck-z-modal);
}

.custom-editor-popup-window .ck.ck-sticky-panel .ck-sticky-panel__content_sticky {
  position: unset;
}

.custom-editor-popup-window .ck.ck-sticky-panel__placeholder {
  display: none !important;
}

.custom-editor-popup-window .control-column {
  padding: 1rem 2rem 1rem 1rem;
}

.custom-editor-popup-window .k-animation-container {
  padding: 0 20px 0 0;
}

.custom-editor-popup-window .k-dropdowngrid-popup, .k-data-table {
  font-family: "Assistant", sans-serif;
}

.custom-editor-popup-window .k-grid-content {
  overflow-y: auto;
}

.custom-editor-popup-window .k-grid-footer,
.custom-editor-popup-window .k-grid-header {
  padding-right: 0;
}

.custom-editor-popup-window .k-grid-footer-wrap,
.custom-editor-popup-window .k-grid-header-wrap {
  border-right-width: 0;
}

.custom-editor-popup-window .k-header {
  background-color: #ebebeb !important;
  text-transform: uppercase;
}

.custom-editor-popup-window .k-input.k-disabled {
  background: #f8f9fa;
  border: solid 1px #c2c3c5;
  color: #222;
}

.custom-editor-popup-window .k-pager-numbers .k-selected {
  background-color: #dee2e6 !important;
}

.custom-editor-popup-window .k-window-content {
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0;
}

.custom-editor-popup-window .k-window-title {
  font-size: 120%;
  font-weight: 600;
}

.custom-editor-popup-window .label-column {
  font-weight: bold;
  line-height: 2rem;
  padding: 1rem 1rem 1rem 2rem;
  text-align: right;
}

.custom-editor-popup-window .lookup-search-text {
  background-color: #f8f9fa;
  border: solid 1px #dee2e6;
  margin: 20px 0 50px 0;
  padding: 20px;
  text-transform: uppercase;
}

.custom-editor-popup-window .lookup-search-text .k-popup {
  margin: 0 1rem 0 0;
  max-height: 135px;
}

.custom-editor-popup-window .lookup-search-text table td {
  cursor: pointer;
  text-transform: none;
}

.custom-editor-popup-window .main-container {
  flex: 1 1 auto;
  height: 100%;
  overflow: auto;
  width: 100%;
}

.custom-editor-popup-window .no-toolbar .k-grid-toolbar {
  display: none;
}

.custom-editor-popup-window button.k-button.bottom-button {
  display: block;
  margin: auto;
  min-width: 150px;
  text-transform: uppercase;
}

.custom-editor-popup-window.popup-large {
  height: 80%;
  width: 80%;
}

.custom-editor-popup-window.popup-medium {
  height: 60%;
  width: 60%;
}

/* file link plugin styles */

.custom-editor-popup-window .directory-browser .link-button {
    border-radius: 0;
    display: block;
    width: 100%;
}

.custom-editor-popup-window .directory-browser .k-listview-item {
    cursor: pointer;
    padding: 2px;
}

    .custom-editor-popup-window .directory-browser .k-listview-item:hover {
        background-color: #f8f9fa;
    }

.custom-editor-popup-window .directory-browser .k-button-link-base:focus {
    box-shadow: none;
    outline: none;
}

.custom-editor-popup-window .directory-browser span.telerik-blazor.k-icon-sm.k-icon.k-font-icon {
    display: inline-block;
    padding: 2px 5px 0 0;
}

    .custom-editor-popup-window .directory-browser span.telerik-blazor.k-icon-sm.k-icon.k-font-icon.k-i-file {
        color: #5d669d;
    }

    .custom-editor-popup-window .directory-browser span.telerik-blazor.k-icon-sm.k-icon.k-font-icon.k-i-folder {
        color: #000;
    }

/* import word plugin */

.import-word-plugin .k-dropzone {
    background-color: darkgray !important;
}

.import-word-plugin .k-dropzone-hint {
    color: black !important;
}

.import-word-plugin .import-button {
    margin: 2rem 0;
}

/* questions plugin */
.qustion-locked-warning {
    color: red;
    font-weight: bold;
    padding: 1rem;
}

/* balloon editor */
.balloon-editor .main-container,
.balloon-editor .editor-container__editor-wrapper,
.balloon-editor .editor-container__editor {
    width: 100%;
}

.balloon-editor {
    min-height: 56px;
}

    .balloon-editor .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
        border: none;
        box-shadow: none;
    }

    .balloon-editor .ck.ck-editor__editable_inline {
        font-family: "Assistant", sans-serif;
        padding-block: .275rem;
        padding-inline: .275rem;
    }

        .balloon-editor .ck.ck-editor__editable_inline > :first-child {
            margin-top: unset;
        }

        .balloon-editor .ck.ck-editor__editable_inline > :last-child {
            margin-bottom: unset;
        }

    .balloon-editor p {
        margin: 0;
        padding: 0;
    }