/* Shared table presentation for the editor and published articles. */
.rich-editor,.editorial-prose{min-width:0;overflow-x:auto}
.rich-editor table,.editorial-prose table{display:table;width:100%;min-width:0!important;border-collapse:collapse!important;border-spacing:0;margin:1.5rem 0;font-size:1rem;line-height:1.6;table-layout:auto}
.rich-editor table td,.rich-editor table th,.editorial-prose table td,.editorial-prose table th{border:1px solid #bbcdd6!important;padding:var(--table-padding,12px 16px)!important;vertical-align:top;min-width:90px;overflow-wrap:anywhere;text-transform:none;letter-spacing:normal;font-size:inherit}
.rich-editor table th,.editorial-prose table th{background:#e9f3f5;color:#123344;font-weight:700;text-align:left}
.rich-editor table td,.editorial-prose table td{background:#fff;color:#243d4c}
.rich-editor table tr:nth-child(even) td,.editorial-prose table tr:nth-child(even) td{background:#f6f9fa}
.rich-editor table caption,.editorial-prose table caption{text-align:left;font-weight:600;margin-bottom:10px}
.rich-editor table p,.editorial-prose table p{margin:0 0 .5em}
.rich-editor table td:focus-within,.rich-editor table th:focus-within{outline:2px solid #07899d;outline-offset:-2px}

:is(.rich-editor,.editorial-prose) table[data-table-spacing="compact"]{--table-padding:6px 8px}
:is(.rich-editor,.editorial-prose) table[data-table-spacing="roomy"]{--table-padding:20px 24px}
:is(.rich-editor,.editorial-prose) table[data-table-style="grid"] td{background:#fff}
:is(.rich-editor,.editorial-prose) table[data-table-style="plain"] :is(td,th){border-width:0 0 1px!important;background:transparent}
.table-tools[hidden]{display:none!important}
.table-tools{display:flex;flex-wrap:wrap;align-items:end;gap:14px;padding:18px;background:#edf6f8;border-top:1px solid #bbd4dc;font:14px/1.5 system-ui}
.table-tools label{display:grid;gap:5px;min-width:110px;flex:1}
.table-tools strong,.table-tools small{flex-basis:100%}
.table-tools input,.table-tools select{max-width:100%;box-sizing:border-box;min-height:40px}
.table-tools input[type=color]{width:100%}
.rich-editor table{max-width:100%}
