/*********************/
/*   テーブル   */
/*********************/

table {
    border-collapse: separate;
    border-spacing: 0;

    background: rgba(255, 253, 247, 0.9);

    border: 1px solid var(--color-border);
    border-radius: 8px;

    overflow: hidden;

    box-shadow:
            0 2px 6px var(--color-shadow);
}

th,
td {
    border-right: 1px solid rgba(190, 160, 110, 0.35);
    border-bottom: 1px solid rgba(190, 160, 110, 0.35);

    padding: 8px 12px;

    vertical-align: middle;
    white-space: nowrap;
}

th:last-child,
td:last-child {
    border-right: none;
}

tbody tr:last-child td {
    border-bottom: none;
}

th {
    background: rgba(232, 213, 174, 0.55);
    color: var(--color-brown);
}

thead th {
    background-color: rgba(232, 213, 174, 0.55);
    color: var(--color-brown);
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: rgba(250, 246, 237, 0.65);
}

tbody tr:hover {
    background-color: rgba(246, 226, 194, 0.65);
}

.table-wrapper {
    overflow-x: auto;
}

.sortable-header a {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sortable-header a:hover {
    opacity: 0.7;
}

.sort-icon {
    margin-left: 4px;
    font-size: 0.8em;
}

/*時海反響・イベント副将管理*/
.checkbox-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
}