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;
    color: rgba(33, 37, 41, 0.75) !important;
    padding: 5px;
}

tr:not(:first-child):hover td {
    background-color: rgba(0, 0, 0, 0.02) !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-container {
    max-height: calc(100vh - 12rem);
    overflow: auto;
}

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

.hosting-categories-table .category-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

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

.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;
}
