table.reactive {
    --left-shadow-width: 20px;
    --right-shadow-width: 20px;
    --shadow-color: var(--background-color);
    --page-color: var(--background-color, var(--surface-xdark));
    overflow-y: overlay;
}

table.reactive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

table.reactive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .1);
}

table.reactive::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 100px rgba(250, 250, 250, .9);
    border-radius: 8px;
    border: 2px solid transparent;
}

table.reactive::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, .2);
}

table.reactive::-webkit-resizer {
    background: transparent;
}

table.reactive:hover::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .15);
}

table.reactive:hover::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 100px rgba(250, 250, 250, .9);
    border: 2px solid transparent;
}

table.reactive.sticky-header-col thead th.tail {
    width: 10px;
}

table.reactive.sticky-header-col thead th.sticky-header {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: var(--background-color);
}

table.reactive.sticky-header-col thead th.sticky-header+th:not(.sticky-header) {
    border-left: calc(var(--left-shadow-width) + var(--pad)) solid transparent;
    min-width: 90px;
}

table.reactive.sticky-header-col tbody th {
    position: sticky;
    left: 0;
    z-index: 10;
    background-color: inherit;
}

table.reactive.sticky-header-col tbody th:last-of-type::after {
    content: "";
    display: block;
    width: 20px;
    position: absolute;
    left: 100%;
    height: 100%;
    top: 0;
    background-image: linear-gradient(90deg, var(--shadow-color), transparent);
    opacity: min(.5, var(--scroll-h, 0)*20);
    transition: opacity var(--ani-quick);
    pointer-events: none;
}

table.reactive.sticky-header-col tbody th+td {
    border-left: calc(var(--left-shadow-width) + var(--pad)) solid transparent;
    position: relative;
}

table.reactive.sticky-header-col tbody .tail {
    position: sticky;
    right: 0;
}

table.reactive.sticky-header-col tbody .tail::before {
    content: "";
    display: block;
    width: 15px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5000;
    background-image: linear-gradient(-90deg, var(--page-color), transparent);
    opacity: calc(var(--scroll-to-w, 0)*100);
    transition: opacity var(--ani-quick);
    pointer-events: none;
}

table.reactive th .overflow-label,
table.reactive td .overflow-label {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    max-width: initial !important;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}

.card {
    --pad: 20px;
    --gap: 10px;
    --box-color: hsl(var(--surface-xlight));
    --background-color: var(--box-color);
    --text-color: hsl(var(--text));
    --line-color: hsl(var(--surface-light));
    padding: var(--pad, --gap, 10px);
    border-radius: var(--radius, 20px);
    background-color: var(--box-color, hsl(var(--surface-xlight)));
    font-size: var(--font-body-size);
}

.dark .card {
    --box-color: hsl(var(--surface-dark));
    --line-color: hsl(var(--surface-medium));
}

.card.card-dashed {
    outline: 4px dashed var(--box-color);
    background-color: hsl(var(--background-light));
}

.card.card-default {
    --box-color: hsl(var(--surface-xlight));
}

.card>hr {
    margin-left: calc(var(--pad)*-1);
    margin-right: calc(var(--pad)*-1);
    width: calc(100% + var(--pad)*2);
    box-sizing: border-box;
    border-width: 2px;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
}

.card>.row {
    margin-left: calc(var(--gap)*-.5);
    margin-right: calc(var(--gap)*-.5);
    width: calc(100% + var(--gap));
}

.card>.row>.col {
    padding-left: calc(var(--gap)*.5);
    padding-right: calc(var(--gap)*.5);
    max-width: calc(100% - var(--gap));
}

.card hr {
    border-style: solid;
    border-color: var(--line-color);
    margin-top: var(--gap, 10px);
    margin-bottom: var(--gap, 10px);
}

.card header {
    font-size: var(--font-body-size);
}

.card .card-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--line-color);
    margin-top: calc(var(--pad)*-1);
    margin-left: calc(var(--pad)*-1);
    margin-right: calc(var(--pad)*-1);
    padding: var(--pad);
    color: hsl(var(--text-color));
    border-radius: var(--radius) var(--radius) 0 0;
}

.card .card-header small {
    display: block;
    margin-top: 5px;
    font-size: 70%;
}

.card .card-header.status-default {
    --status-color: var(--default);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-primary {
    --status-color: var(--primary);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-secondary {
    --status-color: var(--secondary);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-alternative {
    --status-color: var(--alternative);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-danger {
    --status-color: var(--danger);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-warn {
    --status-color: var(--warn);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-dark {
    --status-color: var(--dark);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-success {
    --status-color: var(--success);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-header.status-info {
    --status-color: var(--info);
    background-color: hsl(var(--status-color));
    color: hsl(var(--background-light));
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card .card-footer {
    display: flex;
    align-items: center;
    border-top: 2px solid var(--line-color);
    margin-bottom: calc(var(--pad)*-1);
    margin-left: calc(var(--pad)*-1);
    margin-right: calc(var(--pad)*-1);
    padding: var(--pad);
    border-radius: 0 0 var(--radius, 20px) var(--radius, 20px);
    color: hsl(var(--text-color));
}

.card.tipography h1 {
    font-size: var(--h4-size);
    font-weight: var(--h4-weight);
}

.card.tipography h2 {
    font-size: var(--h5-size);
    font-weight: var(--h5-weight);
}

.card.tipography h3 {
    font-size: var(--h6-size);
    font-weight: var(--h6-weight);
}

.card.tipography h1,
.card.tipography h2,
.card.tipography h3 {
    margin-bottom: var(--gap);
}

.card.tipography h1:not(:first-child),
.card.tipography h2:not(:first-child),
.card.tipography h3:not(:first-child) {
    margin-top: calc(var(--gap)*2);
}

table.table {
    --text-color: hsl(var(--surface-xdark));
    --soft-color: hsl(var(--surface-medium));
    font-size: var(--article-body-size);
    width: 100%;
    border-collapse: collapse;
    --cell-w: 14px;
    --cell-min-w: 0;
}

.dark table.table {
    --text-color: hsl(var(--background-light));
    --soft-color: hsl(var(--surface-light));
}

table.table tr {
    height: 30px;
}

table.table tr.highlight {
    --grad-color-1: hsl(var(--surface-light));
    --grad-color-2: transparent;
    background: linear-gradient(90deg, var(--grad-color-1), var(--grad-color-2) 100%);
}

table.table th,
table.table td {
    padding: 0;
    vertical-align: middle;
    color: hsl(var(--surface-dark));
}

table.table td {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 2px;
    padding-right: 2px;
}

table.table .accent {
    color: var(--accent-color);
    font-weight: bold;
}

table.table .main {
    font-weight: bold;
    color: var(--text-color);
}

table.table .small {
    font-size: 80%;
}

table.table .team-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    aspect-ratio: 1;
    background-color: hsl(var(--background-light));
    border-radius: 50%;
    object-fit: contain;
    border: 5px solid #fff;
    box-sizing: content-box;
    vertical-align: middle;
    font-size: 0;
    overflow: hidden;
}

table.table .x0 {
    width: calc(var(--cell-w)*0) !important;
    min-width: calc(var(--cell-min-w)*0);
    max-width: calc(var(--cell-min-w)*0);
}

table.table .x1 {
    width: calc(var(--cell-w)*1) !important;
    min-width: calc(var(--cell-min-w)*1);
    max-width: calc(var(--cell-min-w)*1);
}

table.table .x2 {
    width: calc(var(--cell-w)*2) !important;
    min-width: calc(var(--cell-min-w)*2);
    max-width: calc(var(--cell-min-w)*2);
}

table.table .x3 {
    width: calc(var(--cell-w)*3) !important;
    min-width: calc(var(--cell-min-w)*3);
    max-width: calc(var(--cell-min-w)*3);
}

table.table .x4 {
    width: calc(var(--cell-w)*4) !important;
    min-width: calc(var(--cell-min-w)*4);
    max-width: calc(var(--cell-min-w)*4);
}

table.table .x5 {
    width: calc(var(--cell-w)*5) !important;
    min-width: calc(var(--cell-min-w)*5);
    max-width: calc(var(--cell-min-w)*5);
}

table.table .x6 {
    width: calc(var(--cell-w)*6) !important;
    min-width: calc(var(--cell-min-w)*6);
    max-width: calc(var(--cell-min-w)*6);
}

table.table .x7 {
    width: calc(var(--cell-w)*7) !important;
    min-width: calc(var(--cell-min-w)*7);
    max-width: calc(var(--cell-min-w)*7);
}

table.table .x8 {
    width: calc(var(--cell-w)*8) !important;
    min-width: calc(var(--cell-min-w)*8);
    max-width: calc(var(--cell-min-w)*8);
}

table.table .x9 {
    width: calc(var(--cell-w)*9) !important;
    min-width: calc(var(--cell-min-w)*9);
    max-width: calc(var(--cell-min-w)*9);
}

table.table .x10 {
    width: calc(var(--cell-w)*10) !important;
    min-width: calc(var(--cell-min-w)*10);
    max-width: calc(var(--cell-min-w)*10);
}

table.table .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.table .form {
    padding-left: 10px;
    padding-right: 10px;
}

table.table .form .dot-stripe {
    max-width: 80px;
}

.serie-a-table-widget {
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.serie-a-table-widget table {
    --cell-w: 8px;
    --cell-min-w: 8px;
}

.serie-a-table-widget table .x2 {
    min-width: 8px;
    max-width: 8px !important;
}

.serie-a-table-widget table td.pos {
    color: var(--soft-color, hsl(var(--surface-medium)));
}

.serie-a-table-widget table .accent {
    color: hsl(var(--primary));
    font-size: var(--font-subtitle-size);
}

.serie-a-table-widget table .team-badge {
    background: transparent;
    border: none;
}