.queue-nav-link {
    border-bottom: 2px solid transparent;
}

.queue-nav-active {
    border-bottom-color: #007bff;
    color: #212529 !important;
    font-weight: 700;
}

.queue-nav-filter {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.queue-nav-filter input {
    width: 150px;
    max-width: 30vw;
}

.queue-summary {
    margin-bottom: 16px;
}

.queue-section-card + .queue-section-card {
    margin-top: 16px;
}

.queue-section-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.queue-section-summary {
    margin-left: auto;
    text-align: right;
}

.queue-page-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

.queue-description {
    display: block;
    margin: 12px 0;
    line-height: 1.35;
}

.queue-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.queue-scroll {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid #dee2e6;
}

.queue-table {
    margin-bottom: 0;
    min-width: max-content;
}

.queue-table th:first-child,
.queue-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

.queue-table thead th {
    background: #e9ecef;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.queue-table thead th:first-child {
    background: #e9ecef;
}

.queue-table td {
    min-width: 82px;
    text-align: center;
    vertical-align: middle;
}

.queue-table td:first-child,
.queue-table th:first-child {
    min-width: 90px;
    text-align: left;
}

.queue-count {
    display: block;
    font-weight: 600;
}

.queue-delta {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

.queue-delta.up {
    color: #b02a37;
}

.queue-delta.down {
    color: #146c43;
}

.queue-unchanged {
    background: #fff !important;
    color: #212529;
}

.queue-decreased {
    background: #d1e7dd !important;
}

.queue-decreased .queue-count {
    color: #146c43 !important;
}

.queue-decreased .queue-delta {
    color: #212529 !important;
}

.queue-increased {
    background: #fff3cd !important;
}

@media (max-width: 640px) {
    .queue-nav-filter {
        margin: 8px 0;
    }

    .queue-nav-filter input {
        width: 180px;
        max-width: 100%;
    }

    .queue-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
