/*
 * ckeditor-reset.css
 * ----------------------------------------------------------
 * Purpose: Hard reset for CKEditor content area in TYPO3.
 * This stylesheet is loaded globally via ext_localconf.php:
 * $GLOBALS['TYPO3_CONF_VARS']['BE']['stylesheets']['sitepackage']
 *
 * It neutralizes Bootstrap and frontend styles that may affect
 * the backend editor view, ensuring a clean editing experience.
 */

/* Auto style panel height*/
.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{
    height: auto !important;
}

.ck-reset {

    /* Reset common text-level and structural elements to neutral defaults */
    p, h1, h2, h3, h4, h5, h6, ul, ol, li, table, tr, td, th, blockquote {
        all: unset;
        display: revert;
    }

    /* Override Bootstrap layout-related classes to prevent interference */
    [class^="col-"], [class*=" col-"], .row, .container, .container-fluid {
        all: unset !important;
        display: block !important;
    }

    /* Normalize link appearance inside the editor */
    a {
        color: inherit;
        text-decoration: none;
        background: transparent;
        transition: none !important;
        cursor: pointer;
        font-weight: inherit;
        font-style: inherit;
    }

    /* Remove default spacing from unordered lists */
    ul {
        padding: 0;
        margin: 0;
    }

    /* Remove quotation styling and spacing from blockquotes */
    blockquote {
        margin: 0;
        padding: 0 !important;
        border: none !important;
        background: none;
        font-style: normal !important;
        quotes: none;
    }

    blockquote::before,
    blockquote::after {
        content: none;
    }
}
