/* ckeditor */
figure.image.image_resized {
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}
figure.image.image_resized img {
    width: 100%;
}
figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    min-width: 100%;
    height: auto;
}
figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 0.9em auto;
    min-width: 50px;
}

/* tables */
figure.table {
    margin: 0;
}

figure.table > table {
    height: 100%;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

/*MT:2025-05-11 */

table.table.content-table[style*="border-style" i],
figure.table > table[style*="border-style" i]{
    border-width: 1px;
}

table.table.content-table td:not([style*="border:" i]):not([style*="border-width" i]):not([style*="border-color" i]),
table.table.content-table th:not([style*="border:" i]):not([style*="border-width" i]):not([style*="border-color" i]),
figure.table td:not([style*="border:" i]):not([style*="border-width" i]):not([style*="border-color" i]),
figure.table th:not([style*="border:" i]):not([style*="border-width" i]):not([style*="border-color" i]) {
    border-top: none !important;
    padding: 0.4rem;
}

table.table.content-table td[style*="border-width" i],
table.table.content-table th[style*="border-width" i],
figure.table td[style*="border-width" i],
figure.table th[style*="border-width" i],
table.table.content-table[style*="border-width" i],
figure.table > table[style*="border-width" i] {
    border-style: solid;
}

table.table.content-table td[style*="border-color" i],
table.table.content-table th[style*="border-color" i],
figure.table td[style*="border-color" i],
figure.table th[style*="border-color" i],
table.table.content-table[style*="border-color" i],
figure.table > table[style*="border-width" i] {
    border-style: solid;
    border-width: 1px;
}

table.table.content-table td,
table.table.content-table th,
figure.table td,
figure.table th {
    padding: 0.4rem;
}

/* SC:2024-02-16: fix ckeditor in Bootstrap modal */
:root {
    --ck-z-default: 100 !important;
}

.ck-content p {
    margin-bottom: 0.25rem !important;
}
.ck.ck-content>:first-child {
    margin-top: 0.1rem !important;
}

.ck.ck-editor__editable {
    padding: 0 !important;
}
/*
.ck.ck-editor__editable.ck-focused {
    padding: 0.5rem !important;
}
*/