/* Shared table presentation for the storefront and admin content. */
:root {
    --table-line:#e5eaf1;
    --table-heading:#f6f8fc;
    --table-hover:#f2f6ff;
}
:where(main) table {
    border-collapse:separate;
    border-spacing:0;
    width:100%;
    background:var(--body-bg,hsl(var(--background)));
    border:1px solid var(--table-line);
    border-radius:12px;
    color:inherit;
    font-variant-numeric:tabular-nums;
}
:where(main) table :is(th,td) {
    padding:12px 14px;
    border:0;
    border-bottom:1px solid var(--table-line);
    vertical-align:middle;
    line-height:1.7;
}
:where(main) table thead th {
    background:var(--table-heading);
    font-size:12px;
    font-weight:600;
    color:var(--body-quiet-color,#64748b);
}
:where(main) table tbody tr:last-child > :is(th,td) { border-bottom:0; }
:where(main) table tbody tr:hover > :is(th,td) { background-color:var(--table-hover); }
:where(main) table caption { padding:12px 14px; text-align:start; font-weight:600; }
html[data-theme="dark"] { --table-line:#334155; --table-heading:#1e293b; --table-hover:#243247; }
@media(prefers-color-scheme:dark) {
    html[data-theme="auto"], html.dark { --table-line:#334155; --table-heading:#1e293b; --table-hover:#243247; }
}
@media(max-width:767px) { :where(main) table :is(th,td) { padding:10px; } }
