.hidden {
    display: none;
}

body {
    margin-top: 20px;
    background: color-mix(in srgb, black 10%, white);
}

:root {
    --hover: color-mix(in srgb, black 20%, white);
}

.create-button {
    background: lightgreen;
    width: auto;
    padding: 10px;
    margin: 5px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
}

.discard-button {
    background: lightcoral;
    width: auto;
    padding: 10px;
    margin: 5px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
}

td > img {
    background: white;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}

details {
    width: 150px;
    padding: 5px;
}

details > fieldset {
    position: absolute;
    padding: 10px;
    background: white;
}

summary {
    cursor: pointer;
}

* {
    margin: 0;
    padding: 0;
}

.search {
    display: flex;
    width: 100%;
}

.search > img {
    padding: 10px 10px 10px 10px;
    background: white;
    border: 1px black solid;
    border-right-width: 0;
    border-radius: 9px 0 0 9px;
}

.search > input {
    padding: 14px;
    font-size: 14px;
    border-radius: 0 9px 9px 0;
    border: solid black 1px;
    width: calc(100% - 2 * 20px);
    display: flex;
    background: white;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-list {
    width: 80%;
}

.create {
    width: 80%;
}

td, tr {
    border: 1px solid black;
}

thead > tr > td {
    font-weight: 600;
}

td {
    padding: 15px;
    font-size: 20px;
}

table {
    margin: 10px;
    padding: 0;
    border-collapse: unset;
    border-spacing: 0;
}

.table {
    overflow-y: auto;
    scroll-behavior: smooth;
}

thead tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

thead tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

td:first-child {
  border-left-width: 2px;
}

td:last-child {
    border-right-width: 2px;
}

thead tr:first-child td {
    border-top-width: 2px;
}

tbody tr:last-child td {
    border-bottom-width: 2px;
}

tr:hover {
    background: var(--hover);
}

.add-new {
    display: flex;
    justify-content: center;
    border: 2px solid black;
    border-radius: 10px;
    margin: 10px;
    padding: 15px;
    cursor: pointer;
}

.add-new:hover {
    background: var(--hover);
}