﻿/* Force EasyMDE preview styles */
.easymde-custom-preview {
    display: block !important;
    background: transparent !important;
    padding: 10px !important;
    border: none !important;
}

/* Ensure ordered (`<ol>`) and unordered (`<ul>`) lists align with tables */
    .easymde-custom-preview ol,
    .easymde-custom-preview ul {
        margin-left: 0 !important;
        padding-left: 20px !important; /*  Adjust padding for better alignment */
        list-style-position: outside !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

/* Apply bullet points ONLY to unordered lists (`<ul>`) */
.easymde-custom-preview ul {
    list-style-type: disc !important;
}

/* Ensure ordered lists (`<ol>`) use numbers (default) */
.easymde-custom-preview ol {
    list-style-type: decimal !important;
}

/* Ensure list items (`<li>`) have proper spacing */
.easymde-custom-preview li {
    padding-left: 5px !important;
}

/* Ensure tables align properly with lists */
.easymde-custom-preview table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-top: 10px !important;
}

    /* Ensure table cells align properly */
    .easymde-custom-preview table td,
    .easymde-custom-preview table th {
        text-align: left !important;
        padding: 8px !important;
        border: 1px solid #ddd !important;
    }

    /* Fix spacing between tables and lists */
    .easymde-custom-preview table + ol,
    .easymde-custom-preview table + ul {
        margin-top: 10px !important;
    }
