body {
    background-color: #f4f6f8;
}
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.stat-card {
    border-radius: 0.75rem;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}
table.table-hover tbody tr {
    cursor: pointer;
}
.status-badge {
    text-transform: capitalize;
}
#scan-barcode-input {
    font-size: 1.25rem;
    font-family: monospace;
}

/* ---------------------------------------------------------- SIDEBAR LAYOUT --

Default state (no .sidebar-open on <html>): sidebar hidden everywhere.
Toggling adds .sidebar-open, which slides the sidebar in. On desktop
(>=768px) that also pushes #main-content over; on mobile the sidebar
overlays on top instead, with a dimmed backdrop behind it. */

:root {
    --sidebar-width: 250px;
    --topbar-height: 56px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1045;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background-color: #212529;
    color: #fff;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}
.sidebar-toggle-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.topbar-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.topbar-brand:hover {
    color: #fff;
}

.topbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: #212529;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1040;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}
.sidebar-nav li a:hover {
    background-color: rgba(255,255,255,0.06);
    color: #fff;
}
.sidebar-nav li a.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #0d6efd;
    font-weight: 600;
}
.sidebar-nav li a i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
}
.sidebar-section {
    padding: 1rem 1.25rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

#sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--topbar-height);
    background: rgba(0,0,0,0.4);
    z-index: 1035;
}

#main-content {
    transition: margin-left 0.2s ease;
    margin-left: 0;
}

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

@media (min-width: 768px) {
    html.sidebar-open #main-content {
        margin-left: var(--sidebar-width);
    }
}

@media (max-width: 767.98px) {
    html.sidebar-open #sidebar-backdrop {
        display: block;
    }
}

@media print {
    .no-print { display: none !important; }
    #main-content { margin-left: 0 !important; }
}

.login-page-wrapper {
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-footer-logos {
    margin-top: 3rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.login-footer-logo {
    max-height: 40px;
    max-width: 160px;
    opacity: 0.85;
}
