/* js/tiny_mce/plugins/tablepresets/css/table_styles.css */


/* Base tables */
.table-basic,
.table-comparison {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px auto;
    font-family: 'DM Sans', helvetica, sans-serif;
    font-size: 16px;
}


.table-basic thead th {
    text-align: center;
    background-color: #d3d3d3;
    color: #444444;
    padding: 14px;
    font-size: 18px;
}

.table-basic th,
.table-basic td {
    padding: 14px;
    text-align: center;
    overflow-wrap: break-word;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1.4;
}

.table-basic tbody tr:nth-child(odd) {
    background-color: #f1f1f1;
}

.table-basic tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Comparison Table specifics */
.table-comparison {
    max-width: 800px;
}
.table-basic th,
.table-basic td,
.table-comparison th,
.table-comparison td {
    padding: 14px;
    text-align: center;
    overflow-wrap: break-word;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1.4;
}

.table-comparison th,
.table-comparison td {
    border: 1px solid #222;
}
.table-comparison thead th {
    background: #dde5d1;
    color: #222;
    font-weight: bold;
    font-size: 18px;
    padding: 6px 8px;
    border-bottom: 1px solid #222;
    border-left: 1px solid #222;
    border-right: none;
}
.table-comparison tbody th {
    font-size: 18px;
}

.table-basic th p,
.table-basic td p,
.table-comparison th p,
.table-comparison td p {
    margin: 0;
    line-height: 1.4;
    font: inherit;
    color: inherit;
    text-align: inherit;
}
.table-comparison thead th:last-child {
    border-right: 1px solid #222;
}
.table-comparison thead th:not(.empty) {
    border-left: none;
}
.table-comparison thead th.empty {
    background: #fff;
}
.table-comparison tbody tr:nth-child(odd) th {
    background: #174c3c;
    color: #fff;
    font-weight: bold;
    text-align: center;
}
.table-comparison tbody tr:nth-child(even) th {
    background: #e9f1e3;
    color: #000000;
    font-weight: bold;
    text-align: center;
}
.table-comparison tbody tr:nth-child(odd) td {
    background: #fff;
}
.table-comparison tbody tr:nth-child(even) td {
    background: #fff;
}

.table-comparison th:first-child,
.table-comparison td:first-child {
    width: 25%;
    min-width: 80px;
}

.table-settings {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}
.table-settings label {
    margin-right: 8px;
    white-space: nowrap;
}
.table-settings input[type="number"] {
    padding: 4px;
    width: 100px;
    margin-left: 8px;
}

.table-comparison thead tr:first-child th:first-child {
    background: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-basic,
    .table-comparison {
        font-size: 13px;
        margin: 15px auto;
    }

    .table-basic th,
    .table-basic td,
    .table-comparison tbody th,
    .table-comparison td {
        padding: 10px 12px;
        font-size: 15px;
    }
    .table-basic thead th,
    .table-comparison thead th {
        font-size: 15px;
    }

    .table-basic { max-width: 100%; }
    .table-comparison { max-width: 100%; }
}

@media (max-width: 480px) {
    .table-basic,
    .table-comparison {
        font-size: 12px;
        margin: 15px auto;
    }

    .table-basic th,
    .table-basic td,
    .table-comparison tbody th,
    .table-comparison td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .table-basic thead th,
    .table-comparison thead th {
        font-size: 13px;
    }

    .table-comparison {
        display: table;
        overflow: visible;
        white-space: normal;
        width: 100%;
    }
}