/* ============ LAYOUT ============ */
body { padding-top: 56px; background: #f0f2f5; font-family: 'Segoe UI', sans-serif; }

.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 240px;
    height: calc(100vh - 56px);
    background: #1a1a2e;
    overflow-y: auto;
    transition: width 0.3s, transform 0.3s;
    z-index: 1020;
}

.sidebar.collapsed { width: 60px; }
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-section { display: none; }
.sidebar.collapsed .nav-link { text-align: center; padding: 12px; }
.sidebar.collapsed .nav-link i { margin: 0; font-size: 18px; }

.sidebar .nav-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #666;
    padding: 12px 15px 4px;
    text-transform: uppercase;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.sidebar .nav-link.active { background: #0f3460; color: #fff; }
.sidebar .nav-link i { width: 20px; margin-right: 8px; }

.main-content {
    margin-left: 240px;
    transition: margin-left 0.3s;
    min-height: calc(100vh - 56px);
}
.main-content.expanded { margin-left: 60px; }

/* ============ CARDS ============ */
.card { border-radius: 12px !important; }
.card-header { border-radius: 12px 12px 0 0 !important; padding: 12px 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 240px; }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
/* ============ WAREHOUSE NAV ============ */
.warehouse-nav {
    background: #1976d2;
    position: sticky;
    top: 56px;
    z-index: 1010;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.warehouse-nav-tabs {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.warehouse-nav-tabs::-webkit-scrollbar { display: none; }

.warehouse-nav-tabs li { display: inline-flex; align-items: center; }

.warehouse-nav-tabs li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.warehouse-nav-tabs li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: rgba(255,255,255,0.5);
}

.warehouse-nav-tabs li a.active {
    color: #fff;
    border-bottom-color: #fff;
    background: rgba(255,255,255,0.15);
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    padding: 0 8px 0 16px;
    text-transform: uppercase;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 4px;
}

.nav-group-label:first-child { border-left: none; margin-left: 0; }