.cst {
--cst-border: #e2e4e7;
--cst-head: #f6f7f7;
--cst-stripe: #fafafa;
--cst-accent: currentColor;
margin: 1.5em 0;
}
.cst [hidden] { display: none !important; }
.cst__toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: .5em 1em;
margin-bottom: .75em;
}
.cst__search { flex: 1 1 260px; max-width: 420px; }
.cst__input {
width: 100%;
box-sizing: border-box;
padding: .55em .8em;
border: 1px solid var(--cst-border);
border-radius: 6px;
font: inherit;
}
.cst__count { font-size: .875em; opacity: .75; }
.cst__sr {
position: absolute !important;
width: 1px; height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.cst__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cst__table {
width: 100%;
border-collapse: collapse;
font-size: .95em;
margin: 0;
}
.cst__table caption { text-align: left; font-weight: 600; padding-bottom: .5em; }
.cst__table th,
.cst__table td {
padding: .6em .8em;
border-bottom: 1px solid var(--cst-border);
text-align: left;
vertical-align: top;
}
.cst__table thead th { background: var(--cst-head); white-space: nowrap; }
.cst__table tbody tr:nth-child(even) { background: var(--cst-stripe); }
.cst__sort {
all: unset;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: .4em;
font-weight: 600;
}
.cst__sort:focus-visible { outline: 2px solid var(--cst-accent); outline-offset: 2px; }
.cst__sort i::after { content: "↕"; opacity: .35; font-style: normal; }
.cst th[aria-sort="ascending"] .cst__sort i::after { content: "↑"; opacity: 1; }
.cst th[aria-sort="descending"] .cst__sort i::after { content: "↓"; opacity: 1; } .cst__tip {
position: relative;
display: inline-block;
margin-left: .35em;
vertical-align: middle;
cursor: help;
outline: none;
}
.cst__tip-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.15em;
height: 1.15em;
border: 1px solid currentColor;
border-radius: 50%;
font: italic 700 .75em/1 Georgia, serif;
opacity: .55;
}
.cst__tip:hover .cst__tip-icon,
.cst__tip:focus .cst__tip-icon { opacity: 1; }
.cst__tip-text {
position: absolute;
z-index: 20;
top: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
width: max-content;
max-width: 260px;
padding: .5em .7em;
border-radius: 6px;
background: #1d2327;
color: #fff;
font-size: .8rem;
font-weight: 400;
line-height: 1.4;
text-transform: none;
letter-spacing: normal;
white-space: normal;
text-align: left;
visibility: hidden;
opacity: 0;
transition: opacity .15s;
pointer-events: none;
}
.cst__tip:hover .cst__tip-text,
.cst__tip:focus .cst__tip-text { visibility: visible; opacity: 1; } .cst__table th:first-child .cst__tip-text { left: 0; transform: none; }
.cst__table th:last-child .cst__tip-text { left: auto; right: 0; transform: none; }
.cst__empty { padding: 1em 0; opacity: .75; }
.cst__pager {
display: flex;
flex-wrap: wrap;
gap: .3em;
margin-top: .9em;
}
.cst__page {
min-width: 2.2em;
padding: .35em .6em;
border: 1px solid var(--cst-border);
border-radius: 6px;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
}
.cst__page.is-current { font-weight: 700; border-color: currentColor; }
.cst__page:disabled { opacity: .4; cursor: default; }
.cst__gap { padding: .35em .2em; }
.cst-error { color: #b32d2e; }