a { text-decoration: none; }
.card-header .nav-pills .nav-item .nav-link { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card-header .nav-pills .nav-item:not(:last-child) .nav-link { border-top-right-radius: 0; }
.card-header .nav-pills .nav-item:not(:first-child) .nav-link { border-top-left-radius: 0; }
.table-group-divider { border-top-color: #444; }

.dungeon-clears-row.six-cols td:nth-child(1),
.dungeon-clears-row.six-cols td:nth-child(4) {
    width: 36.2%;
}
.dungeon-clears-row.six-cols td:nth-child(2),
.dungeon-clears-row.six-cols td:nth-child(3),
.dungeon-clears-row.six-cols td:nth-child(5),
.dungeon-clears-row.six-cols td:nth-child(6) {
    width: 6.9%;
}

.dungeon-clears-row.eight-cols td:nth-child(1),
.dungeon-clears-row.eight-cols td:nth-child(5) {
    width: 31.8%;
}
.dungeon-clears-row.eight-cols td:nth-child(2),
.dungeon-clears-row.eight-cols td:nth-child(3),
.dungeon-clears-row.eight-cols td:nth-child(4),
.dungeon-clears-row.eight-cols td:nth-child(6),
.dungeon-clears-row.eight-cols td:nth-child(7),
.dungeon-clears-row.eight-cols td:nth-child(8) {
    width: 6.1%;
}

th.sortable { cursor: pointer; }
.search-hidden, .filter-hidden { display: none; }
.table-responsive table { margin-bottom: 0; }

.navbar-nav li.nav-item {
    margin-left: .5rem;
    margin-right: .5rem;
}

.table-sticky-header {
    border-collapse: separate;
    border-spacing: 0;
}
.table-sticky-header > thead {
    position: sticky;
    top: 0;
    z-index: 999;
}
.table-sticky-header > thead > tr > th {
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    border-right: 1px solid #444;
}
.table-sticky-header > tbody > tr > td {
    border-bottom: 1px solid #444;
    border-right: 1px solid #444;
}
.table-sticky-header > thead > tr > th:first-child,
.table-sticky-header > tbody > tr > td:first-child {
    border-left: 1px solid #444;
}

.table-black-bg tbody td {
    background-color: #000;
}

td.bg-vitamin-0 { background: rgba(52, 152, 219, 0.1); }
td.bg-vitamin-1 { background: rgba(231, 76, 60, 0.1); }
td.bg-vitamin-2 { background: rgba(0, 188, 140, 0.1); }

#toaster {
    position: fixed;
    left: 0;
    top: 0;
    padding: 10px;
    width: 370px;
    z-index: 10020;
    pointer-events: none;
}

#toaster .toast {
    pointer-events: all;
}

.custom-collapse.dropdown-toggle::after {
    transform: rotate(180deg);
}

.custom-collapse.dropdown-toggle.collapsed::after {
    transform: rotate(0);
}

table.custom-borders {
    border-bottom: 1px solid #444;
}

table.custom-borders > tbody > tr > td {
    border-bottom: 0 !important;
}

table.custom-borders > tbody > tr:not(:first-child):not(.collapse) > td {
    border-top: 1px solid #444;
}

/*.drag-drop-border {
    border: 2px dashed #fff;
}*/

#drag-drop-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    opacity: 0.8;
    border: 2px dashed #fff;
    z-index: 1000;
}

#drag-drop-message {
    z-index: 1001;
}

.hover-crosshair {
    /* Makes the row/column 30% brighter */
    filter: brightness(1.3); 
}

.hover-cell-active {
    /* Makes the specific cell 60% brighter */
    filter: brightness(1.6);
    /* Adds a crisp, pure white inner border for absolute clarity */
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9) !important; 
    font-weight: bold; /* Optional: makes the number pop */
}