.container {
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.toolbar-block__buttons {
    display: flex;
    align-items: center;

}

.toolbar-block {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    justify-content: space-between;
}

.comment-toolbar-block {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}

.main-block {
    display: flex;
}

.left-panel, .right-panel {
    min-width: 300px;
    max-width: 300px;
    padding: 20px;
}

.left-panel ul {

    li {
        border: 1px solid #EAEAEA;
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 5px;
        cursor: pointer;

        .block-item-title {
            font-size: 14px;
            font-weight: 700;
            width: calc(100% - 33px);
            overflow: hidden;
            display: inline-block;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        &:hover, &.active {
            background: #EAEAEA;
        }

        &.new-block {
            padding: 5px;
            width: fit-content;
            margin: 0 auto 5px;

            a {
                display: flex;
                align-items: center;

                img {
                    margin-right: 10px;
                }
            }

        }
    }
}

.right-panel {
    .editor-title {
        padding-bottom: 15px;
    }
}

.panel {
    padding: 20px;
}

.central-panel {
    width: 100%;
    padding: 20px;
}

.central-panel a.internal-document-link {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    cursor: pointer;
}

.central-panel a.internal-document-link::after {
    content: " ↗";
    font-size: 0.8em;
}

.document-chat-panel {
    width: 100%;
    border-top: 1px solid #ddd;
    background: #f8fafc;
    overflow: hidden;
}

.document-chat-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

.document-chat-panel__description {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
}

.document-chat-panel__error {
    margin: 0 20px 16px;
    color: #d00;
}

.document-chat-panel__error[hidden],
#documentChatContent[hidden] {
    display: none;
}

#documentChatContent {
    border-top: 1px solid #ddd;
    background: #fff;
}

.document-chat-panel iframe {
    display: block;
    width: 100%;
    height: min(70vh, 720px);
    min-height: 480px;
    border: 0;
}

.document-chat-selection-menu {
    position: fixed;
    z-index: 1000;
    padding: 6px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.document-chat-selection-menu[hidden] {
    display: none;
}

.document-chat-selection-menu button {
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: #2f7d32;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.document-chat-selection-menu button:hover {
    background: #256628;
}

.document-chat-selection-menu button:disabled {
    cursor: wait;
    opacity: 0.65;
}

textarea {
    width: 100%;
    height: 200px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


.editor-title {
    font-size: 22px;
    font-weight: 700;
}

.max-w-7xl {
    max-width: none !important;
}

.editor-header-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.btn {
    border: none;
    padding: 4px 8px;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    margin-right: 10px;

    &.small {
        font-size: 10px;
    }

    &.bold {
        font-weight: 700;
    }

    &.disabled {
        background-color: transparent;
        border: 1px solid #D9D9D9;
        color: #D9D9D9;
    }
}

.btn-primary {
    background: #397939;
    color: #fff;
}

.btn-primary-outlet {
    background: none;
    color: #397939;
    border: 1px solid #397939;
}

.btn-success-outline {
    color: #3F863F !important;
    border: 1px solid #3F863F;
    background-color: transparent !important;

    .animate-spin {
        color: #3F863F !important;
    }
}

.btn-danger-outline {
    color: #E15D5D !important;
    border: 1px solid #E15D5D;
    background-color: transparent !important;
}

.control-form-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;

    .btn:last-child {
        margin: 0;
    }
}

.btn-outline {
    border: 1px solid;
}

.editor-date {
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    color: #808080;
}

.block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .new-block-item_input {
        border: none;
        padding: 0;
        font-style: italic;
        width: calc(100% - 30px);

        &:focus {
            border: none;
        }
    }

    .new-block-item_btn {
        width: 20px;
        height: 20px;
        color: #009000;
        border-radius: 50%;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.block-item-indicators {
    display: flex;
    align-items: center;

    .tag {
        margin-left: 5px;
        width: 14px;
        height: 14px;
        border-radius: 50%;

        &.done {
            border: 1px solid #3F863F;
            background: #C3FFC3;
        }

        &.warning {
            border: 1px solid #84763D;
            background: #FFF3C3;
        }

        &.work {
            border: 1px solid #3C7581;
            background: #C3F5FF;

        }
    }
}

.block-item-buttons {
    display: flex;
    align-items: center;

    .block-item-buttons__update {
        width: 20px;
        height: 20px;
        color: #1e40af;
        margin-right: 5px;
    }

    .block-item-buttons__delete {
        width: 20px;
        height: 20px;
        color: #f00;
    }
}

.comment-item {
    padding: 10px;
    background: #FBFBFB;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;


    .comment-item-author {
        margin: 0;
        color: #206485;
        font-weight: 700;
    }

    .comment-item-message {
        margin: 0;
    }

    .comment-item-date {
        color: #AAAAAA;
        text-align: end;
        font-size: 10px;
    }
}

.comment-form {
    position: relative;

    .comment-textarea {
        width: 100%;
        height: 40px;
        border-radius: 5px;
        border: 1px solid #D9D9D9;
        overflow: hidden;
    }

    .comment-send-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: transparent;
        padding: 0;
        margin: 0;

        &:hover {
            background: transparent;

        }
    }
}

.checkbox-block {
    display: flex;
    flex-direction: column;;
}

.checkbox-title {
    font-weight: 600;
    margin-top: 25px;
    font-size: 16px;
}

.fi-checkbox-input {
    color: #2C2C2C !important;
}

.fi-fo-field-wrp-label {
    color: #1E1E1E;
}

.edit-block-select select {
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 8px;
    border: 1px solid #D9D9D9
}

.edit-block-select {
    display: none;
}

.no-padding {
    .p-6 {
        padding: 0 !important;
    }
}

.flex.h-full:has(> .tiptap-prosemirror-wrapper ) {
    overflow: scroll;
}

.tiptap-prosemirror-wrapper {
    width: auto !important;
    overflow: visible !important;
}


.fi-section-content-ctn .fi-section-content .fi-fo-component-ctn .fi-fo-field-wrp .grid .flex.gap-3 .flex-1 {
    width: 100%;
}

.container {
    max-width: 100% !important;
}

.fi-fo-rich-editor {
    overflow-wrap: break-word;
}

.app-version-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;

    .app-version-block__text {
        font-size: 12px;
        font-weight: 400;
        color: #206485;
    }
}

form:has(> .panel > .form-block__template) {
    width: 100%;
}

.block__template > div {
    display: flex;
}

div:has(> .setting-block__template) {
    max-width: 300px;
}

div:has(> .editor-block__template) {
    width: 100%;
}

.btn-warning {
    background: #f2ae43;
}

.btn-warning-outlet {
    color: #f2ae43;
    border: 1px solid #f2ae43;
}

.btn-blue {
    background: #2170fa;
    color: white;
}

.btn-blue-outlet {
    color: #2170fa;
    border: 1px solid #2170fa;
}

.tiptap-form, .editor-block__template {
    overflow-x: hidden;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.custom-input {
    border-color: #e4e4e7 !important;
    border-width: 1px;
}

.custom-input:focus {
    border-color: #397939 !important;
    --tw-ring-shadow: 0 0 0 calc(1px + 0px) #397939 !important;
}

.spinner {
    display: flex;
    align-items: center;
}

.spinner::before {
    content: '';
    display: inline-block;
    border: 0.2em solid rgba(255, 255, 255, 0.3);
    border-top: 0.2em solid #fff;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    animation: spin 0.6s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.custom-tiptap .ProseMirror ul.checked-list li:before {
    content: '-' !important;
}
