/* Alphabet filter */
div.alphabet {
    display: flex;
    width: 100%;
    margin-block: 8px;
}

div.alphabet span {
    flex: 1;
    box-sizing: border-box;
    padding: 0.4em 0;
    text-align: center;
    cursor: pointer;
    color: inherit;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
}

div.alphabet span:hover {
    color: white;
    border-color: #111;
    background: linear-gradient(to bottom, #585858 0%, #111 100%);
}

div.alphabet span.active,
div.alphabet span.active:hover {
    color: inherit;
    border-color: rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, rgba(230, 230, 230, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
}

div.alphabet span:active {
    color: white;
    outline: none;
    background: linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);
    box-shadow: inset 0 0 3px #111;
}

/* Directory table */
table#dataTable {
    padding-top: 10px;
    width: 100% !important;
}

table#dataTable thead tr th {
    padding: 0;
    text-align: center;
    color: #fff;
    background-color: #00386E;
}

table#dataTable tbody tr > * {
    box-shadow: none;
}

table#dataTable tbody td {
    font-weight: bold;
    padding: 3px 5px !important;
}

table#dataTable tbody tr.odd { 
    background-color: #f1f1f1; 
}

table#dataTable tbody tr.even { 
    background-color: #fafafa; 
}

table#dataTable tbody tr:hover { 
    background-color: #eaeaea; 
}

/* Pagination */
div.dataTables_wrapper div.dataTables_paginate .paginate_button {
    padding: 0.4em 0.8em;
}

div.dataTables_filter input:focus-visible {
    outline: 1px solid #00468a;
    outline-offset: 0;
}

/* Dark Reader default colors */
.dark-mode div.dataTables_filter input {
    border-color: #42484b;
}

.dark-mode div.dataTables_filter input:focus-visible {
    outline-color: #006cd6;
}

.dark-mode table#dataTable thead tr th {
    color: #e8e6e3;
    background-color: #002d58;
}

.dark-mode table#dataTable tbody tr.odd {
    background-color: #202324;
}

.dark-mode table#dataTable tbody tr.even {
    background-color: #1b1d1e;
}

.dark-mode table#dataTable tbody tr:hover {
    background-color: #242728;
}

.dark-mode div.alphabet span.active,
.dark-mode div.alphabet span.active:hover {
    border-color: rgba(140, 130, 115, 0.3);
}
