.download_all:disabled {
    cursor: not-allowed;
}

.download_all:disabled:hover {
    background-color: #6B7280;
}

.tox .tox-toolbar__group {
    padding: 0 2px 0px 2px !important;
}

.tox .tox-number-input {
    background: none !important;
}





/* SHIMMER EFFECT */

.editor-skeleton {
    width: 100%;
    margin: 0 auto;
}

/* Match the real Lexical editor box model exactly so the skeleton occupies the
   identical footprint and there is no layout shift (CLS) when React replaces it. */
.editor-skeleton,
.editor-skeleton * {
    box-sizing: border-box;
}

/* Mirror .toolbar: height 40px, padding 4px, 1px #D1D5DB bottom border. */
.editor-skeleton .es-toolbar {
    display: flex;
    align-items: center;
    background: #fff;
    height: 40px;
    padding-left: 4px;
    padding-right: 4px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #D1D5DB;
}

/* Clip the rounded corners. The toolbar scrolls horizontally exactly like the
   real .toolbar (overflow:auto / overflow-y:hidden) so it stays responsive on
   narrow screens; the scrollbar is hidden because this is a placeholder. */
.editor-skeleton {
    overflow: hidden;
}

.editor-skeleton .es-toolbar {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.editor-skeleton .es-toolbar::-webkit-scrollbar {
    display: none;
}

/* Mirror .editor (height 350px) + .ContentEditable__root padding (8px 16px 0 40px). */
.editor-skeleton .es-content {
    background: #fff;
    padding: 8px 16px 0px 40px;
    min-height: 350px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Each cell mirrors one loaded .toolbar-item footprint. Real toolbar items carry
   no margin (spacing comes from each item's own width), so the cells do the same:
   fixed width + margin 0, with the shimmer bar centered inside. This keeps every
   1px separator at the exact x-offset of the real .toolbar .divider — the dividers
   do not move when the editor replaces the skeleton. */
.editor-skeleton .es-cell {
    flex-shrink: 0;
    height: 40px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed-width icon controls (constant across breakpoints). */
.editor-skeleton .es-w32 { width: 32px; }
.editor-skeleton .es-w40 { width: 40px; }
.editor-skeleton .es-w56 { width: 56px; }
.editor-skeleton .es-w60 { width: 60px; }

/* Dropdown controls. Above 1100px the real toolbar shows the dropdown label
   (.dropdown-button-text); at <=1100px that text is hidden, so the buttons
   collapse to icon + chevron. The skeleton mirrors both widths at the same
   breakpoint so the dividers land in the right place at every screen size. */
.editor-skeleton .es-dd     { width: 142px; } /* block format & font family */
.editor-skeleton .es-insert { width: 108px; } /* insert dropdown */
.editor-skeleton .es-align  { width: 127px; } /* alignment dropdown */

/* The shimmer bar, inset 6px each side to leave a gap between adjacent controls.
   A percentage-based background sweep gives a smooth, continuous shimmer at any
   cell width (the previous px-based sweep had dead frames on narrow cells). */
.editor-skeleton .es-cell > i {
    display: block;
    width: calc(100% - 12px);
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, #ededed 25%, #f5f5f5 50%, #ededed 75%);
    background-size: 200% 100%;
    animation: es-shimmer 1s linear infinite;
}

/* Mirror .toolbar .divider exactly: 1px x 32px, #D1D5DB, no margin (flush). With
   the toolbar 40px tall, the 32px separator centers to the same 4px top/bottom. */
.editor-skeleton .es-sep {
    flex-shrink: 0;
    width: 1px;
    height: 32px;
    margin: 0;
    background: #D1D5DB;
}

@keyframes es-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editor-skeleton .es-cell > i {
        animation: none;
    }
}

/* <=1100px: dropdown labels are hidden in the real toolbar, so the dropdown
   cells collapse to icon + chevron width — same breakpoint as index.css. */
@media screen and (max-width: 1100px) {
    .editor-skeleton .es-dd     { width: 58px; }
    .editor-skeleton .es-insert { width: 54px; }
    .editor-skeleton .es-align  { width: 56px; }
}

@media screen and (max-width: 1025px) {
    .editor-skeleton .es-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    #fakePlaceholder {
        left: 8px;
    }
}