main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: var(--footer-bg);
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: var(--error-text);
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px var(--sort-arrow-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px var(--sort-arrow-color);
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--hint-color);
}

.error-summary {
    color: var(--error-text);
    background: var(--error-bg);
    border-left: 3px solid var(--error-border);
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: var(--navbar-link);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: var(--navbar-link-hover);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* === QR Sticky Toggle Button === */
.qr-sidebar-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px 0 0 8px;
    background-color: var(--theme-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s;
}

.qr-sidebar-toggle:hover {
    background-color: var(--theme-dark);
}

.qr-sidebar-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #fff;
    color: var(--theme-primary);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

/* === QR Slide-out Sidebar === */
.qr-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1049;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.qr-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.qr-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: 340px;
    max-width: 90vw;
    background: var(--body-bg, #fff);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.qr-sidebar.open {
    transform: translateX(0);
}

.qr-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--card-header-bg);
    border-bottom: 1px solid var(--card-border);
    flex-shrink: 0;
}

.qr-sidebar-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.qr-sidebar-body {
    padding: 12px 20px;
    flex: 1;
    overflow-y: auto;
}

.qr-sidebar-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--theme-lightest);
}

.qr-sidebar-item:last-child {
    border-bottom: none;
}

.qr-sidebar-item-info {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.qr-sidebar-item-info strong {
    font-size: 0.85rem;
}

.qr-sidebar-item-info small {
    color: var(--theme-mid);
}

.qr-sidebar-remove {
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 2px;
}

.qr-sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--card-border);
    background-color: var(--card-header-bg);
    flex-shrink: 0;
}

.checkbox-column {
    width: 40px;
    text-align: center;
}

/* Filter inputs in GridView */
.grid-view .filters input.form-control {
    font-size: 0.85rem;
    padding: 4px 8px;
}
