/* /css/tinymce-editor-styles.css */

/* ----------------------------------------------------- */
/* 1. 表格级别 (table_class_list)
/* ----------------------------------------------------- */

/* 基础设置：确保所有表格都使用合并边框模型 */
.mce-content-body table {
    border-collapse: collapse;
}

/* --- 组合样式 --- */

/* 1.1: 彻底无边框 (内外都无) */
.table-style-no-border,
.table-style-no-border > tbody > tr > td,
.table-style-no-border > tbody > tr > th {
    border: none !important;
}

/* 1.2: 仅外框线 (标准) */
.table-style-outer-only {
    border: 1px solid #ccc !important;
}
.table-style-outer-only > tbody > tr > td,
.table-style-outer-only > tbody > tr > th {
    border: none !important;
}

/* 1.3: 仅行列区分线 (内线-浅色) */
.table-style-inner-light {
    border: none !important;
}
.table-style-inner-light > tbody > tr > td,
.table-style-inner-light > tbody > tr > th {
    border: 1px solid #eee !important;
}

/* 1.4: 仅行列区分线 (内线-标准) */
.table-style-inner-standard {
    border: none !important;
}
.table-style-inner-standard > tbody > tr > td,
.table-style-inner-standard > tbody > tr > th {
    border: 1px solid #ccc !important;
}

/* 1.5: 完整网格线 (浅色) */
.table-style-grid-light,
.table-style-grid-light > tbody > tr > td,
.table-style-grid-light > tbody > tr > th {
    border: 1px solid #eee !important;
}

/* 1.6: 完整网格线 (标准) */
.table-style-grid-standard,
.table-style-grid-standard > tbody > tr > td,
.table-style-grid-standard > tbody > tr > th {
    border: 1px solid #ccc !important;
}

/* 1.7: 完整网格线 (深色) */
.table-style-grid-dark,
.table-style-grid-dark > tbody > tr > td,
.table-style-grid-dark > tbody > tr > th {
    border: 1px solid #333 !important;
}

/* 1.8: 仅表头下边框 (常用于简洁风格) */
.table-style-header-bottom {
    border: none !important;
}
.table-style-header-bottom > tbody > tr > td {
    border: none !important;
}
.table-style-header-bottom > tbody > tr > th,
.table-style-header-bottom > thead > tr > th {
    border: none !important;
    border-bottom: 2px solid #5c5c5c !important;
}


/* ----------------------------------------------------- */
/* 2. 行级别 (table_row_class_list)
/* ----------------------------------------------------- */

/* 2.1: 行-无边框 */
.row-style-no-border > td,
.row-style-no-border > th {
    border: none !important;
}

/* 2.2: 行-仅下边框 (浅色) */
.row-style-bottom-light > td,
.row-style-bottom-light > th {
    border: none !important;
    border-bottom: 1px solid #eee !important;
}

/* 2.3: 行-仅下边框 (标准) */
.row-style-bottom-standard > td,
.row-style-bottom-standard > th {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
}

/* 2.4: 行-仅下边框 (深色/表头) */
.row-style-bottom-heavy > td,
.row-style-bottom-heavy > th {
    border: none !important;
    border-bottom: 2px solid #5c5c5c !important;
}

/* 2.5: 行-仅上边框 (标准) */
.row-style-top-standard > td,
.row-style-top-standard > th {
    border: none !important;
    border-top: 1px solid #ccc !important;
}

/* 2.6: 行-上下边框 (标准) */
.row-style-top-bottom-standard > td,
.row-style-top-bottom-standard > th {
    border: none !important;
    border-top: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
}

/* ----------------------------------------------------- */
/* 3. 单元格级别 (table_cell_class_list)
/* ----------------------------------------------------- */

/* 3.1: 单元格-无边框 */
.cell-style-no-border {
    border: none !important;
}

/* 3.2: 单元格-仅上边框 */
.cell-style-top {
    border: none !important;
    border-top: 1px solid #ccc !important;
}

/* 3.3: 单元格-仅右边框 */
.cell-style-right {
    border: none !important;
    border-right: 1px solid #ccc !important;
}

/* 3.4: 单元格-仅下边框 */
.cell-style-bottom {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
}

/* 3.5: 单元格-仅左边框 */
.cell-style-left {
    border: none !important;
    border-left: 1px solid #ccc !important;
}

/* 3.6: 单元格-仅下边框 (深色/加粗) */
.cell-style-bottom-heavy {
    border: none !important;
    border-bottom: 2px solid #5c5c5c !important;
}

/* 3.7: 单元格-仅上边框 (深色/加粗) */
.cell-style-top-heavy {
    border: none !important;
    border-top: 2px solid #5c5c5c !important;
}

/* 3.8: 单元格-恢复完整边框 (用于在无边框表格中单独显示) */
.cell-style-all {
    border: 1px solid #ccc !important;
}
