:root {
    --river-sidebar-width: 240px;
}

body {
    min-height: 100vh;
    background: #111418;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--river-sidebar-width);
    background: #181c21;
    border-right: 1px solid #2b3036;
    z-index: 1020;
}

.sidebar .nav-link {
    color: #b8c0c8;
    padding: .65rem .85rem;
}

.sidebar .nav-link:hover,
.offcanvas .nav-link:hover {
    color: #fff;
    background: #242a31;
}

.sidebar .nav-link.active,
.offcanvas .nav-link.active {
    background: #3b4958;
    color: #fff;
}

.offcanvas .nav-link {
    color: #b8c0c8;
}

.main-content {
    min-height: 100vh;
}

.login-content {
    min-height: 100vh;
}

.login-wrap {
    min-height: calc(100vh - 2rem);
}

.login-card {
    width: min(100%, 430px);
}

.card {
    border-color: #2b3036;
    background: #181c21;
}

/* Active secondary actions must stay readable against the dark CRM theme. */
.btn-outline-secondary {
    --bs-btn-color: #d8e1ea;
    --bs-btn-border-color: #8796a5;
    --bs-btn-hover-color: #111418;
    --bs-btn-hover-bg: #d8e1ea;
    --bs-btn-hover-border-color: #d8e1ea;
    --bs-btn-focus-shadow-rgb: 173, 190, 207;
    --bs-btn-active-color: #111418;
    --bs-btn-active-bg: #b9c7d4;
    --bs-btn-active-border-color: #b9c7d4;
    --bs-btn-disabled-color: #7a8490;
    --bs-btn-disabled-border-color: #59616b;
}

.btn:focus-visible {
    outline: 3px solid rgba(113, 183, 255, .75);
    outline-offset: 2px;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .3);
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: .42;
    filter: saturate(.45);
    pointer-events: none;
}

.stat-card {
    min-height: 150px;
}

.player-card {
    overflow: hidden;
}

.product-card,
.inventory-card,
.check-card,
.check-item-card,
.check-history-card {
    overflow: hidden;
}

.qty-input { width: 4rem; }
.check-summary { top: 1rem; }

.attention-block > summary {
    cursor: pointer;
    list-style: none;
    min-height: 42px;
}

.attention-block > summary::-webkit-details-marker { display: none; }
.attention-block[open] .attention-hint { display: none; }

.player-details dt {
    color: #8f98a3;
    font-weight: 500;
}

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

.check-comment-preview {
    display: -webkit-box;
    max-width: 20rem;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.open-shift-check-card {
    overflow: hidden;
}

.min-w-0 {
    min-width: 0;
}

.check-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.table > :not(caption) > * > * {
    padding: .85rem 1rem;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: var(--river-sidebar-width);
    }
}

@media (max-width: 575.98px) {
    .display-6 {
        font-size: 2rem;
    }
}
