:root {
    --blog-table-head-bg: #0f6fbc;
    --blog-table-head-color: #ffffff;
    --blog-table-border: #e2e8f0;
}

.blog-long-content table,
.blog-section-content table,
.blog-detail-entry table,
.ck-content table {
    width: auto;
    min-width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.blog-long-content table th,
.blog-long-content table td,
.blog-section-content table th,
.blog-section-content table td,
.blog-detail-entry table th,
.blog-detail-entry table td,
.ck-content table th,
.ck-content table td {
    border: 1px solid var(--blog-table-border);
    padding: 12px 14px;
    vertical-align: middle;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.blog-long-content table tr.blog-table-head > th,
.blog-long-content table tr.blog-table-head > td,
.blog-section-content table tr.blog-table-head > th,
.blog-section-content table tr.blog-table-head > td,
.blog-detail-entry table tr.blog-table-head > th,
.blog-detail-entry table tr.blog-table-head > td,
.blog-detail-entry table thead th,
.ck-content table tr.blog-table-head > th,
.ck-content table tr.blog-table-head > td,
.ck-content table thead th {
    background-color: var(--blog-table-head-bg) !important;
    color: var(--blog-table-head-color) !important;
    font-weight: 700;
}

.blog-long-content table tbody td,
.blog-section-content table tbody td,
.blog-detail-entry table tbody td,
.ck-content table tbody td {
    background-color: #ffffff;
    color: #1f2937;
}

.blog-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.blog-detail-page .col-lg-8,
.blog-detail-entry,
.blog-long-content,
.blog-section-content {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 767px) {
    .blog-table-wrap {
        margin: 18px 0;
    }

    .blog-long-content table th,
    .blog-long-content table td,
    .blog-section-content table th,
    .blog-section-content table td,
    .blog-detail-entry table th,
    .blog-detail-entry table td {
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.4;
    }

    .blog-long-content table tr.blog-table-head > th,
    .blog-long-content table tr.blog-table-head > td,
    .blog-section-content table tr.blog-table-head > th,
    .blog-section-content table tr.blog-table-head > td,
    .blog-detail-entry table tr.blog-table-head > th,
    .blog-detail-entry table tr.blog-table-head > td,
    .blog-detail-entry table thead th {
        font-size: 12px;
        line-height: 1.35;
    }
}

@supports (-webkit-touch-callout: none) {
    .blog-table-wrap {
        overflow-x: scroll;
        transform: translateZ(0);
    }

    .blog-table-wrap table {
        width: max-content;
        min-width: 100%;
    }
}
