/* v6.2 styles */
:root {
    --bs-body-bg: #f8f9fa;
    --bs-border-radius: .5rem;
    --card-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

body {
    background-color: var(--bs-body-bg);
}

.card {
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
}

.shadow-sm {
    box-shadow: var(--card-shadow) !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.sidebar {
    position: sticky;
    top: 1.5rem;
}

#tabs .nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    border-radius: var(--bs-border-radius);
    margin-bottom: .25rem;
    color: #495057;
    font-weight: 500;
}

#tabs .nav-link:hover {
    background-color: #e9ecef;
}

#tabs .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}

.input-group:focus-within {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .15);
}

.suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1000;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    max-height: 220px;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.suggest .item {
    padding: .5rem .75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggest .item:hover {
    background-color: #f5f5f5;
}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
}

.toast {
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.table-responsive {
    /* To prevent shadow clipping on rounded cards */
    border-radius: var(--bs-border-radius);
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: #f1f3f5;
    z-index: 1;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, .04);
}

.kbd {
    background-color: #212529;
    color: #fff;
    border-radius: .25rem;
    padding: .1rem .35rem;
    font-size: .75rem;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.qr-item {
    border: 1px dashed #ced4da;
    border-radius: .5rem;
    padding: .75rem;
    text-align: center;
    background-color: #fff;
    word-break: break-all;
}