.hosting-entry-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.hosting-entry-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    flex: 1;
    min-width: 0;
}

.hosting-entry-filter {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.hosting-entry-filter .form-select {
    max-width: 100%;
}

.hosting-entry-bulk {
    margin-left: auto;
}

.hosting-entry-table,
.my-games-table {
    table-layout: auto;
}

.hosting-entry-table th:last-child,
.my-games-table th:last-child {
    width: 1%;
}

.hosting-entry-table td,
.my-games-table td {
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.hosting-entry-table th:nth-child(3),
.hosting-entry-table td:nth-child(3),
.hosting-entry-table th:last-child,
.hosting-entry-table td:last-child,
.my-games-table th:last-child,
.my-games-table td:last-child {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .hosting-entry-toolbar,
    .hosting-entry-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hosting-entry-filter .form-select {
        width: 100% !important;
    }

    .hosting-entry-bulk {
        margin-left: 0;
    }

    .hosting-entry-bulk .btn {
        width: 100%;
    }

    .hosting-entry-table thead,
    .my-games-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .hosting-entry-table,
    .hosting-entry-table tbody,
    .hosting-entry-table tr,
    .my-games-table,
    .my-games-table tbody,
    .my-games-table tr {
        display: block;
        width: 100%;
    }

    .hosting-entry-table tr,
    .my-games-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--bs-border-color) !important;
        border-radius: .375rem;
    }

    .hosting-entry-table td,
    .my-games-table td {
        display: grid;
        grid-template-columns: 7rem minmax(0, 1fr);
        gap: .75rem;
        white-space: normal !important;
    }

    .hosting-entry-table td::before,
    .my-games-table td::before {
        content: attr(data-label);
        font-weight: 600;
    }

    .hosting-entry-table td:last-child,
    .my-games-table td:last-child {
        border-bottom: 0;
    }

    .hosting-entry-table .dropdown-toggle,
    .my-games-table .dropdown-toggle {
        max-width: 100%;
        white-space: normal;
    }
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.badge {
    margin-left: 8px;
    text-decoration: none;
}

    .badge:hover {
        background-color: #ccc !important;
        color: rgba(33, 37, 41, 0.75) !important;
    }

.badge-primary:hover {
    background-color: #34abeb !important;
    color: #07337a !important;
}

.required {
    color: red;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.gap-8 {
    gap: 8px;
}

tr:first-child {
    border: 0px rgba(0, 0, 0, 0.05) solid;
}

tr:last-child {
    border: 0px white solid;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-color-type: var(--bs-table-color);
    --bs-table-bg-type: transparent;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
    --bs-table-color-type: var(--bs-table-striped-color);
    --bs-table-bg-type: var(--bs-table-striped-bg);
}

.table-striped > tbody > tr.table-secondary > * {
    --bs-table-color-type: var(--bs-table-color);
    --bs-table-bg-type: var(--bs-table-bg);
}

.geekgold-category-row > td {
    background-color: #e2e3e5 !important;
    box-shadow: inset 0 0 0 9999px #e2e3e5 !important;
}

th {
    background-color: rgba(0, 0, 0, 0.05) !important;
    padding: 5px;
}

th,
.table-header-colored {
    color: rgba(33, 37, 41, 0.75) !important;
}

table > tbody > tr:hover > * {
    background-color: rgba(207, 226, 255, 0.25) !important;
    box-shadow: inset 0 0 0 9999px rgba(207, 226, 255, 0.25) !important;
}

.hosting-categories-table th:not(:first-child),
.hosting-categories-table td:not(:first-child) {
    min-width: 2.5rem;
    text-align: center;
}

.hosting-categories-table th:first-child,
.hosting-categories-table td:first-child {
    min-width: 15rem;
    text-align: left;
}

.hosting-categories-table th.category-column-header,
.hosting-categories-table td.category-column {
    min-width: 2.5rem;
    padding-left: 0.75rem;
    text-align: left;
    width: 2.5rem;
}

.hosting-categories-table-container {
    max-height: calc(100vh - 12rem);
    overflow-x: hidden;
    overflow-y: auto;
}

.manage-users-table {
    margin-bottom: 5rem;
}

.hosting-categories-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f8f9fa !important;
    background-clip: padding-box;
}

.hosting-categories-table thead th.category-column-header {
    height: 9.5rem;
    position: sticky;
    vertical-align: bottom;
}

.hosting-categories-table .category-name {
    background: transparent;
    bottom: 0.5rem;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    font-weight: 600;
    left: 0.75rem;
    padding: 0;
    position: absolute;
    transform: rotate(-45deg);
    transform-origin: bottom left;
    white-space: nowrap;
}

.hosting-categories-table .category-membership-display {
    display: block;
}

.entry-category-form {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.entry-filter {
    flex: 0 1 260px;
    max-width: 100%;
}

.contest-entry-search {
    flex: 1 1 260px;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .contest-entry-filters .entry-filter {
        flex-basis: 100%;
    }
}

.contest-entry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contest-entry-card {
    flex: 0 0 100%;
    min-width: 0;
    background-color: #f7f7f8;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 1rem;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .contest-entry-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (min-width: 992px) {
    .contest-entry-card {
        flex-basis: calc((100% - 2rem) / 3);
    }
}

.contest-entry-card .h5 {
    font-weight: 500;
}

.contest-entry-image {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: contain;
    margin-bottom: .75rem;
    border-radius: .25rem;
}

.contest-entry-text {
    white-space: pre-line;
}

.additional-content-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
}

.additional-content-description {
    min-width: 0;
    line-height: 1.5rem;
    padding-top: .25rem;
}

.poll-question-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.entry-category-save,
.entry-category-cancel,
.category-membership-checkbox {
    display: none;
}

.category-editing .entry-category-edit,
.category-editing .category-membership-display {
    display: none;
}

.category-editing .entry-category-save,
.category-editing .entry-category-cancel,
.category-editing .category-membership-checkbox {
    display: inline-block;
}
