
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    text-align: center;
}
th,
td {
    padding: 6px 15px;
}
th {
    background: #42444e;
    color: #fff;
}
tr:first-child th:first-child {
    border-top-left-radius: 6px;
}
tr:first-child th:last-child {
    border-top-right-radius: 6px;
}
td {
    border-right: 1px solid #c6c9cc;
    border-bottom: 1px solid #c6c9cc;
}
td:first-child {
    border-left: 1px solid #c6c9cc;
}
tr:nth-child(even) td {
    background: #eaeaed;
}
tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}
tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}



label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle [type="checkbox"] {
    appearance: none;
    position: relative;
    border: max(2px, 0.1em) solid gray;
    border-radius: 1.25em;
    width: 2.25em;
    height: 1.25em;
}

.toggle [type="checkbox"]::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    transform: scale(0.8);
    background-color: gray;
    transition: left 250ms linear;
}

.toggle [type="checkbox"]:checked {
    background-color: deepskyblue;
    border-color: deepskyblue;
}

.toggle [type="checkbox"]:checked::before {
    background-color: white;
    left: 1em;
}

.toggle [type="checkbox"]:disabled {
    border-color: lightgray;
    opacity: 0.7;
    cursor: not-allowed;
}

.toggle [type="checkbox"]:disabled:before {
    background-color: lightgray;
}

.toggle [type="checkbox"]:disabled + span {
    opacity: 0.7;
    cursor: not-allowed;
}

.toggle [type="checkbox"]:focus-visible {
    outline-offset: max(2px, 0.1em);
    outline: max(2px, 0.1em) solid skyblue;
}

.toggle [type="checkbox"]:enabled:hover {
    box-shadow: 0 0 0 max(4px, 0.2em) lightgray;
}

