
/* One shared ruleset for all table-style-* tables */
table[class*="table-style-"] {
    /* defaults (in case something isn't set) */
    --header-bg: #222;
    --header-color: #fff;
    --table-bg: #fff;
    --table-color: #111;
    --radius: 0px;

    /* border control */
    --border-color: #111;
    --border-width: 1px;

    /* 0/1 toggles */
    --b-h: 0;  /* horizontal grid lines */
    --b-v: 0;  /* vertical grid lines */
    --b-o: 0;  /* outer border (optional; set to 1 when any border is enabled) */

    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--radius);

    /* outer border (optional) */
    border: calc(var(--b-o) * var(--border-width)) solid var(--border-color);

    background: var(--table-bg);
    color: var(--table-color);
}

/* header styling */
table[class*="table-style-"] th {
    background: var(--header-bg);
    color: var(--header-color);
    }

/* header styling */
table[class*="table-style-"].regulation-field-table-fixedcolumns-editor thead>tr> th,
table[class*="table-style-"].color-headers thead>tr> th {
background: var(--header-bg);
color: var(--header-color);
}

    /* body cells */
table[class*="table-style-"] td {
    background: var(--table-bg);
    color: var(--table-color);
    border-color: var(--table-color);
}

table[class*="table-style-"] th,
table[class*="table-style-"] td {
    border-color: transparent;
}

/* vertical grid lines: apply right border between cells */
table[class*="table-style-"] th:not(:last-child),
table[class*="table-style-"] td:not(:last-child) {
    border-right: calc(var(--b-v) * var(--border-width)) solid var(--border-color) !important;
}

/* horizontal grid lines: apply bottom border between rows */
table[class*="table-style-"] tr:not(:last-child) > th,
table[class*="table-style-"] tr:not(:last-child) > td {
    border-bottom: calc(var(--b-h) * var(--border-width)) solid var(--border-color) !important;
}

.block-wrapper .block-content table.table tr:nth-child(1)>td,
.block-wrapper .block-content table.table tr:nth-child(1)>th {
    border-bottom: calc(var(--b-h) * var(--border-width)) solid var(--border-color) !important;
    }



        table.table-style--1 {
        --header-bg: #333333;
        --header-color: #FFFFFF;
        --table-bg: #EEEEEE;
        --table-color: #333333;
        --radius: 4px;
        --border-color: #000000;

        --b-h: 1;
        --b-v: 0;
        --b-o: 0;
        }
    
        table.table-style-1 {
        --header-bg: #FFFFFF;
        --header-color: #0C1831;
        --table-bg: #FFFFFF;
        --table-color: #0C1831;
        --radius: 0px;
        --border-color: #E7E8EA;

        --b-h: 1;
        --b-v: 0;
        --b-o: 0;
        }
    